-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Misc] Define from_dict and to_dict in InputMetadata #3452
Conversation
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.
LGTM! This looks great!
@zhuohan123 Thanks for the quick review! 😄 |
Is it possible to use |
I actually find And I think many configs in |
@youkaichao Thanks for the suggestion! Merged your PR and fixed a bug. |
Co-authored-by: youkaichao <[email protected]>
This PR adds
from_dict
andto_dict
toInputMetadata
so that the code in model runner becomes a bit cleaner.