Installing linux headers (DLAMI AMI) failed in INF2 installation guide

0

Hello, i'm using pytorch-inference:2.0.1-gpu-py310-cu118-ubuntu20.04-sagemaker AMI and following this guide https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/setup/neuron-setup/pytorch/neuronx/ubuntu/torch-neuronx-ubuntu20-base-dlami.html#setup-torch-neuronx-ubuntu20-base-dlami to install tools and drivers. I. get error when i'm trying to install sudo apt-get install linux-headers-$(uname -r) -y. The error i get is E: Unable to locate package linux-headers-4.14.326-245.539.amzn2.x86_64 E: Couldn't find any package by glob linux-headers-4.14.326-245.539.amzn2.x86_64 E: Couldn't find any package by regex linux-headers-4.14.326-245.539.amzn2.x86_64 How can i make it work?

Ana
已提問 6 個月前檢視次數 222 次
1 個回答
0

It looks like you are using the wrong AMI - you should not need to modify the base AMI. Please follow this link https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/devflows/inference/byoc-hosting-devflow-inf2.html and use a DLC from the 'Neuron Containers' section. These containers are all tested: https://github.com/aws/deep-learning-containers/blob/master/available_images.md#neuron-containers

Note we don't have PyTorch 2.0 support. PyTorch 2.1 support will be available in an upcoming release.

AWS
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南