[DeepSeekV3.2] Enable pure TP & Partial DP Attention (#13646)
This commit is contained in:
@@ -963,7 +963,12 @@ class ServerArgs:
|
||||
f"Enable Context Parallel opt for deeeseekv3.2-DSA, Setting dp_size == {self.dp_size} and moe_dense_tp_size == {self.moe_dense_tp_size}, ep_size == {self.ep_size}, tp_size == {self.tp_size}, kv_cache_dtype == {self.kv_cache_dtype}, moe_a2a_backend {self.moe_a2a_backend} "
|
||||
)
|
||||
else:
|
||||
self.dp_size = self.tp_size
|
||||
# Pure TP and partial DP Attention mode is active for NSA, logging a warning
|
||||
if self.dp_size < self.tp_size:
|
||||
logger.warning(
|
||||
f"NSA with TP mode is active, dp_size={self.dp_size}, tp_size={self.tp_size}, "
|
||||
f"attn_tp_size={self.tp_size}, attention weights will be sharded across {self.tp_size} ranks."
|
||||
)
|
||||
|
||||
self.page_size = 64
|
||||
logger.warning("Setting page size to 64 for DeepSeek NSA.")
|
||||
|
||||
Reference in New Issue
Block a user