[V0 deprecation] Deprecate use_v1 parameter (#28112)

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-11-12 14:03:52 +00:00
committed by GitHub
parent a9d18b5107
commit 10138c92a5
8 changed files with 31 additions and 35 deletions
-3
View File
@@ -131,7 +131,6 @@ class CpuPlatform(Platform):
dtype: torch.dtype,
kv_cache_dtype: str | None,
block_size: int,
use_v1: bool,
use_mla: bool,
has_sink: bool,
use_sparse: bool,
@@ -144,8 +143,6 @@ class CpuPlatform(Platform):
raise NotImplementedError("MLA is not supported on CPU.")
if use_sparse:
raise NotImplementedError("Sparse Attention is not supported on CPU.")
if not use_v1:
raise ValueError("CPU backend only supports V1.")
return AttentionBackendEnum.CPU_ATTN.get_path()
@classmethod