Cannot import name 'LlamaTokenizer' from 'transformers'
!pip install -U transformersSuccessfully uninstalled transformers-4.21.3Successfully installed huggingface-hub-0.16.4 safetensors-0.3.3 transformers-4.32.1Requirement already satisfied: transformers in /usr/local/lib/python3.9/dist-packages (4.32.1)from transformers import LlamaTokenizerImportError: cannot import name ‘LlamaTokenizer’ from ‘transformers’ (/usr/local/lib/python3.9/dist-packages/transformers/init.py)
2023-09-04T14:49:18Z
Maybe your pip install command is installing the latest transformers for a different version of python than the one you’re trying to run.You should confirm thatpipis installing packages forpython3.9. Trypip --versionand check if the path it shows is python3.9.You might need to instead runpip3 install -U transformersorpython3.9 -m pip install -U transformers
2023-09-04T17:23:39Z
it was not working onpaperspace.comI tried on colab and it workedThanks!