-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Bug happens in processor use model cached in local #28697
Comments
Hi @wwx007121, thanks for raising an issue! Could you give some more details about exactly the bug that is occurring i.e. the error being encountered (including full traceback) and a minimal code snippet to reproduce the issue? cc @ydshieh |
model in cache was downloaded in others process which shared same docker environments.
|
Hi @wwx007121 , it looks like I should modify the condition indeed, thank you for reporting this. However, to make sure, I would really like to be able to reproduce the issue. So far, I am doing the following, which should be the situation you described, but this code snippet works without any error. Could you describe in more detail how to reproduce it, please? You mentioned that from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
model_id = "openai/whisper-large-v3"
model_cache = "my_cache"
pretrain_model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id, use_safetensors=True, cache_dir=model_cache
)
processor = AutoProcessor.from_pretrained(model_id, cache_dir=model_cache) |
Well, I tried to disable the internet connection and I can reproduce the issue. I will open a PR to fix it, thanks again for reporting |
The fix is merged into |
System Info
version: transformers>=4.37.0
bug occurs in https://github.com/huggingface/transformers/blob/main/src/transformers/processing_utils.py ,line 466
I understand the purpose of this code, but this creats a conflict occurred with code in 'utils/hub.py line 426' that the error detail descriptions may have been changed.
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I have made a simple solution that change my local code "if "does not appear to have a file named processor_config.json." in str(e):" to if "processor_config.json." in str(e): " .otherwise , Reduce version to 4.36.2 is also working。
Expected behavior
I think it may have a better solution.
The text was updated successfully, but these errors were encountered: