[Core] Remove deprecated mamba_cache_mode "all" (#58997)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Thomas Parnell <tpa@zurich.ibm.com>
This commit is contained in:
Jiangyun Zhu
2026-10-01 02:59:37 -07:00
committed by GitHub
co-authored by Claude Opus 5.5 Thomas Parnell
parent 08d77cad7b
commit cb6458c5ce
45 changed files with 201 additions and 1476 deletions
+2 -10
View File
@@ -189,7 +189,7 @@ def test_mixed_warmup_reserves_lookahead_blocks():
_assert_covers_lookahead(recorder.steps, num_lookahead_tokens)
@pytest.mark.parametrize("mamba_cache_mode", ["none", "all", "align"])
@pytest.mark.parametrize("mamba_cache_mode", ["none", "align"])
def test_warmup_reserves_mamba_speculative_blocks(mamba_cache_mode):
"""Mamba groups hold the running-state block plus the speculative tail.
@@ -227,14 +227,7 @@ def test_warmup_reserves_mamba_speculative_blocks(mamba_cache_mode):
def _hybrid_kv_cache_config(num_blocks: int) -> KVCacheConfig:
"""Attention, circular, and Mamba groups exercise every reservation branch.
"none" and "all" reach the same branch of both `_reserved_block_count` and
`MambaManager`, which tests only for "align". They are still both listed:
the mode is a spec-level input, and having the real manager confirm the
prediction for each is what keeps a future divergence between them from
landing unnoticed.
"""
"""Attention, circular, and Mamba groups exercise every reservation branch."""
return KVCacheConfig(
num_blocks=num_blocks,
kv_cache_tensors=[],
@@ -242,7 +235,6 @@ def _hybrid_kv_cache_config(num_blocks: int) -> KVCacheConfig:
_attention_group(),
_circular_group(),
_mamba_group("none"),
_mamba_group("all"),
_mamba_group("align"),
],
)
+1 -1
View File
@@ -398,7 +398,7 @@ def _make_kv_cache_config(cfg: _TestConfig, layer_names: list[str]) -> KVCacheCo
(cfg.temporal_state_dim,),
),
dtypes=(cfg.dtype, cfg.dtype),
mamba_cache_mode="all",
mamba_cache_mode="align",
)
group = KVCacheGroupSpec(
layer_names=layer_names,