[Feat][Model] Support encoder-side SWA-bounded replay for DeepSeek-V4.1-Flash (#56227)

Signed-off-by: Yifan Qiao <yifanqiao@inferact.ai>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Woosuk Kwon <woosuk@inferact.ai>
This commit is contained in:
Yifan Qiao
2026-09-18 15:01:24 -07:00
committed by GitHub
co-authored by Claude Fable 5.1 Woosuk Kwon
parent 6aab78f477
commit 1dc2d854c1
30 changed files with 1067 additions and 38 deletions
+5
View File
@@ -781,6 +781,7 @@ class EngineArgs:
stream_interval: int = SchedulerConfig.stream_interval
kv_sharing_fast_prefill: bool = CacheConfig.kv_sharing_fast_prefill
swa_bounded_replay: bool = CacheConfig.swa_bounded_replay
optimization_level: OptimizationLevel = VllmConfig.optimization_level
performance_mode: PerformanceMode = VllmConfig.performance_mode
@@ -1310,6 +1311,9 @@ class EngineArgs:
cache_group.add_argument(
"--kv-sharing-fast-prefill", **cache_kwargs["kv_sharing_fast_prefill"]
)
cache_group.add_argument(
"--swa-bounded-replay", **cache_kwargs["swa_bounded_replay"]
)
cache_group.add_argument(
"--mamba-cache-dtype", **cache_kwargs["mamba_cache_dtype"]
)
@@ -2118,6 +2122,7 @@ class EngineArgs:
prefix_cache_retention_interval=self.prefix_cache_retention_interval,
kv_cache_dtype_skip_layers=self.kv_cache_dtype_skip_layers,
kv_sharing_fast_prefill=self.kv_sharing_fast_prefill,
swa_bounded_replay=self.swa_bounded_replay,
mamba_cache_dtype=self.mamba_cache_dtype,
mamba_ssm_cache_dtype=self.mamba_ssm_cache_dtype,
mamba_block_size=self.mamba_block_size,