NVIDIA-NeMo/RL · #4801 → #4912 → #5023 → #5024 → #5025 → #5097 · each PR is reviewed against the one below it · state as of 2026-11-23
policy.generation.backend: megatron + dynamo: true. Dotted words: hover or tap.| PR | What it does | What works after it | Explainer pages |
|---|---|---|---|
| 1 · #4801 | Adds the dynamo: true switch for Megatron, the per-role prefill/decode layouts, and the math for engine widths. Teaches refit that engines can have different widths. |
Config and arithmetic only. | where the switch sitsone P/D interfacerefit widths |
| 2 · #4912 | Adds MegatronDynamoGeneration: it builds one MegatronGeneration per prefill or decode engine, each on its own node, and fans every refit call out to them. Adds a Dynamo worker class that builds Megatron-LM's handoff engine. |
Engines can be built and refit; still refused at setup. | old path vs new pathengine build at the pin |
| 3 · #5023 | Runs Megatron-LM's Dynamo adapter inside each engine's rank 0, and starts etcd, NATS and the frontend from NeMo RL, so the engines register with the frontend after the first refit. | Frontend sees the engines; still refused at setup. | how an engine registersthe adapter, before and after C1every class, side by side |
| 4 · #5024 | Orders refit so in-flight KV handoffs finish first (stop new prefills, drain pinned blocks, suspend, resume), and makes shutdown release prefill's pinned blocks. | Refit is safe with traffic; still refused at setup. | refit and shutdown ordershutdown report |
| 5 · #5025 | Turns the feature on. Rollouts post token ids to the frontend; validate_settings checks what P/D cannot serve instead of refusing everything. Ships an example config, a functional test and docs. |
GRPO rollouts run on prefill/decode engines. | direct vs. through Dynamo |
| 6 · #5097 | Serves NeMo-Gym chat calls through the frontend's chat engine, shared with vLLM; renders with Megatron-LM's ChatRenderer and writes token capture once, on the decode engine. |
NeMo-Gym runs on prefill/decode engines (text only). | two backends, one chat enginefaults as 400TQ steps on each pathmedia under P/D |
dynamo: true until #5025. So a bug in 1–4 usually shows up only once #5025 turns the feature on, and the fix can live in the PR that wrote the code even if it is not reachable yet. Two needs reach outside this repo: the pinned Megatron-LM lacks a field #4912 uses and a class #5097 uses, so both are asked to fail early with a clear message rather than bump Megatron-LM inside the stack.