Skip to content

Pretrained-config bug(45072/huggingfacebug)#45154

Closed
FaizanImran-blip wants to merge 2 commits intohuggingface:mainfrom
FaizanImran-blip:PretrainedConfig-bug
Closed

Pretrained-config bug(45072/huggingfacebug)#45154
FaizanImran-blip wants to merge 2 commits intohuggingface:mainfrom
FaizanImran-blip:PretrainedConfig-bug

Conversation

@FaizanImran-blip
Copy link
Copy Markdown

Fixed bug #45072 / #45071 where PretrainedConfig type checking and Pydantic model field validation were broken in v5.4.0.

Added proper type checking for 'num_labels'.
Added unit tests in test.py to verify correct and incorrect types.
Verified all tests pass locally.

@FaizanImran-blip
Copy link
Copy Markdown
Author

Fixed bug #45072 / #45071 for PretrainedConfig type checking in v5.4.0.
All unit tests in test.py pass locally.
Please review and approve. Thanks

@github-actions
Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=45154&sha=1cdf8b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants