Skip to content

[rl] Recreate PR5255 native MoE router replay on the local base - #6459

Draft
vkuzo wants to merge 1 commit into
gh/vkuzo/10/headfrom
gh/vkuzo/11/head
Draft

vkuzo wants to merge 1 commit into
gh/vkuzo/10/headfrom
gh/vkuzo/11/head

Conversation

@vkuzo

@vkuzo vkuzo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Adapt Felipe Mello's author recut to the existing native generation stack, without merging its HTTP parents. Capture generator input-token routes through the installed vLLM V1 capture protocol, preserve full prefill/prefix-cache/decode rows and native turn deltas, pack/RDMA them alongside unshifted inputs, and force each decoder layer's selection while gathering fresh differentiable gate weights. Save the overridden choice inside the non-recomputed routing decision. Reject missing/malformed routes and unsupported MTP replay; keep padding on native distinct routes.

Preserve c4d94bd's PR6376 policy-loss/masking math and 584f6d's BF16 stochastic-copy/data controls. No PR6378 sequence-clipping integration, HTTP/Verifiers transport, router-statistics migration, or environment upgrade.

Validation: 343 focused CPU tests passed, zero failures/skips; includes actual installed V1 capture/storage/output APIs, Qwen metadata (48/128/8), fresh gate gradients and torch_remat self-replay, per-layer decoder forwarding, randomized multi-turn branches, CP2 input alignment, and real Monarch TCP RDMA replay transport. Pristine-base 71-test subset passed. 16 native router cases plus finite off-path packing match c4d94bd bitwise (104 tensor/value leaves). Cached Black22, AST (38 files), added-line ASCII and git diff --check pass. Full pre-commit/flake8 unavailable; cached usort/libcst native3.11 cannot load in private Python3.12. GPU FULL-graph/EP execution and training convergence not run under the user's GPU-prevalidation waiver.

Source-PR: #5255
Upstream-commit: 40c12cd
Source-author-recut: 3dbd045
Source-follow-up: fa0a1f4
Source-author-date: 2026-10-11T22:20:48-07:00
Recreation-note: Literal PR-head object unavailable; native adaptation of the attributed author recut, not a literal head transplant.
Co-authored-by: Felipe Mello [email protected]

[ghstack-poisoned]

This branch has not been deployed

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

Labels

ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant