[Bugfix] DFlash FP8 KV-Cache (#42692)

Signed-off-by: Benjamin Chislett <bchislett@nvidia.com>
This commit is contained in:
Benjamin Chislett
2026-05-15 08:29:45 -06:00
committed by GitHub
parent 95cfe102a5
commit 0fe7550254
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -247,8 +247,10 @@ class DFlashQwen3Model(nn.Module):
[
DFlashQwen3DecoderLayer(
current_vllm_config,
prefix=maybe_prefix(prefix, f"layers.{layer_idx + start_layer_id}"),
config=self.config,
cache_config=current_vllm_config.cache_config,
quant_config=self.quant_config,
prefix=maybe_prefix(prefix, f"layers.{layer_idx + start_layer_id}"),
)
for layer_idx in range(self.config.num_hidden_layers)
]
+1 -1
View File
@@ -116,7 +116,7 @@ class SpecDecodeBaseProposer:
self.max_batch_size = vllm_config.scheduler_config.max_num_seqs
self.max_num_tokens = vllm_config.scheduler_config.max_num_batched_tokens
self.token_arange_np = np.arange(self.max_num_tokens)
self.token_arange_np = np.arange(self.max_num_tokens, dtype=np.int32)
# Can be specialized by methods like DFlash to reduce the limit
self.max_query_tokens = self.max_num_tokens