Repository navigation
[rl] GDN layer: run steps with drafts from TorchTitan's builder - #6475
Draft
liangel-02 wants to merge 3 commits into
Draft
liangel-02 wants to merge 3 commits into
liangel-02 wants to merge 3 commits into
Conversation
VLLMInnerGDN runs the builder's draft metadata: VERIFY steps on vLLM's verify kernels, PACKED steps with verify rows first and prefill rows after, both inside FULL graphs. The layer still refuses speculative decoding at construction; the MTP PR lifts that refusal when the engine owns speculative_config. GPU tests compare verify rows with single-token decodes and a step with drafts with one without, eager and replayed.
1 task
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #6433 (originally by felipemello1).
Summary (human-written)
Agent details
Stack, bottom to top:
The stack lands after the vLLM 0.33 PRs ("[rl] generator: vLLM 0.33 API fixes and TP padding in the model wrapper", "[rl] Install vLLM 0.33.0 on the torch nightly"). "[rl] generator: run on vLLM's model runner V2 (vLLM 0.34)" rebases on it.
TLDR:
VLLMInnerGDNruns steps with MTP drafts from the GDN builder's metadata (PR 1). Every kernel runs every row, and rows it doesn't own get the null slot, so one graph per token count replays any mix of rows. The layer still refuses drafts in__init__: the MTP PR (4) lifts that refusal when the engine ownsspeculative_config.Problem
kdrafts, a verify row reads the state after its last accepted token. It must write one state per draft position, so a rejected draft leaves the accepted state intact.causal_conv1d_update, FLA'sfused_sigmoid_gating_delta_rule_update).Solution
_forward_speculativeruns the VERIFY or PACKED kernels above. No tensor size or Python branch depends on the mix of rows. Rows no sequence owns get zeros._verify_gdnruns vLLM's verify GDN kernel over every row, from the builder'sspec_*fields._forwardruns main's code.__init__keeps main's refusal of speculative decoding.Results
NOTE:
test_gdn_graph_metadata.pyruns in CI's RL 1 GPU job (A10G) when the PR has theciflow/rllabel. That job was green at the old head of "[rl] MTP on GDN models: FULL CUDA graphs for steps with prefill" (tagciflow/rl/6403), which had these cases. There they skip only without CUDA or the model path, which the workflow sets, so they most likely ran. Its log was not read. Not run there at this head yet.Follow up / TODO (the
# TODOis in_verify_gdn)Test plan