Skip to content

[Chore] Clean up config defaults throughout codebase #863

Closed

Description

@terrykong

Config defaults have slipped in that don't follow the design philosophy: https://docs.nvidia.com/nemo/rl/latest/design-docs/design-and-philosophy.html#typeddict-and-configuration-defaults:~:text=We%20forbid%20defaults%20in%20the%20code

src: https://github.com/NVIDIA-NeMo/RL/pull/712/files/1e59873928c991aea3f3c7d9630080f2704af94d#r2258108173

Some examples to clean up:

megatron_enable = config.get("megatron_cfg", {}).get("enabled", False)

env_vars = config["megatron_cfg"].get("env_vars", {})

"logprob_mb_tokens": config["sequence_packing"].get(

if self.cfg.get("reward_model_cfg", {}).get("enabled", False):

self._is_reward_model = self.cfg.get("reward_model_cfg", {}).get(

Activity

  1. added
    qa_rcca_done
    on May 5, 2026
  2. qiaochuz-nv commented on May 5, 2026

    @qiaochuz-nv
    Contributor

    QA RCCA Analysis

    RCCA Status: Done
    RCCA Category: covered
    Test Action: none

    Fix PR: #712, #993
    Root Cause: fix PR includes upstream test coverage.
    Trigger Config: [Chore] Clean up config defaults throughout codebase

    Coverage Assessment:

    Area Result
    Existing Test Upstream fix PR test coverage
    Coverage Status COVERED
    Gap N/A
    Corrective Action No nmfw_tests addition required; fix PR includes upstream test coverage or equivalent regression coverage.

    Conclusion: RCCA classification completed for this closed NeMo-RL GitHub issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueqa_rcca_done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions