Compare commits
1 Commits
amd_dev
...
fix_ds_eag
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ffb182ba3 |
@ -50,6 +50,7 @@ class DeepseekV2Model(nn.Module):
|
|||||||
DeepseekV2DecoderLayer(
|
DeepseekV2DecoderLayer(
|
||||||
vllm_config,
|
vllm_config,
|
||||||
prefix=maybe_prefix(prefix, f"layers.{i + start_layer_id}"),
|
prefix=maybe_prefix(prefix, f"layers.{i + start_layer_id}"),
|
||||||
|
config=self.config,
|
||||||
) for i in range(self.config.num_hidden_layers)
|
) for i in range(self.config.num_hidden_layers)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@ -990,10 +990,11 @@ class DeepseekV2DecoderLayer(nn.Module):
|
|||||||
def __init__(self,
|
def __init__(self,
|
||||||
vllm_config: VllmConfig,
|
vllm_config: VllmConfig,
|
||||||
prefix: str,
|
prefix: str,
|
||||||
|
config: Optional[DeepseekV2Config] = None,
|
||||||
topk_indices_buffer: Optional[torch.Tensor] = None) -> None:
|
topk_indices_buffer: Optional[torch.Tensor] = None) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
config = vllm_config.model_config.hf_config
|
config = config or vllm_config.model_config.hf_config
|
||||||
model_config = vllm_config.model_config
|
model_config = vllm_config.model_config
|
||||||
cache_config = vllm_config.cache_config
|
cache_config = vllm_config.cache_config
|
||||||
quant_config = vllm_config.quant_config
|
quant_config = vllm_config.quant_config
|
||||||
|
|||||||
Reference in New Issue
Block a user