Closed parthplc closed 3 years ago
This was a bug added in v4, it's fixed on master so if you install from source, you should be fine.
I think alternatively you could also just delete the cache:
rm -rf /home/ubuntu/.cache/huggingface/transformers/transformers
but then you'll have to re-download all models
yeah its worked!
@patrickvonplaten since this means that the cache has already been moved to .cache/huggingface/transformers
, I think deleting the cache .cache/torch/transformers
makes more sense, as you won't have to delete all the models you had in the initial cache, only those that were redownloaded when you went back to an older version.
Why do transformers throw an error ? If it exists,why not just throw a warning?I think this is a bug and should be fixed.
Please read the full conversation:
This was a bug added in v4, it's fixed on master so if you install from source, you should be fine.
Environment info
transformers
version:Who can help
@patrickvonplaten @sgugger -->
Information
Model I am using (MT5ForConditionalGeneration.):
The problem arises when using: I am trying to run my script importing Mt5
To reproduce
I am using Transformer==4.0.0 I get this error but when installing transformers==4.0.0rc1 the error doesn't show. Is there any reason for this?