aws-neuron/aws-neuron-sdk

AWS NeuronX sdk installation

Zkarape opened this issue · 2 comments

Hello, I am struggling with this error while installing neuronx both locally and on a SageMaker notebook instance on ml.m5.xlarge instance. Guide me please how to install correctly to compile my model to deploy on inf2 instance. If you need more info, let me know.

File ~/anaconda3/envs/python3/lib/python3.10/site-packages/tensorflow_neuronx/init.py:1
----> 1 raise ImportError("WRONG PACKAGE. Please install the package from Neuron Repository - pip.repos.neuron.amazonaws.com")

ImportError: WRONG PACKAGE. Please install the package from Neuron Repository - pip.repos.neuron.amazonaws.com

I will highly appreciate any help and guidance.

Hi Zkarape,
could you follow these steps https://awsdocs-neuron.readthedocs-hosted.com/en/latest/general/setup/neuron-setup/pytorch/neuronx/ubuntu/torch-neuronx-ubuntu20.html#setup-torch-neuronx-ubuntu20 based on your OS?
Please make sure to include
python -m pip config set global.extra-index-url https://pip.repos.neuron.amazonaws.com/
Let us know if you still see any issues on the setup.