Our recommendation is to use the Hugging Face Neuron Deep Learning AMI (DLAMI). The DLAMI comes with all required libraries pre-packaged for you, including the Optimum Neuron , Neuron Drivers, Transformers, Datasets, and Accelerate.
But it can also be installed using pip
as follows:
python -m pip install optimum[neuron]