[Bugfix]Fix DeepSeek-V4 fp8_ds_mla KV cache reshape (#47716)
Co-authored-by: yy-fighting <23518844576@qq.com> Co-authored-by: Michael Goin <mgoin64@gmail.com>
This commit is contained in:
co-authored by
yy-fighting
Michael Goin
parent
ae098abe3f
commit
04adc8843b
@@ -23,6 +23,7 @@ from vllm.v1.kv_cache_interface import (
|
||||
KVCacheSpec,
|
||||
MLAAttentionSpec,
|
||||
SlidingWindowMLASpec,
|
||||
get_kv_quant_mode,
|
||||
)
|
||||
|
||||
# DeepseekV4 decode layer types, keyed by compress_ratio. Each type has a distinct
|
||||
@@ -91,6 +92,7 @@ class DeepseekV4SWACache(torch.nn.Module, AttentionLayerBase):
|
||||
cache_dtype_str=self.cache_config.cache_dtype,
|
||||
alignment=576 if uses_fp8_ds_mla_layout else None,
|
||||
model_version="deepseek_v4",
|
||||
kv_quant_mode=get_kv_quant_mode(self.cache_config.cache_dtype),
|
||||
)
|
||||
|
||||
def forward(self): ...
|
||||
|
||||
Reference in New Issue
Block a user