DeepSeek V4: Support context parallelism with fused MoE (non-DeepEP) (#24947)

This commit is contained in:
Yongfei Xu
2026-06-01 14:25:43 -07:00
committed by GitHub
parent 3bce192bd2
commit 5700790c05
17 changed files with 1982 additions and 24 deletions
@@ -81,5 +81,50 @@ class TestDSV4FlashFP4B200Balanced_CP(
kill_process_tree(cls.process.pid)
class TestDSV4FlashFP4B200Balanced_CP_NonDeepEP(
BasicDecodeCorrectnessMixin,
GSM8KMixin,
CustomTestCase,
):
"""Balanced recipe: TP=4, DP=4, EAGLE (1-step spec)."""
gsm8k_accuracy_thres = 0.93
@classmethod
def setUpClass(cls):
cls.model = try_cached_model(MODEL)
cls.base_url = DEFAULT_URL_FOR_TEST
cls.process = popen_launch_server(
cls.model,
cls.base_url,
timeout=SERVER_LAUNCH_TIMEOUT,
other_args=[
"--trust-remote-code",
"--tp",
"4",
"--attn-cp-size",
"4",
"--speculative-algorithm",
"EAGLE",
"--speculative-num-steps",
"1",
"--speculative-eagle-topk",
"1",
"--speculative-num-draft-tokens",
"2",
"--enable-dsa-prefill-context-parallel",
"--dsa-prefill-cp-mode",
"round-robin-split",
"--moe-runner-backend", # for fp4 checkpoint
"flashinfer_mxfp4",
],
)
@classmethod
def tearDownClass(cls):
if hasattr(cls, "process") and cls.process:
kill_process_tree(cls.process.pid)
if __name__ == "__main__":
unittest.main()