You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use dataclasses instead of TypedDict to handle defaults (but not #2102
This is related to #1675, but outlines one way to start using dataclasses without losing the benefits of dictionaries.
We have gotten some feedback that it would be good to have a central place for the configs to inherit defaults when new configs are added. We can accomplish this by using dataclasses to essentially serve as the typedict, and then do a merge(current_config, to_object(config_dataclass_with_defaults).
This avoids having to change too much of the code, while obtaining the default behavior.
Activity
feat: add dataclass config defaults infrastructure + GRPO POC (#2102)
feat: add dataclass config defaults infrastructure + GRPO POC (#2102)
feat: upgrade config defaults to pydantic "left join" validation (#2102)
feat: upgrade config defaults to pydantic "left join" validation (#2102)
feat: add dataclass config defaults infrastructure + GRPO POC (#2102)
feat: upgrade config defaults to pydantic "left join" validation (#2102)