[V32/GLM5] Change default setting of V32 nvfp4 on TP4 (#20086)
This commit is contained in:
@@ -1279,7 +1279,9 @@ class ServerArgs:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if self.kv_cache_dtype == "auto":
|
if self.kv_cache_dtype == "auto":
|
||||||
self.kv_cache_dtype = "fp8_e4m3" if major >= 10 else "bfloat16"
|
self.kv_cache_dtype = (
|
||||||
|
"fp8_e4m3" if (major >= 10 and self.dp_size > 1) else "bfloat16"
|
||||||
|
)
|
||||||
logger.warning(
|
logger.warning(
|
||||||
f"Setting KV cache dtype to {self.kv_cache_dtype} for DeepSeek DSA on SM{major} device."
|
f"Setting KV cache dtype to {self.kv_cache_dtype} for DeepSeek DSA on SM{major} device."
|
||||||
)
|
)
|
||||||
@@ -1298,6 +1300,13 @@ class ServerArgs:
|
|||||||
self.nsa_prefill_backend = "tilelang"
|
self.nsa_prefill_backend = "tilelang"
|
||||||
self.nsa_decode_backend = "tilelang"
|
self.nsa_decode_backend = "tilelang"
|
||||||
elif kv_cache_dtype == "fp8_e4m3":
|
elif kv_cache_dtype == "fp8_e4m3":
|
||||||
|
if self.dp_size == 1 and major >= 10:
|
||||||
|
self.nsa_prefill_backend = "trtllm"
|
||||||
|
self.nsa_decode_backend = "trtllm"
|
||||||
|
logger.warning(
|
||||||
|
"Flashmla is not supported on Blackwell device without DP attention. Set NSA prefill/decode backends to trtllm, which runs fast but loses a little accuracy."
|
||||||
|
)
|
||||||
|
else:
|
||||||
# flashmla_auto dispatches to flashmla_sparse/flashmla_kv based on hardware and heuristics
|
# flashmla_auto dispatches to flashmla_sparse/flashmla_kv based on hardware and heuristics
|
||||||
if not user_set_prefill:
|
if not user_set_prefill:
|
||||||
self.nsa_prefill_backend = "flashmla_auto"
|
self.nsa_prefill_backend = "flashmla_auto"
|
||||||
|
|||||||
Reference in New Issue
Block a user