mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 23:03:52 +08:00
Compare commits
1 Commits
v0.11.1rc1
...
fix_ds_eag
Author | SHA1 | Date | |
---|---|---|---|
9ffb182ba3 |
@ -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)
|
||||
])
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user