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
Migrate GenerationConfig and backend generation configs (vllm/sglang/trtllm) from TypedDict to pydantic BaseModel #3289
The author pointed out that the base GenerationConfig (nemo_rl/models/generation/interfaces.py) is still a TypedDict, so the backend configs that extend it (VllmConfig, SglangConfig, and now TrtllmConfig) can't individually migrate cleanly. This was accepted as a non-blocker for #2420, to be tracked as follow-up work.
Task
Migrate the generation config hierarchy from TypedDict (v1) to pydantic.BaseModel (v2):
GenerationConfig (base) in nemo_rl/models/generation/interfaces.py
Per the v2 convention: declare with extra="allow", move defaults onto the BaseModel fields (exemplar YAMLs remain as documentation), and keep tests/unit/test_config_v2.py / tests/unit/reference_configs/ green.
Activity
refactor(distributed): migrate ClusterConfig from TypedDict to BaseModel
refactor(distributed): migrate ClusterConfig from TypedDict to BaseModel
refactor(distributed): migrate ClusterConfig from TypedDict to BaseModel
refactor(distributed): migrate ClusterConfig from TypedDict to BaseModel
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…
refactor(distributed): migrate ClusterConfig from TypedDict to BaseModel
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…
refactor(utils): migrate CheckpointingConfig and PretrainedCheckpoint…