[MRV2][Spec Decode] DFlash (#44586)

Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
Signed-off-by: Benjamin Chislett <bchislett@nvidia.com>
Signed-off-by: Benjamin Chislett <chislett.ben@gmail.com>
Co-authored-by: Giancarlo Delfin <gdelfin@inferact.ai>
This commit is contained in:
Benjamin Chislett
2026-06-10 08:47:46 -07:00
committed by GitHub
co-authored by Giancarlo Delfin
parent 4673ca1d78
commit 0bae1d3848
14 changed files with 868 additions and 47 deletions
+6 -3
View File
@@ -193,11 +193,14 @@ class GPUModelRunner(LoRAModelRunnerMixin):
if self.is_last_pp_rank:
self.speculator = init_speculator(self.vllm_config, self.device)
if self.speculative_config.method == "eagle3":
# EAGLE3 may require auxiliary hidden states from target model outputs.
if self.speculative_config.method in ("eagle3", "dflash"):
# Drafting may require auxiliary hidden states from target model outputs
self.use_aux_hidden_state_outputs = True
if self.use_pp:
raise ValueError("EAGLE3 with pipeline parallel is not supported.")
raise ValueError(
f"{self.speculative_config.method} with pipeline parallel "
"is not supported."
)
# Draft tokens propagation - for spec-dec + struct outputs.
self.draft_tokens_handler = DraftTokensHandler(self.device)