You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fresh environment where I conda install pytorch torchvision torchaudio -c pytorch then conda install transformers produces a glibc2.18 error on CentOS 7.9 upon import with python -c "from transformers import AutoTokenizer". I suspect this is a similar error to #2980, i.e., CentOS 7.9 might just be incompatible. However, a different fresh environment where I pip install torch torchvision torchaudio then pip install transformers does not produce any error upon import with python -c "from transformers import AutoTokenizer".
Additionally, I have attached the environment.yml files for both environments and also the trace for the transformers-cli env command and the trace for the import error (both for the conda install-ed environment). The traces look pretty similar, and it seems the issue is with the dependencies of tokenizers. The .yml files have an appended .txt extension since apparently GitHub doesn't support the .yml extension for uploaded files.
Hello! From what I'm seeing, the error comes from the tokenizers library instead:
[...]
File "/homes/gws/hcybay/miniconda3/envs/test2/lib/python3.8/site-packages/transformers-4.4.2-py3.8.egg/transformers/tokenization_utils_fast.py", line 25, in <module>
File "/homes/gws/hcybay/miniconda3/envs/test2/lib/python3.8/site-packages/tokenizers/__init__.py", line 79, in <module>
from .tokenizers import (
ImportError: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /homes/gws/hcybay/miniconda3/envs/test2/lib/python3.8/site-packages/tokenizers/tokenizers.cpython-38-x86_64-linux-gnu.so)
Do you mind opening an issue there? They'll probably be able to help out better.
Uh oh!
There was an error while loading. Please reload this page.
A fresh environment where I
conda install pytorch torchvision torchaudio -c pytorch
thenconda install transformers
produces a glibc2.18 error on CentOS 7.9 upon import withpython -c "from transformers import AutoTokenizer"
. I suspect this is a similar error to #2980, i.e., CentOS 7.9 might just be incompatible. However, a different fresh environment where Ipip install torch torchvision torchaudio
thenpip install transformers
does not produce any error upon import withpython -c "from transformers import AutoTokenizer"
.Environment info (pip-installed)
transformers
version: 4.4.2Environment info (conda-installed)
In fact, this command doesn't even work. See attached
cli_error_trace.txt
.Who can help
I'm not sure if I did this right since this seems to be more of a lower-level issue than implementation issue.
-huggingface/transformers/blob/master/src/transformers/models/auto/tokenization_auto.py @LysandreJik
Information
Model I am using (Bert, XLNet ...):
N/A
To reproduce
This is all done on CentOS 7.9.
Steps to reproduce the good, pip-installed behavior:
Steps to reproduce the bad, conda-installed behavior:
Additionally, I have attached the
environment.yml
files for both environments and also the trace for thetransformers-cli env
command and the trace for the import error (both for theconda install
-ed environment). The traces look pretty similar, and it seems the issue is with the dependencies of tokenizers. The .yml files have an appended .txt extension since apparently GitHub doesn't support the .yml extension for uploaded files.environment_pip.yml.txt
environment_conda.yml.txt
cli_error_trace.txt
import_error_trace.txt
Expected behavior
I would expect
conda install
-ing andpip install
-ing to both work as intended.The text was updated successfully, but these errors were encountered: