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

specified pydantic version 1.9.1 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caropen
Copy link

@caropen caropen commented Jul 13, 2023

Pydantic package moved to version 2.0. From https://docs.pydantic.dev/latest/blog/pydantic-v2/:
"While we'll do our best to avoid breaking changes, some things will break.".

When runnning a training in a newly set-up environment with 2.0 version one gets an error:

File "[...]/config_utils.py", line 82, in _deprecated_fields_check
      if field.field_info.extra.get("deprecated", False):
  AttributeError: 'FieldInfo' object has no attribute 'field_info'

I fixed the pydatinc version to the older, working version. I think it is not worth investigating this further, and adapt the code to pydantic 2, as we plan to move to MegatronLM anyways.

Pydantic package moved to version 2.0, "While we'll do our best to avoid breaking changes, some things will break.". When runnning a training in a newly set-up environment with 2.0 version one gets an error: me/config_utils.py", line 82, in _deprecated_fields_check
      if field.field_info.extra.get("deprecated", False):
  AttributeError: 'FieldInfo' object has no attribute 'field_info'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant