[server_args] Reland FA4 page_size auto-force for combined --attention-backend fa4 (#28976)

This commit is contained in:
Liangsheng Yin
2026-06-23 14:21:59 -07:00
committed by GitHub
parent 93015a9e6b
commit 6c5f466023
2 changed files with 51 additions and 1 deletions
+9 -1
View File
@@ -4667,9 +4667,17 @@ class ServerArgs:
self.attention_backend = "triton"
if (
self.prefill_attention_backend == "fa4"
(
self.attention_backend == "fa4"
or self.decode_attention_backend == "fa4"
or self.prefill_attention_backend == "fa4"
)
and not self.use_mla_backend()
and is_sm100_supported()
# EAGLE topk>1 spec runs the two-pass page-tree cascade, which the FA4
# CUTLASS kernel aborts on at page_size>1. That path only works at
# page_size==1, so skip the 128 auto-force for it and keep the default.
and (self.speculative_eagle_topk or 0) <= 1
):
logger.warning(
f"FA4 backend only supports page size 128 for non-MLA model architectures, changing page_size from {self.page_size} to 128."