[Core] Deprecate "all" mamba cache mode (#55041)
Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
@@ -459,7 +459,10 @@ def test_v2_model_runner_accepts_routed_experts(monkeypatch):
|
|||||||
mode=CompilationMode.NONE,
|
mode=CompilationMode.NONE,
|
||||||
pass_config=SimpleNamespace(enable_sp=False),
|
pass_config=SimpleNamespace(enable_sp=False),
|
||||||
),
|
),
|
||||||
cache_config=SimpleNamespace(kv_sharing_fast_prefill=False),
|
cache_config=SimpleNamespace(
|
||||||
|
kv_sharing_fast_prefill=False,
|
||||||
|
mamba_cache_mode="none",
|
||||||
|
),
|
||||||
ec_transfer_config=None,
|
ec_transfer_config=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -323,6 +323,17 @@ class CacheConfig:
|
|||||||
self.user_specified_mamba_block_size = True
|
self.user_specified_mamba_block_size = True
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@field_validator("mamba_cache_mode", mode="after")
|
||||||
|
@classmethod
|
||||||
|
def _validate_mamba_cache_mode(cls, mode: MambaCacheMode) -> MambaCacheMode:
|
||||||
|
if mode == "all":
|
||||||
|
logger.warning_once(
|
||||||
|
"Mamba cache mode 'all' is deprecated and will be removed in an "
|
||||||
|
"upcoming release. If this is a problem, please open an issue "
|
||||||
|
"at https://github.com/vllm-project/vllm/issues."
|
||||||
|
)
|
||||||
|
return mode
|
||||||
|
|
||||||
@field_validator("cache_dtype", mode="after")
|
@field_validator("cache_dtype", mode="after")
|
||||||
@classmethod
|
@classmethod
|
||||||
def _validate_cache_dtype(cls, cache_dtype: CacheDType) -> CacheDType:
|
def _validate_cache_dtype(cls, cache_dtype: CacheDType) -> CacheDType:
|
||||||
|
|||||||
@@ -2614,6 +2614,9 @@ class VllmConfig:
|
|||||||
# Will be added by https://github.com/vllm-project/vllm/pull/35045
|
# Will be added by https://github.com/vllm-project/vllm/pull/35045
|
||||||
unsupported.append("KV sharing fast prefill")
|
unsupported.append("KV sharing fast prefill")
|
||||||
|
|
||||||
|
if self.cache_config.mamba_cache_mode == "all":
|
||||||
|
unsupported.append("mamba cache mode 'all'")
|
||||||
|
|
||||||
return unsupported
|
return unsupported
|
||||||
|
|
||||||
def _get_v1_model_runner_unsupported_features(self) -> list[str]:
|
def _get_v1_model_runner_unsupported_features(self) -> list[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user