Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load models in reproducing the benchmark numbers from the README #1569

Open
opticalor opened this issue Dec 1, 2023 · 0 comments
Open

Comments

@opticalor
Copy link

Step 5/5 : RUN touch /tmp/input.txt && /translate CPU /tmp/input.txt /tmp/output.txt && rm /tmp/input.txt
---> Running in 8ca5f61ea6e8
Traceback (most recent call last):
File "/translate", line 13, in
tokenizer = transformers.MarianTokenizer.from_pretrained(model_name)
File "/opt/conda/lib/python3.10/site-packages/transformers/tokenization_utils_base.py", line 1788, in from_pretrained
raise EnvironmentError(
OSError: Can't load tokenizer for 'Helsinki-NLP/opus-mt-en-de'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'Helsinki-NLP/opus-mt-en-de' is the correct path to a directory containing all relevant files for a MarianTokenizer tokenizer.

Traceback (most recent call last):
File "benchmark_all.py", line 117, in
Image(
File "benchmark_all.py", line 46, in init
raise RuntimeError(log["error"])
RuntimeError: The command '/bin/sh -c touch /tmp/input.txt && /translate CPU /tmp/input.txt /tmp/output.txt && rm /tmp/input.txt' returned a non-zero code: 1

im trying to reproducing the benchmark numbers from the README.it seem like the tokenizer did't exict at huggingface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant