Repository navigation
refactor(policy): migrate common config leaves to BaseModel - #3197
Open
NolenLiang wants to merge 9 commits into
Open
NolenLiang wants to merge 9 commits into
NolenLiang wants to merge 9 commits into
Conversation
Contributor
Author
|
/ok to test 30d17e1 |
Contributor
Author
|
/ok to test 4c1c844 |
Contributor
Author
|
/ok to test 1a95e22 |
Contributor
Author
|
/ok to test c24e3b9 |
Contributor
Author
|
/ok to test 57e9aca |
Contributor
Author
|
/ok to test 86e04de |
Contributor
Author
|
/ok to test d1c6dee |
Contributor
Author
|
/ok to test 25aa652 |
Contributor
Author
|
/ok to test 404216b |
NolenLiang
force-pushed
the
nliang/typeddict-to-basemodel-policy-common
branch
from
August 4, 2026 14:22
404216b to
2f91f5b
Compare
Contributor
Author
|
/ok to test 2f91f5b |
NolenLiang
force-pushed
the
nliang/typeddict-to-basemodel-policy-common
branch
from
August 5, 2026 03:17
2f91f5b to
f705f83
Compare
Contributor
Author
|
/ok to test f705f83 |
jinglinglingling
requested changes
Aug 5, 2026
NolenLiang
force-pushed
the
nliang/typeddict-to-basemodel-policy-common
branch
from
August 5, 2026 16:30
f705f83 to
9779ad5
Compare
Contributor
Author
|
/ok to test 9779ad5 |
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
NolenLiang
force-pushed
the
nliang/typeddict-to-basemodel-policy-common
branch
from
August 18, 2026 07:00
9779ad5 to
4428b7c
Compare
Contributor
Author
|
/ok to test 4428b7c |
Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Nolen Liang <[email protected]>
Contributor
Author
|
/ok to test 90718fc |
…asemodel-policy-common # Conflicts: # nemo_rl/algorithms/grpo.py # nemo_rl/models/policy/__init__.py
Contributor
Author
|
/ok to test 67f0bce |
jinglinglingling
approved these changes
Aug 20, 2026
2 of 3 tasks
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Sep 10, 2026
Part of the config v1 -> v2 migration (pattern established in NVIDIA-NeMo#2518; runs alongside NVIDIA-NeMo#3197 for policy configs and NVIDIA-NeMo#3289 for generation configs). First PR in a utils-layer series: ClusterConfig now, CheckpointingConfig and LoggerConfig to follow. - ClusterConfig(TypedDict) -> ClusterConfig(BaseModel, extra="allow"); NotRequired fields become Optional[...] = None. No new non-None defaults, so tests/unit/test_config_v2.py and the reference configs are unaffected. - All call sites move from key access (cluster_config["gpus_per_node"], cluster_config.get("segment_size")) to attribute access across grpo, grpo_sync, ppo, sft, dpo, rm, distillation, xtoken, single-controller setup, utils, and eval. - Test fixtures built via MasterConfig.model_construct bypass pydantic validation and would keep cluster as a plain dict, so their cluster values are wrapped in ClusterConfig.model_validate(...). Fixtures that never touch cluster (empty {} placeholders) are left as-is. - Verified: py_compile on all touched files; standalone pydantic check of the migrated class (required fields enforced, extra keys allowed, optional defaults, model_dump round-trip); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Sep 16, 2026
Part of the config v1 -> v2 migration (pattern established in NVIDIA-NeMo#2518; runs alongside NVIDIA-NeMo#3197 for policy configs and NVIDIA-NeMo#3289 for generation configs). First PR in a utils-layer series: ClusterConfig now, CheckpointingConfig and LoggerConfig to follow. - ClusterConfig(TypedDict) -> ClusterConfig(BaseModel, extra="allow"); NotRequired fields become Optional[...] = None. No new non-None defaults, so tests/unit/test_config_v2.py and the reference configs are unaffected. - All call sites move from key access (cluster_config["gpus_per_node"], cluster_config.get("segment_size")) to attribute access across grpo, grpo_sync, ppo, sft, dpo, rm, distillation, xtoken, single-controller setup, utils, and eval. - Test fixtures built via MasterConfig.model_construct bypass pydantic validation and would keep cluster as a plain dict, so their cluster values are wrapped in ClusterConfig.model_validate(...). Fixtures that never touch cluster (empty {} placeholders) are left as-is. - Verified: py_compile on all touched files; standalone pydantic check of the migrated class (required fields enforced, extra keys allowed, optional defaults, model_dump round-trip); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
2 of 3 tasks
yuki-97
pushed a commit
to lonexreb/RL
that referenced
this pull request
Sep 17, 2026
Part of the config v1 -> v2 migration (pattern established in NVIDIA-NeMo#2518; runs alongside NVIDIA-NeMo#3197 for policy configs and NVIDIA-NeMo#3289 for generation configs). First PR in a utils-layer series: ClusterConfig now, CheckpointingConfig and LoggerConfig to follow. - ClusterConfig(TypedDict) -> ClusterConfig(BaseModel, extra="allow"); NotRequired fields become Optional[...] = None. No new non-None defaults, so tests/unit/test_config_v2.py and the reference configs are unaffected. - All call sites move from key access (cluster_config["gpus_per_node"], cluster_config.get("segment_size")) to attribute access across grpo, grpo_sync, ppo, sft, dpo, rm, distillation, xtoken, single-controller setup, utils, and eval. - Test fixtures built via MasterConfig.model_construct bypass pydantic validation and would keep cluster as a plain dict, so their cluster values are wrapped in ClusterConfig.model_validate(...). Fixtures that never touch cluster (empty {} placeholders) are left as-is. - Verified: py_compile on all touched files; standalone pydantic check of the migrated class (required fields enforced, extra keys allowed, optional defaults, model_dump round-trip); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Sep 27, 2026
Part of the config v1 -> v2 migration (pattern established in NVIDIA-NeMo#2518; runs alongside NVIDIA-NeMo#3197 for policy configs and NVIDIA-NeMo#3289 for generation configs). First PR in a utils-layer series: ClusterConfig now, CheckpointingConfig and LoggerConfig to follow. - ClusterConfig(TypedDict) -> ClusterConfig(BaseModel, extra="allow"); NotRequired fields become Optional[...] = None. No new non-None defaults, so tests/unit/test_config_v2.py and the reference configs are unaffected. - All call sites move from key access (cluster_config["gpus_per_node"], cluster_config.get("segment_size")) to attribute access across grpo, grpo_sync, ppo, sft, dpo, rm, distillation, xtoken, single-controller setup, utils, and eval. - Test fixtures built via MasterConfig.model_construct bypass pydantic validation and would keep cluster as a plain dict, so their cluster values are wrapped in ClusterConfig.model_validate(...). Fixtures that never touch cluster (empty {} placeholders) are left as-is. - Verified: py_compile on all touched files; standalone pydantic check of the migrated class (required fields enforced, extra keys allowed, optional defaults, model_dump round-trip); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Sep 27, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
yuki-97
pushed a commit
to lonexreb/RL
that referenced
this pull request
Sep 30, 2026
Part of the config v1 -> v2 migration (pattern established in NVIDIA-NeMo#2518; runs alongside NVIDIA-NeMo#3197 for policy configs and NVIDIA-NeMo#3289 for generation configs). First PR in a utils-layer series: ClusterConfig now, CheckpointingConfig and LoggerConfig to follow. - ClusterConfig(TypedDict) -> ClusterConfig(BaseModel, extra="allow"); NotRequired fields become Optional[...] = None. No new non-None defaults, so tests/unit/test_config_v2.py and the reference configs are unaffected. - All call sites move from key access (cluster_config["gpus_per_node"], cluster_config.get("segment_size")) to attribute access across grpo, grpo_sync, ppo, sft, dpo, rm, distillation, xtoken, single-controller setup, utils, and eval. - Test fixtures built via MasterConfig.model_construct bypass pydantic validation and would keep cluster as a plain dict, so their cluster values are wrapped in ClusterConfig.model_validate(...). Fixtures that never touch cluster (empty {} placeholders) are left as-is. - Verified: py_compile on all touched files; standalone pydantic check of the migrated class (required fields enforced, extra keys allowed, optional defaults, model_dump round-trip); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Oct 5, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Oct 10, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Oct 18, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Oct 24, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
1 task
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Oct 28, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Oct 31, 2026
…Config to BaseModel Second PR in the utils-layer config v1 -> v2 series (NVIDIA-NeMo#3916 migrated ClusterConfig; pattern from NVIDIA-NeMo#2518, alongside NVIDIA-NeMo#3197/NVIDIA-NeMo#3289). Schema: - Both classes become BaseModel(extra="allow"); NotRequired fields become Optional[...] = None. - Hidden call-site defaults are centralized on the class exactly as they behave today: save_optimizer=True, save_data_plane=False, save_consolidated=False, model_cache_dir="", model_repo_id="", is_peft=False, is_async=False. - model_save_format stays Optional[str] = None on purpose: the DTensor v1 worker rejects any non-None value, and the automodel layers apply their own "safetensors" fallback (CheckpointManager keeps that resolution, now explicit instead of a .get default). - load_replay_buffer stays tri-state (Optional[bool] = None): the async-GRPO restore path only opts out on an explicit False. Call sites (~85 across all algorithms, SC utils, lm_policy) move from key access / .get() to attribute access. Two deliberate dict boundaries are preserved with model_dump(): - policy_config["pretrained_checkpoint"] hand-off (PolicyConfig is still TypedDict-shaped; Megatron setup consumes dict keys), and - checkpointing_cfg forwarded to save_checkpoint workers (the automodel checkpoint layer consumes .items()/.get()). Tests: fixtures built via model_construct bypass validation, so checkpointing dict literals are wrapped in CheckpointingConfig.model_construct(**{...}) (missing required fields now raise AttributeError where they raised KeyError before); CheckpointManager unit tests validate their full config dicts via model_validate. No exemplar YAML or reference-config changes; class defaults mirror the documented/exemplar values, so tests/unit/test_config_v2.py is unaffected. Verified: py_compile on all touched files; standalone pydantic semantics checks (exemplar blocks round-trip, sft.yaml block keeps model_save_format=None, nested pretrained_checkpoint coerces and dumps back, extra keys preserved, model_construct default-fill); ruff format + check clean. Signed-off-by: Shubhankar Tripathy <[email protected]>
lonexreb
added a commit
to lonexreb/RL
that referenced
this pull request
Nov 7, 2026
Merge origin/main (49 commits) to clear the conflicts with NVIDIA-NeMo#5009 and the "Check if PR branch is up to date" gate. Code main moved into rollout_checkpointing/ and main's new tests get the same attribute access as the rest of this PR. Review fixes: - load_replay_buffer is a plain bool defaulting to True; readers test `not load_replay_buffer`, and the reference configs dump `true`. - save_period defaults to 10; note that higher_is_better is only read when metric_name is set. - PretrainedCheckpointConfig stays a TypedDict until PolicyConfig migrates (NVIDIA-NeMo#3197), so setup hands it over unchanged and PolicyConfig.pretrained_checkpoint keeps its TypedDict annotation. - Indent the CheckpointingConfig docstring under Attributes: and document save_period, checkpoint_must_save_by and pretrained_checkpoint. - Tests build CheckpointingConfig with keyword arguments. - Drop the defaults-only CheckpointManager test (NVIDIA-NeMo#5009 testing rules). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Shubhankar Tripathy <[email protected]>
1 task
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the first PR in the policy config migration series.
TypedDictto PydanticBaseModelwithextra="allow":use attribute access.
Compatibility
This PR intentionally does not migrate top-level
PolicyConfig/ValueConfigor backend-specific DTensor, Automodel, and Megatron configs. Those will be handled in follow-up PRs.Validation
tests/unit/test_config_v2.pyand config validation: 509 passed, 6 skippedgit diff --checkpassed