Repository navigation
Description
Tracking issue for loose ends in the managed Dynamo generation backend introduced in #3391.
Items will be checked off or split into separate issues as they land.
Scope: the policy.generation.backend: dynamo path — the driver-owned etcd / NATS / Dynamo-frontend
runtime and its Ray-scheduled vLLM worker fleet. Not Kubernetes, DGD, or externally-deployed Dynamo.
Each item has a stable LE-n identifier so review comments can point at a specific one. Identifiers are never reused or renumbered; a completed item keeps its number.
Known missing items
-
[LE-1] Multi-node inference (TP/PP spanning nodes) is unsupported — important for large models.
FixedDynamoWorkerPool.start()hard-rejects any engine group whose GPUs land on more than one node
(worker_pool.py#L124-L128):
"A managed Dynamo engine group spans multiple nodes. Multi-node TP/PP is not supported in the fixed-fleet milestone."
This caps the backend at models whose TP×PP fits inside one node — for the shipped 4-GPU-per-node
topology that is TP≤4. The vLLM backend already supports this: it derives
needs_cross_node = model_parallel_size > cluster.num_gpus_per_node, builds a unified placement group,
and setsNCCL_NVLS_ENABLE=0for the non-colocated cross-node case
(vllm_generation.py#L74-L78,
#L178-L221).
Two sub-parts: (a) route Dynamo throughinit_cluster_placement_groupsso it getsuse_unified_pg
instead of the catch-allelsebranch at
grpo.py#L906-L916; (b) verifydynamo.vllmcan be
driven with a cross-node TP group at all. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-2] ReuseWeightSynchronizerinstead of a sixth refit mechanism.
The refit is wired asisinstance(policy_generation, DynamoGeneration)branches inside the legacy
path ofrefit_policy_generation(grpo.py#L2315), bypassing the
abstraction that feat: add delta-compressed collective refit #2444, feat: add checkpoint-engine refit interface and integrate NIXL #2608 and feat: NCCL-Reshard refit merge PR (final) #2971 all landed through.DynamoGenerationalready implements
every methodCollectiveWeightSynchronizercalls, with matching signatures — see the review thread
for the concrete port. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
(edit: asked for in PR feat(dynamo): add managed Slurm generation with W&B telemetry #3391 — the wrong shape here is hard to unwind oncedynamois spread across the algorithm layer) -
[LE-3] AREAL-style cache invalidation (
recompute_kv_cache_after_weight_updates: true) is unsupported and fails silently.
resume_after_refitcallspolicy_generation.invalidate_kv_cache()from insideAsyncTrajectoryCollector,
which holds a pickled copy whose_managed_runtimeisNone, so the call raises and is swallowed by a
blanketexcept Exception(trajectory_collector.py#L567-L575).
The run silently falls back to Magistral-style (keep stale caches) — which is what the shipped recipe selects
anyway, so this is latent today. Either carryrefit_workers()through__getstate__so the copy can POST
flush_cacheitself, or assert at setup that the flag is false forbackend: dynamo.
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-4] Support the single-controller path (
single_controller.py, the v2 async GRPO loop).
backend: dynamois currently rejected there —_generation_max_lenraises
ValueError: Unknown generation backend 'dynamo'
(single_controller_utils/setup.py#L237) — which
fails loud, correctly, but means the v2 loop cannot use Dynamo at all. Note that wiring it requires the
pickled-copy fix above first: unliketrajectory_collector.py, the SC loop calls
self._gen.invalidate_kv_cache()unguarded
(single_controller.py#L615-L616), so the same
_managed_runtime is Nonefailure would hard-crash the run rather than degrade silently.
SC also builds its synchronizer throughcreate_weight_synchronizer
(setup.py#L410), so the WeightSynchronizer
item above is a prerequisite too. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-5] Unit-test both cache-invalidation modes. There is no test that AREAL-style
(recompute_kv_cache_after_weight_updates: true) actually invalidates, nor that Magistral-style skips it.
test_pickle_roundtrip_drops_driver_owned_runtimeassertsrestored._managed_runtime is Nonebut never calls
restored.invalidate_kv_cache(); the invalidation test covers the driver instance, which production never uses.
TRT-LLM has the precedent — test_trtllm_generation.py#L296-L318
parametrizes(in_flight, recompute_kv, expected_drain)across all three reachable combinations.
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-6] Fault tolerance on Slurm — and a way to simulate it.
The managed runtime adds four driver-side single points of failure no other backend has (etcd,
nats-server, the Dynamo frontend, the token-wrapper uvicorn thread). All liveness checks are
startup-only —_wait_for_frontend/_start_etcd/_wait_for_port
(managed_runtime.py#L300) never run again,
so a frontend that dies mid-run takes the job with it. Worker-side,
FixedDynamoWorkerPool.validate()
detects dead workers and reservations before each refit but only raises — no restart, quarantine, or
re-admission. On a 6-node / 240-minute recipe every one of those losses is currently fatal.feat: FT & R #3454 ("FT & R") is building this for the single-controller path (
engine_supervisor.py,
fleet_health.py,policy_router.py,weight_sync/membership.py, shard quarantine,
recreate_worker()) and validates it with fault injection. Two requirements when Dynamo adopts it:
(a) reuse feat: FT & R #3454's config schema —async_rl.watchdog.*,async_rl.rollout_failure.*,
fleet_health.*— rather than a paralleldynamo_cfg-scoped one, so the same knobs mean the same
thing across backends; (b) make the failure simulation backend-agnostic, able to target a
dynamo.vllmsubprocess, the frontend, etcd or NATS — otherwise Dynamo's four extra SPOFs are exactly
the ones never exercised. Killing the frontend is the interesting case; it has no analog elsewhere.
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-7] Write a usage guide, separate from the design doc.
docs/design-docs/dynamo-integration.mdcovers the "why"
well, but there is no "how do I run this". Adddocs/guides/dynamo-generation.mdthat links back to the
design doc and then goes straight into: support status (vLLM engine only, non-colocated only, single-node
engine groups, async rollouts only), the derived-image prerequisite, thedynamo_cfg+vllm_cfgconfig
layout with the honoured/moved/ignored key table, the 2-GPU smoke run then the 6-node recipe, how to verify
the refit landed (token_mult_prob_error), and the backend-specific failure modes. Template:
checkpoint-engine-refit.mdfor a feature guide,
models/qwen/qwen3-5.mdfor the support-status/recipe shape.
Register indocs/index.md. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
(edit: asked for in PR feat(dynamo): add managed Slurm generation with W&B telemetry #3391) -
[LE-8] Make ignoredvllm_cfgkeys loud. 12 of the 22VllmSpecificArgskeys are silently dropped under
backend: dynamo. Most are genuinely N/A (in-processllm.generate()knobs, the HTTP/ZMQ refit transports,
async_engine), andenable_return_routed_expertsis already guarded byvalidate_router_replay_config—
buttool_parser_pluginandreasoning_parser_pluginmoved todynamo_cfg.worker_args.*, so migrating
a working vLLM config silently changes tool/reasoning parsing. Raise for the moved keys, warn for the
genuinely unsupported ones (skip_tokenizer_init,is_mx), stay silent for N/A. Typingvllm_cfgas a
model rather thandict[str, Any]is what makes this enumerable. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
(edit: asked for in PR feat(dynamo): add managed Slurm generation with W&B telemetry #3391 — the guard and the four-line recipe edit land together) -
[LE-9] Router replay (MoE routing replay) is unsupported with Dynamo.
validate_router_replay_configraises
"router_replay.enabled requires vLLM generation." for any non-vLLM backend, so this fails loud today —
no correctness issue. Two follow-ups if it is ever wired: (a) the token wrapper overwrites
nvext.extra_fieldswith["engine_data"]
(token_wrapper.py#L387) rather than merging,
so Gym'srouted_expertsrequest would be silently dropped — ai-dynamo ignores unrecognised
extra_fieldsnames, so nothing upstream would complain either; (b) the guard is Megatron-only and its
message says "requires vLLM generation" without mentioning that Dynamo is vLLM but notbackend: vllm.
Worth stating in the usage guide's support-status table regardless. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-10] Ship a recipe on a public model. The 6-node SWE recipe targets Nemotron Nano v3.5, which is not
public, andmodel_namedefaults to a filesystem placeholder (/path/to/nemotron-nano-v3.5-checkpoint)
rather than a HuggingFace ID —custom_jinja_templatethen reads the chat template from inside that same
private directory. Combined with the recipe being indisabled.txtand having no L1 functional test, nobody
outside the team can execute the 6-node path at all. The repo already standardises on
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16(10 recipes), which is also MoE so it still exercises expert
parallelism and the packed NCCL refit. The 2-GPU smoke is fine — it uses publicQwen/Qwen2.5-1.5B.
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
(edit: asked for in PR feat(dynamo): add managed Slurm generation with W&B telemetry #3391 — same one-line edit as theoc.envcleanup) -
[LE-11] Externally-deployed / unmanaged Dynamo. Explicitly out of scope for this milestone
(dynamo-integration.md#L4).DynamoGeneration
constructsManagedDynamoRuntimeunconditionally, so this needs a runtime seam.
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-12] Engine backends other than vLLM. The engine is the hardcoded literal
"dynamo.vllm"
(dynamo_worker.py#L120); ai-dynamo v1.3.0
also shipssglang
andtrtllmworkers.
Needs anenginefield onDynamoCfgrather than another string literal. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-13]
expert_parallel_sizeis accepted and silently ignored.validate_managed_vllm_config
checks positivity only (arguments.py#L297-L306),
and a bare--enable-expert-parallelmakes vLLM compute EP = DP×TP = TP. The vLLM backend rejects
ep != tpoutright (vllm_generation.py#L125-L136).
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-14] Sync (non-async) rollouts._should_use_async_rolloutsreturnsTrueunconditionally for
dynamo (grpo.py#L1947), soDynamoGeneration.generate()is
unreachable. Tracking in case a sync entrypoint ever needs it. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
(edit: dropped — no known need for a sync entrypoint; deleting the unreachablegenerate()is part of LE-17) -
[LE-18] Speculative decoding is accepted but never refit.
vllm_kwargs.speculative_config
forwards generically to--speculative-config, sodynamo.vllmstarts with a drafter — but the drafter
refit path lives inVllmInternalWorkerExtension
(_get_drafter_model,_maybe_refit_mtp_drafter), which the managed path has no equivalent of. Draft weights
stay at step 0 for the whole run: rejection sampling keeps outputs correct, so nothing errors — acceptance
rate just decays and throughput falls back toward non-speculative. For MTP the co-trained layer never reaches
the engine. Supporting this needs a drafter-refit route over Dynamo's admin endpoints, alongside the main
weight transfer. A guard is requested in this PR; the feature is not. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-19] Low-precision generation (FP8 / MXFP8 / NVFP4) is unsupported. Both mechanisms the vLLM
backend uses are unavailable out-of-process:init_fp8
returnshf_overridesand monkeypatchesFp8LinearMethod/ModelOptMxFp8FusedMoEinside NeMo RL's own vLLM
process, and NVFP4 swaps the worker class via
resolve_generation_worker_cls→
VllmQuantGenerationWorker, whereasFixedDynamoWorkerPoolhardcodesDynamoVllmWorker. Todayprecision: fp8
dies on an unrelated--dtypeargparse error and NVFP4 is silently ignored. Real support means passing
quantization throughdynamo.vllm's own CLI rather than patching the process. A guard is requested in this PR;
the feature is not. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
[LE-20] No arm64 / GB200 coverage — and the exclusion is a build-arg, not a code property.
L1_Functional_Tests_Dynamois explicitly filtered out of the GB200 functional plan (cicd-main.yml#L227-L231), and the SWE1 recipe is registered innightly.txtbut notnightly_gb200.txt, so nothing exercisesbackend: dynamoon arm64 at any test level. The exclusion is currently unavoidable:build-containerpassesBUILD_DYNAMO=1(#L560) whilebuild-container-gb200does not (#L606-L609), anddocker/Dockerfileshort-circuits without it (#L378-L382), so/opt/dynamo_venvdoes not exist in the arm64 image. The stated reason — "the managed Dynamo runtime is currently amd64-only" — is not a property of this repo's install path: install.sh#L26-L42 resolvesTARGETARCH/uname -mand acceptsarm64explicitly, and the etcd and nats-server downloads are arch-parameterised (#L88, #L96). As shipped, that arm64 branch is unreachable. The real constraint is whetherai-dynamo[vllm]==1.3.0.post1resolves on aarch64 — worth settling, then either passingBUILD_DYNAMO=1on the GB200 build and registering the test, or deleting the dead arm64 branch and failing loudly at install time. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
Known cleanup items
-
[LE-15] Automated coverage. The only acceptance recipe ships intests/test_suites/disabled.txt, the
five new unit-test files are collected by no CI shard, anddocker/dynamo/Dockerfileis never built in
CI. Needs an L1 functional test (the 2-GPU smoke config is the right size) plus shard registration.
(Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
(edit: landed in feat(dynamo): add managed Slurm generation with W&B telemetry #3391.tests/functional/L1_Functional_Tests_Dynamo.shandtests/functional/grpo_dynamo.share registered incicd-main.ymland green onf270519, assertingmax(data["train/token_mult_prob_error"]) < 1.05plus a no-leaked-process check. The SWE1 recipe leftdisabled.txtfornightly.txt#L226.docker/dynamo/Dockerfileno longer exists — the venv is built insidedocker/DockerfilebehindBUILD_DYNAMO=1, which CI passes on the amd64 build (cicd-main.yml#L560), anduv lock --check --directory docker/dynamoruns in lockfile-check.yml#L54-L55. Residual arm64 / GB200 gap split out as LE-20.) -
[LE-16] Port bands.
system_port_base: 29000and the recipes'25000-28000/15001-20000ranges sit
above the 9000 GB200 ephemeral floor that fix: configure port ranges to avoid TOCTOU port contention #2380 and fix: Port contention issues between Ray/vLLM/Gym and sandbox workers #3103 established;VLLM_PORTis not forwarded to
the engine subprocess. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review) -
~~[LE-17] Dead code. ~225 removable lines: unreachable
generate(), three TypedDict twins duplicating
their BaseModel counterparts,_owns_managed_runtime, a deaduvbranch, three unreachable guards in
token_wrapper.py. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)~~
(edit: asked for in PR feat(dynamo): add managed Slurm generation with W&B telemetry #3391 — deletions only) -
[LE-21]
generation_metrics/*ships 14 series where the vLLM backend ships 4.snapshot()renames only the first matching source per alias and leaves every other curated name in the dict (metrics.py#L189-L195), so each aliased Dynamo gauge is logged next to its surviving vLLM twin —inflight_batch_sizes+vllm_num_requests_running,num_pending_samples+vllm_num_requests_waiting,kv_cache_usage_perc+vllm_kv_cache_usage_perc— and every key is plotted twice,per_worker_andaverage_(logger.py#L1177, #L1194). Two strays alongside that:"vllm:num_requests_waiting"also prefix-matches vLLM 0.23.0'svllm:num_requests_waiting_by_reason, and"vllm_gpu_cache_usage_perc"(metrics.py#L54) became an unreachable alias source when its curated prefix was dropped ine4c8b79b6. Separately worth pinning:kv_cache_usage_percresolves todynamo_component_gpu_cache_usage_percenthere but tovllm:kv_cache_usage_percon the vLLM backend, and Dynamo's docs disagree on the scale (prometheus_names.rs#L788-L789 says 0.0–1.0, DASHBOARD_METRICS.md#L73 says 0–100). Plot noise only; no training impact. (Flagged during feat(dynamo): add managed Slurm generation with W&B telemetry #3391 review)
Add anything else here as it comes up.
Activity
Abubakar-rashid commentedon Aug 3, 2026
Hi, I would like to contribute to this tracking issue. I am interested in taking the task of making ignored vllm_cfg keys explicit, so users are warned when unsupported configuration keys are silently ignored. Would it be okay for me to work on this?
terrykong commentedon Aug 3, 2026
hi @Abubakar-rashid. thanks for the interest. this is currently just a scratch pad for issues that may or may not need implementing so just a word of caution to implementing anything from this list as the main PR also has not even landed.
i have created this as part of this review https://github.com/NVIDIA-NeMo/RL/pull/3391/changes#diff-8e393d7963fd936eaf1ab5399e4cfe1935b941f87b9d5497fe5f90a3bf62fb34 so much of this is still in flux. feel free to follow along in the review to watch.
yuki-97 commentedon Aug 19, 2026
Checked off LE-15 and added two items, all against #3391 head
f270519.LE-15 — done. All three things it named landed: the SWE1 recipe moved out of
disabled.txtintonightly.txt,L1_Functional_Tests_Dynamoexists and is green (assertingmax(train/token_mult_prob_error) < 1.05plus a no-leaked-process check), anddocker/dynamo/Dockerfileis gone — the venv is built insidedocker/DockerfilebehindBUILD_DYNAMO=1, which CI passes, withuv lock --check --directory docker/dynamowired intolockfile-check.yml.LE-20 (missing) — no arm64 / GB200 coverage. This is the one piece of LE-15 that did not land, so it is split out rather than left under a checked item.
L1_Functional_Tests_Dynamois explicitly filtered out of the GB200 functional plan and the recipe is innightly.txtbut notnightly_gb200.txt. The exclusion is currently forced: only the amd64 build passesBUILD_DYNAMO=1, so/opt/dynamo_venvdoes not exist in the arm64 image. Worth noting the stated reason ("amd64-only") is not a property ofdocker/dynamo/install.sh, which handlesarm64explicitly — as shipped that branch is unreachable.LE-21 (cleanup) —
generation_metrics/*duplicates.snapshot()renames only the first matching source per alias, so each aliased Dynamo gauge is logged next to its surviving vLLM twin, and one alias source became unreachable when its curated prefix was dropped. Plot noise only; no training impact.