-
Notifications
You must be signed in to change notification settings - Fork 450
feat: Handle lists of pydantic models when dumping to yaml #3295
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
feat: Handle lists of pydantic models when dumping to yaml #3295
Conversation
|
jaideepr97
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.
tested locally, works
LGTM, thanks @booxter
|
medium job seems to be failing consistently with storage issues that seem unrelated to PR changes |
|
E2E (NVIDIA L40S x4) LLAMA workflow launched on this PR: View run |
|
e2e workflow failed on this PR: View run, please investigate. |
|
@Mergifyio rebase |
Before the change, lists of models were not converted to dicts before passing them to ruamel representor. It broke `config show` when a `models` section was added to it because the field is s list of model_info classes. With this change, we should correctly handle tuples and lists. If we ever need something else, like dicts, we may expand the serialization code further. Signed-off-by: Ihar Hrachyshka <[email protected]>
✅ Branch has been successfully rebased |
741944f to
dff86fa
Compare
Before the change, lists of models were not converted to dicts before
passing them to ruamel representor. It broke
config showwhen amodelssection was added to it because the field is s list ofmodel_info classes.
With this change, we should correctly handle tuples and lists. If we
ever need something else, like dicts, we may expand the serialization
code further.
Signed-off-by: Ihar Hrachyshka [email protected]
Checklist:
conventional commits.