Skip to content

perf(recipes): add optimized Super Omni GRPO recipe - #3805

Merged
terrykong merged 6 commits into
mainfrom
codex/super-omni-optimized-recipe
Aug 26, 2026
Merged

terrykong merged 6 commits into
mainfrom
codex/super-omni-optimized-recipe

Conversation

@youngeunkwon0405

@youngeunkwon0405 youngeunkwon0405 commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds one minimized Super Omni async-GRPO performance recipe. It inherits the maintained TP8/EP16/CP2 recipe, preserves the 64-GPU learner and 64-GPU rollout pools, and maps them from 16 eight-GPU nodes to 32 four-GPU nodes.

The optimized recipe applies these validated settings:

  • learner tensor parallelism: TP8 to TP2;
  • learner context parallelism: CP2 to CP1;
  • activation checkpointing remains enabled and full recomputation is explicit;
  • policy/reference logprob packing: 16K to 32K tokens;
  • vLLM CUDA-graph mode: PIECEWISE to FULL_AND_PIECEWISE;
  • vLLM request concurrency: 32 to 64 sequences.

The PR changes only the new recipe YAML. It does not change runtime code, tests, suite registration, launchers, the existing CP2 recipe, or the MTP recipes.

Issues

None.

Usage

Select the recipe through CONFIG_PATH when invoking the existing Super Omni launcher:

CONFIG_PATH=examples/configs/recipes/vlm/vlm_grpo-nemotron-super-omni-120ba12b-32n4g-megatron-tp2ep16cp1-async-gym.v1.yaml \
MODEL_PATH=/path/to/checkpoint TRAIN_PATH=/path/to/train.jsonl \
CONTAINER=/path/to/container ACCOUNT=<account> PARTITION=<partition> \
  bash examples/nemo_gym/nemotron-3-super-omni/super_omni_launch.sh

The validated allocation is 32 nodes x 4 GPUs with segment size 8: 16 learner nodes and 16 generation nodes.

Validation

  • tools/config_cli.py minimize-check passes.
  • Expanded comparison against the CP2 parent reports only the intended topology and performance deltas: cluster 16x8 -> 32x4, generation resources 8x8 -> 16x4, segment size 8, TP8 to TP2, CP2 to CP1, explicit full recomputation, logprob packing 16K to 32K, FULL_AND_PIECEWISE CUDA graphs, and max_num_seqs: 64.
  • Target-scale four-step validation: Slurm 6498158, 32 nodes / 128 GPUs, 256 prompts x 16 generations, 16K sequence length, COMPLETED|0:0 in 45:18. W&B
  • Slurm 6498158 measured Steps 3-4: policy training 101.829 s mean / 6.668 s per million tokens; logprobs 36.394 s / 2.383 s per million tokens; combined learner phases 138.224 s / 9.051 s per million tokens; policy throughput 2,316.138 tokens/s/GPU. Age-one, refit, batch-size, correctness, and masking gates passed.
  • A matched TP2/EP16/CP1 selective-recompute run OOMed during Step 1 policy training, while full recomputation completed all four steps. This validates full recomputation as required memory headroom at the target scale.
  • A TP1/EP16/CP1 full-recompute check also OOMed during Step 1 policy training, while TP4/EP16/CP1 full recompute was 46.4% slower in normalized combined learner time. TP2/full remains the target-scale winner.
  • Ten-step final validation from the exact recipe: Slurm 6498830, COMPLETED|0:0 in 1:21:36 with 23:24 walltime spare. W&B
  • Slurm 6498830 measured Steps 3-10: policy training 101.528 s mean / 6.635 s per million tokens; logprobs 34.192 s / 2.235 s per million tokens; combined learner phases 135.721 s / 8.869 s per million tokens; policy throughput 2,335.780 tokens/s/GPU. All ten steps completed, age was exactly one on Steps 3-10, correctness metrics were finite, and there were no CUDA OOM or refit failures.
  • On the matched Steps 3-4 window, the ten-step run reproduced the four-step winner: normalized combined learner time was 8.801 versus 9.051 s per million tokens, 2.76% lower.

Before your PR is ready for review

  • Read and followed the contributor guidelines.
  • Kept the patch to one minimized recipe YAML.
  • Ran focused config validation and full-scale training validation.
  • No documentation update is needed for this config-only recipe addition.

Additional information

The runs still show generation-tail starvation. Diagnosing the exposed-generation idle/data path is intentionally deferred to separate instrumentation work and is not part of this recipe-only PR.

@youngeunkwon0405
youngeunkwon0405 requested review from a team as code owners August 24, 2026 21:24
@copy-pr-bot

copy-pr-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test 33aa2b5

@youngeunkwon0405 youngeunkwon0405 self-assigned this Aug 24, 2026
@youngeunkwon0405 youngeunkwon0405 added CI:docs Run doctest CI:L0 Run doctests and unit tests and removed CI:docs Run doctest labels Aug 24, 2026
@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test 33aa2b5

@youngeunkwon0405 youngeunkwon0405 added CI:docs Run doctest and removed CI:L0 Run doctests and unit tests labels Aug 24, 2026
@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test 795ff79

@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test 5f49ac64f592e6ce6e5a4481feee21c4a76f0f7a

@copy-pr-bot

copy-pr-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

/ok to test 5f49ac64f592e6ce6e5a4481feee21c4a76f0f7a

@youngeunkwon0405, there was an error processing your request: E2

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/

@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test 5f49ac6

@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test b653863

@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test fbf01ea

@youngeunkwon0405 youngeunkwon0405 added CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) and removed CI:docs Run doctest labels Aug 25, 2026
@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

/ok to test 2c1d9a2

@DanialTaheri DanialTaheri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@youngeunkwon0405

Copy link
Copy Markdown
Contributor Author

Hi @terrykong, can we merge this recipe PR? It got approved by @DanialTaheri.

@terrykong
terrykong merged commit 95b7148 into main Aug 26, 2026
85 checks passed
@terrykong
terrykong deleted the codex/super-omni-optimized-recipe branch August 26, 2026 19:00
yfw added a commit that referenced this pull request Oct 19, 2026
Gym main as of 2026-10-19. Includes 6f295d7dd (RL #4753's target: the
model-server dependency fix for vLLM 0.29.0 / FlashInfer 0.6.18) and the
bbh_hypotest OpenSandbox config (Gym #3805) and sav_tracks (Gym #3999) that
the Super 3.5 prefetch needs. In Gym, Ray moves to an extra and requests
becomes a direct dependency; relocked with uv 0.11.28, the version
docker/Dockerfile installs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
yfw added a commit that referenced this pull request Oct 19, 2026
Needs a Gym with the aviary bbh_hypotest OpenSandbox config (Gym #3805) and
sav_tracks (Gym #3999), both 2026-10-15. Port the fork's bbh_hypotest
override to the aviary server name and ship the empty problems file its
dry run reads. hypotest creates dataset.work_dir while validating, so point
it at /tmp: the default /workspace needs root.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
yfw added a commit that referenced this pull request Oct 21, 2026
Needs a Gym with the aviary bbh_hypotest OpenSandbox config (Gym #3805) and
sav_tracks (Gym #3999), both 2026-10-15. Port the fork's bbh_hypotest
override to the aviary server name and ship the empty problems file its
dry run reads. hypotest creates dataset.work_dir while validating, so point
it at /tmp: the default /workspace needs root.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants