Compare commits

...

1 Commits

Author SHA1 Message Date
9ffb182ba3 Fix config passed to deepseek_eagle
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
2025-09-30 13:03:27 +00:00
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,7 @@ class DeepseekV2Model(nn.Module):
DeepseekV2DecoderLayer(
vllm_config,
prefix=maybe_prefix(prefix, f"layers.{i + start_layer_id}"),
config=self.config,
) for i in range(self.config.num_hidden_layers)
])

View File

@ -990,10 +990,11 @@ class DeepseekV2DecoderLayer(nn.Module):
def __init__(self,
vllm_config: VllmConfig,
prefix: str,
config: Optional[DeepseekV2Config] = None,
topk_indices_buffer: Optional[torch.Tensor] = None) -> None:
super().__init__()
config = vllm_config.model_config.hf_config
config = config or vllm_config.model_config.hf_config
model_config = vllm_config.model_config
cache_config = vllm_config.cache_config
quant_config = vllm_config.quant_config