Powering AWS purpose-built machine learning chips. Blazing fast and cost effective, natively integrated into PyTorch and TensorFlow and integrated with your favorite AWS services
For torch-neuronx 2.1beta from Neuron SDK Release 2.16, if you are installing with --pre pip installation flag as instructed in the installation guide, it will bring in mpmath==1.4.0a0 (alpha version prereleased 2/22/24) via sympy which is a dependency of torch, and you will see the following error :
aws_neuron_venv/lib/python3.8/site-packages/sympy/core/numbers.py:4567: in <module>
_sympy_converter[type(mpmath.rational.mpq(1, 2))] = sympify_mpmath_mpq
E AttributeError: module 'mpmath' has no attribute 'rational'
To workaround the issue, for torch-neuronx 2.1beta, please add a pin mpmath==1.3, i.e.:
For torch-neuronx 2.1beta from Neuron SDK Release 2.16, if you are installing with
--pre
pip installation flag as instructed in the installation guide, it will bring inmpmath==1.4.0a0
(alpha version prereleased 2/22/24) viasympy
which is a dependency oftorch
, and you will see the following error :To workaround the issue, for torch-neuronx 2.1beta, please add a pin
mpmath==1.3
, i.e.:See also https://github.com/sympy/sympy/issues/26273 .