Skip to content

Config can apply pyndatic validation without torch-dependence#45193

Open
zucchini-nlp wants to merge 4 commits intohuggingface:mainfrom
zucchini-nlp:torch-type
Open

Config can apply pyndatic validation without torch-dependence#45193
zucchini-nlp wants to merge 4 commits intohuggingface:mainfrom
zucchini-nlp:torch-type

Conversation

@zucchini-nlp
Copy link
Copy Markdown
Member

What does this PR do?

Fixes #45070

Though I am convinced that configs should not be pyndatic BaseClass, just because we already wrap all subclasses as dataclass. You never know what happens if there is "dataclass+pydantic" together

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@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=45193&sha=7a52c4

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.

v5.4.0 breaks PretrainedConfig field in pydantic model

2 participants