[GH-ISSUE #15] 'FieldInfo' object has no attribute 'required' #10

Open
opened 2026-10-26 21:08:47 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @White-Friday on GitHub (Mar 13, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL/issues/15

RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback):
Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
'FieldInfo' object has no attribute 'required'

transformers==4.38.2

请问如何解决
Originally created by @White-Friday on GitHub (Mar 13, 2024). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL/issues/15 ```tex RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback): Failed to import transformers.generation.utils because of the following error (look up to see its traceback): 'FieldInfo' object has no attribute 'required' transformers==4.38.2 请问如何解决
Author
Owner

@CurisZhou commented on GitHub (Mar 18, 2024):

I also have met this issue. For fixing this issue, i downgraded the version of some packages, like:

pydantic==1.10.14
protobuf==3.20.3

This solved my issue.

<!-- gh-comment-id:2003077858 --> @CurisZhou commented on GitHub (Mar 18, 2024): I also have met this issue. For fixing this issue, i downgraded the version of some packages, like: pydantic==1.10.14 protobuf==3.20.3 This solved my issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-VL#10
No description provided.