Open QuantumStaticFR opened 2 weeks ago
Thanks @QuantumStaticFR and sorry you are having issue installing optimum-nvidia
.
I would recommand forwarding this error to the TensorRT-LLM repository because the error you're facing is due to the transitive dependency on MPI from TensorRT-LLM.
Also on a general note: You should stick to Python3.10 this is the supported Python version for TensorRT-LLM
@laikhtewari for viz on Nvidia side
conda install mpi4py solved the issue for me. Make sure you are using python 3.10. If your environment is already using python 3.10 then use the following: apt-get update && apt-get -y install openmpi-bin libopenmpi-dev conda install mpi4py or python -m pip install mpi4py python -m pip install --pre --extra-index-url https://pypi.nvidia.com optimum-nvidia
Platform
Ubuntu: 24.04 LTS Python: 3.8/3.10/3.12
Steps
Given Installation Instructions
apt-get update && apt-get -y install python3.10 python3-pip openmpi-bin libopenmpi-dev
python -m pip install --pre --extra-index-url https://pypi.nvidia.com optimum-nvidia
Steps I tried apart from given instructions
python3.x -m venv myvenv
and activated itpip install optimum
pip install optimum-nvidia
Error on given installation guide
Errors on different python versions using my steps
Python 3.8
Python 3.10
Python 3.12