Skip to content
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

'FieldInfo' object has no attribute 'required' #15

Open
White-Friday opened this issue Mar 13, 2024 · 1 comment
Open

'FieldInfo' object has no attribute 'required' #15

White-Friday opened this issue Mar 13, 2024 · 1 comment

Comments

@White-Friday
Copy link

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

请问如何解决
@CurisZhou
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants