-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Move ModelConfig from config/__init__.py to config/model.py #24978
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
Conversation
Signed-off-by: rongfu.leng <rongfu.leng@daocloud.io>
hmellor
left a comment
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.
If you are going to be moving PoolerConfig, can you please convert it's fields into InitVars as I did for MultiModalConfig (you can use this as reference)
|
This pull request has merge conflicts that must be resolved before it can be |
Look this pr #24659 after, i know how to convert PoolerConfig fields into InitVar. I’d like to ask for your advice: what are the benefits of using the InitVar type instead? Currently, using object references between structures is a common practice. Could you explain this to me? I know that I’d really appreciate your input. |
My comment was perhaps more relevant for multimodal as the individual multimodal fields were duplicated. The duplication means that you could read the same field from 2 places, i.e. In this case we just have I don't like |
|
Forget using |
|
Since I have moved Thank you for the PR though! |
Purpose
Part of #18953
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.