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
File "/home/probst/Projects/whisper-iara/finetune.py", line 101, in __init__
self.processor = WhisperProcessor.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/probst/Projects/whisper-iara/.venv/lib/python3.11/site-packages/transformers/processing_utils.py", line 974, in from_pretrained
args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/probst/Projects/whisper-iara/.venv/lib/python3.11/site-packages/transformers/processing_utils.py", line 1020, in _get_arguments_from_pretrained
args.append(attribute_class.from_pretrained(pretrained_model_name_or_path, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/probst/Projects/whisper-iara/.venv/lib/python3.11/site-packages/transformers/tokenization_utils_base.py", line 1925, in from_pretrained
raise ValueError(
ValueError: Calling WhisperTokenizer.from_pretrained() with the path to a single file or url is not supported for this tokenizer. Use a model identifier or the path to a directory instead.
The code above works for whisper-tiny.en, whisper-base, whisper-small and so on, but not for whisper-tiny.
The workaround for now is to manually git clone the repository and specify the local path to it.
Expected behavior
I should be able to load the model without any errors.
The text was updated successfully, but these errors were encountered:
System Info
Python 3.11.8
huggingface-hub==0.28.1
transformers==4.48.2
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Merely run:
WhisperProcessor.from_pretrained("openai/whisper-tiny")
Error is:
The code above works for whisper-tiny.en, whisper-base, whisper-small and so on, but not for whisper-tiny.
The workaround for now is to manually git clone the repository and specify the local path to it.
Expected behavior
I should be able to load the model without any errors.
The text was updated successfully, but these errors were encountered: