Closed
Description
System Info
The error would be as
Failed to import transformers.generation.utils because of the following error (look up to see its traceback): 'FieldInfo' object has no attribute 'required'
I spent a lot of time to spot it's the version change from the installation of upgrading gradio
and it caused pydantic==1.10.7
to pydantic==2.4.2
.
I downgraded to 1.10.7 then could run smoothly as usual.
Who can help?
No response
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examples
folder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
!pip install pydantic==2.4.2
from transformers import FuyuForCausalLM, AutoTokenizer, FuyuProcessor, FuyuImageProcessor
Expected behavior
Failed to import transformers.generation.utils because of the following error (look up to see its traceback): 'FieldInfo' object has no attribute 'required'
Metadata
Metadata
Assignees
Labels
No labels