Add DFlash speculative decoding support to NeMo SpeechLM vLLM plugin - #16129
Closed
Slyne wants to merge 20 commits into
Closed
Add DFlash speculative decoding support to NeMo SpeechLM vLLM plugin#16129Slyne wants to merge 20 commits into
Slyne wants to merge 20 commits into
Conversation
- register the NeMo SpeechLM MTP draft model and route compatible repeated-layer checkpoints through vLLM speculative decoding - fuse audio embeddings at placeholder positions for target and draft models - load MTP weights while handling SpeechLM checkpoint prefixes and vocabulary padding - make plugin registration idempotent and validate repeated-layer multi-head configurations - add focused plugin tests for registration, config routing, embeddings, and MTP properties Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: SlyneD <slyned@nvidia.com>
…r repeated MTP head; and fix for v0.20.0 weight loading Signed-off-by: SlyneD <slyned@nvidia.com>
Signed-off-by: SlyneD <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Slyne
force-pushed
the
slyne/dflash-inference
branch
from
August 26, 2026 05:45
c1f6947 to
31fab7c
Compare
| pass | ||
|
|
||
| perception.encoder = pe_encoder | ||
| perception.eval() |
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Signed-off-by: slyne deng <slyned@nvidia.com>
Slyne
force-pushed
the
slyne/dflash-inference
branch
from
August 26, 2026 21:46
31fab7c to
d512afe
Compare
Signed-off-by: slyne deng <slyned@nvidia.com>
Slyne
force-pushed
the
slyne/dflash-inference
branch
from
August 26, 2026 23:06
d512afe to
c942cd7
Compare
Signed-off-by: SlyneD <slyned@nvidia.com>
5 tasks
Contributor
Author
|
Close this PR. Please refer to #16239. |
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.
Important
This PR depends on #15906. Until that prerequisite merges, GitHub may show its SALM vLLM/MTP commits in this draft's diff.
What does this PR do?
Add checkpoint-backed DFlash and DFlash2 speculative-decoding inference support for NeMo SpeechLM models served through vLLM.
Collection: SpeechLM (
nemo.collections.speechlm2)Changelog
SupportsEagle3hidden-state contract used by DFlash.3406ec1dae9916f920b90f0dbf90dcf54923d042from [Spec Decode] DFlash2: local convolution + candidate selector vllm-project/vllm#52816.Scope
This is inference-only support. It does not train, fine-tune, convert, or bundle DFlash/DFlash2 checkpoints. A DFlash2 checkpoint must be trained or fine-tuned separately for the target Lightning backbone.
Usage
For DFlash2, install the pinned runtime documented in
docs/source/speechlm2/vllm_dflash.rstand pointmodelat a separately trained checkpoint declaringDFlash2DraftModel.Validation
tests/collections/speechlm2/test_to_hf.pytests/collections/speechlm2/test_vllm_plugin.pygit diff --check upstream/main...HEADpassed.Before this PR is ready for review