-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
partners: support reading HuggingFace params from env #23309
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@efriis Please review and merge. |
@@ -46,11 +46,15 @@ class Config: | |||
|
|||
extra = Extra.forbid | |||
|
|||
@root_validator() | |||
@root_validator(pre=False, skip_on_failure=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be pre=True based on the logic below -- all of it can be done as pre-init logic
Just requires re-writing values['model'] to values.get('model')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging as is, but if you can please re-write this with pre=True
Description:
Issue: #22448 #22819