Introduce moe_dense_tp_size to fix dense layer errors in DeepSeek V3 + 4x8xH100 (#4836)
This commit is contained in:
@@ -181,6 +181,7 @@ class ServerArgs:
|
||||
hicache_ratio: float = 2.0
|
||||
flashinfer_mla_disable_ragged: bool = False
|
||||
warmups: Optional[str] = None
|
||||
moe_dense_tp_size: Optional[int] = None
|
||||
n_share_experts_fusion: int = 0
|
||||
disable_shared_experts_fusion: bool = False
|
||||
disable_chunked_prefix_cache: bool = False
|
||||
@@ -252,6 +253,11 @@ class ServerArgs:
|
||||
|
||||
assert self.chunked_prefill_size % self.page_size == 0
|
||||
|
||||
assert self.moe_dense_tp_size in {
|
||||
1,
|
||||
None,
|
||||
}, f"moe_dense_tp_size only support 1 and None currently"
|
||||
|
||||
if self.attention_backend == "flashmla":
|
||||
logger.warning(
|
||||
"FlashMLA only supports a page_size of 64, change page_size to 64."
|
||||
@@ -1101,6 +1107,12 @@ class ServerArgs:
|
||||
action="store_true",
|
||||
help="Enabling DeepEP MoE implementation for EP MoE.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--moe-dense-tp-size",
|
||||
type=int,
|
||||
default=ServerArgs.moe_dense_tp_size,
|
||||
help="TP size for MoE dense MLP layers. This flag is useful when, with large TP size, there are errors caused by weights in MLP layers having dimension smaller than the min dimension GEMM supports.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--deepep-mode",
|
||||
type=str,
|
||||
|
||||
Reference in New Issue
Block a user