@@ -154,7 +154,7 @@ base:
154154 unified-cache-external-linker-backend : mori
155155 hicache-storage-backend-extra-config : ' {"standalone_startup_timeout_ms":120000}'
156156 enable-cache-report : true
157- # Optimistic prefill (sgl-project/sglang#38978) is wired for the linker only .
157+ # Optimistic prefill requires the external linker .
158158 optimistic-prefill-attempts : 2
159159 decode :
160160 nodes : 1
@@ -197,18 +197,14 @@ base:
197197 TOKENIZERS_PARALLELISM : " false"
198198 TRANSFORMERS_VERBOSITY : error
199199
200- # One variant per point; each point runs in its own allocation. Admission is
201- # 2x CONC on both roles. Decode captures graphs up to 2x CONC, or CONC/4 per
202- # rank under DP attention. DSpark draft length is 6 at c4/c16/c32 (the golden
203- # AL peak) and 3 above; MoRI decode dispatch scales with it (64 x (draft + 1)).
204- override_c4 :
200+ override_c1 :
205201 roles :
206202 prefill :
207203 gpus : 4
208204 env :
209- # Split-K 8 for the HCA (compress ratio 128) decode stream in the
210- # unified_kv kernels, over the image default 4. Only c4 sets it.
205+ # HCA split-K applies only to the bf16 KV path.
211206 SGLANG_MLA_HCA_KV_SPLITS : " 8"
207+ SGLANG_DSV4_UNIFIED_KV_FP8 : " 1"
212208 args :
213209 tp-size : 4
214210 mem-fraction-static : 0.86
@@ -221,6 +217,7 @@ override_c4:
221217 env :
222218 SGLANG_MLA_HCA_KV_SPLITS : " 8"
223219 MORI_MAX_DISPATCH_TOKENS_DECODE : " 448"
220+ SGLANG_DSV4_UNIFIED_KV_FP8 : " 1"
224221 args :
225222 tp-size : 4
226223 mem-fraction-static : 0.86
@@ -241,6 +238,8 @@ override_c16:
241238 roles :
242239 prefill :
243240 gpus : 4
241+ env : &tp_kernel_env
242+ SGLANG_DSV4_UNIFIED_KV_FP8 : " 1"
244243 args :
245244 tp-size : 4
246245 mem-fraction-static : 0.86
@@ -251,6 +250,7 @@ override_c16:
251250 decode :
252251 gpus : 8
253252 env :
253+ << : *tp_kernel_env
254254 MORI_MAX_DISPATCH_TOKENS_DECODE : " 448"
255255 args :
256256 tp-size : 8
@@ -296,6 +296,7 @@ override_c32:
296296 roles :
297297 prefill :
298298 gpus : 4
299+ env : *tp_kernel_env
299300 args :
300301 tp-size : 4
301302 mem-fraction-static : 0.86
@@ -306,6 +307,7 @@ override_c32:
306307 decode :
307308 gpus : 8
308309 env :
310+ << : *tp_kernel_env
309311 MORI_MAX_DISPATCH_TOKENS_DECODE : " 448"
310312 args :
311313 tp-size : 8
@@ -383,6 +385,7 @@ override_c48:
383385 roles :
384386 prefill :
385387 gpus : 4
388+ env : *tp_kernel_env
386389 args :
387390 tp-size : 4
388391 mem-fraction-static : 0.86
@@ -393,6 +396,7 @@ override_c48:
393396 decode :
394397 gpus : 8
395398 env :
399+ << : *tp_kernel_env
396400 MORI_MAX_DISPATCH_TOKENS_DECODE : " 256"
397401 args :
398402 tp-size : 8
@@ -499,16 +503,18 @@ override_c48:
499503 speculative-num-draft-tokens : 4
500504
501505override_c192 :
506+ frontend : &p2c_frontend
507+ args :
508+ decode-policy : power_of_two
509+ worker-startup-check-interval : 1
510+ env : &p2c_router_env
511+ SGLANG_ROUTER_P2C_LOAD_METRIC : least_requests
502512 roles :
503513 prefill :
504514 gpus : 8
505515 env :
506516 GPU_MAX_HW_QUEUES : " 5"
507- # Aiter MegaMoEv2 (sgl-project/sglang#35619). The megamoe a2a backend
508- # alone only selects the hook; without this flag it falls through to
509- # the DeepGEMM path, which has no ROCm kernel. The flag is not
510- # backend-local -- schedule_batch.py also keys the SWA eviction cadence
511- # off it -- so it stays off the decode role entirely.
517+ # Select the ROCm MegaMoE kernel; this also changes SWA eviction cadence.
512518 SGLANG_AMD_USE_FLYDSL_MEGA_MOE : " 1"
513519 # Must cover the per-rank prefill chunk: sglang divides
514520 # chunked-prefill-size by dp-size, i.e. 65536 / 8. Tokens past MTPR
@@ -545,9 +551,6 @@ override_c192:
545551 dp-size : 8
546552 # MegaMoE replaces mori dispatch/combine outright (mori stays only as
547553 # the shmem bootstrap), so none of the mori EP knobs apply here.
548- # Shared-expert fusion stays as base sets it: the image carries
549- # sgl-project/sglang#40943, which enables it on the grouped-topk path
550- # MegaMoE uses.
551554 ep-size : 8
552555 moe-a2a-backend : megamoe
553556 moe-dense-tp-size : 1
@@ -637,16 +640,13 @@ override_c192:
637640 AIPERF_HTTP_X_SMG_ROUTING_KEY_FROM_CORRELATION_ID : ' true'
638641
639642override_c256 :
643+ frontend : *p2c_frontend
640644 roles :
641645 prefill :
642646 gpus : 8
643647 env :
644648 GPU_MAX_HW_QUEUES : " 5"
645- # Aiter MegaMoEv2 (sgl-project/sglang#35619). The megamoe a2a backend
646- # alone only selects the hook; without this flag it falls through to
647- # the DeepGEMM path, which has no ROCm kernel. The flag is not
648- # backend-local -- schedule_batch.py also keys the SWA eviction cadence
649- # off it -- so it stays off the decode role entirely.
649+ # Select the ROCm MegaMoE kernel; this also changes SWA eviction cadence.
650650 SGLANG_AMD_USE_FLYDSL_MEGA_MOE : " 1"
651651 # Must cover the per-rank prefill chunk: sglang divides
652652 # chunked-prefill-size by dp-size, i.e. 65536 / 8. Tokens past MTPR
@@ -683,9 +683,6 @@ override_c256:
683683 dp-size : 8
684684 # MegaMoE replaces mori dispatch/combine outright (mori stays only as
685685 # the shmem bootstrap), so none of the mori EP knobs apply here.
686- # Shared-expert fusion stays as base sets it: the image carries
687- # sgl-project/sglang#40943, which enables it on the grouped-topk path
688- # MegaMoE uses.
689686 ep-size : 8
690687 moe-a2a-backend : megamoe
691688 moe-dense-tp-size : 1
@@ -807,16 +804,15 @@ override_c384:
807804 # disaggregation/mori/conn.py, _process_transfer_chunk). 14400 matches
808805 # the single-node agentic recipes.
809806 request-timeout-secs : 14400
807+ decode-policy : power_of_two
808+ worker-startup-check-interval : 1
809+ env : *p2c_router_env
810810 roles :
811811 prefill :
812812 gpus : 8
813813 env :
814814 GPU_MAX_HW_QUEUES : " 5"
815- # Aiter MegaMoEv2 (sgl-project/sglang#35619). The megamoe a2a backend
816- # alone only selects the hook; without this flag it falls through to
817- # the DeepGEMM path, which has no ROCm kernel. The flag is not
818- # backend-local -- schedule_batch.py also keys the SWA eviction cadence
819- # off it -- so it stays off the decode role entirely.
815+ # Select the ROCm MegaMoE kernel; this also changes SWA eviction cadence.
820816 SGLANG_AMD_USE_FLYDSL_MEGA_MOE : " 1"
821817 # Must cover the per-rank prefill chunk: sglang divides
822818 # chunked-prefill-size by dp-size, i.e. 65536 / 8. Tokens past MTPR
@@ -853,9 +849,6 @@ override_c384:
853849 dp-size : 8
854850 # MegaMoE replaces mori dispatch/combine outright (mori stays only as
855851 # the shmem bootstrap), so none of the mori EP knobs apply here.
856- # Shared-expert fusion stays as base sets it: the image carries
857- # sgl-project/sglang#40943, which enables it on the grouped-topk path
858- # MegaMoE uses.
859852 ep-size : 8
860853 moe-a2a-backend : megamoe
861854 moe-dense-tp-size : 1
@@ -1001,16 +994,15 @@ override_c512:
1001994 # disaggregation/mori/conn.py, _process_transfer_chunk). 14400 matches
1002995 # the single-node agentic recipes.
1003996 request-timeout-secs : 14400
997+ decode-policy : power_of_two
998+ worker-startup-check-interval : 1
999+ env : *p2c_router_env
10041000 roles :
10051001 prefill :
10061002 gpus : 8
10071003 env :
10081004 GPU_MAX_HW_QUEUES : " 5"
1009- # Aiter MegaMoEv2 (sgl-project/sglang#35619). The megamoe a2a backend
1010- # alone only selects the hook; without this flag it falls through to
1011- # the DeepGEMM path, which has no ROCm kernel. The flag is not
1012- # backend-local -- schedule_batch.py also keys the SWA eviction cadence
1013- # off it -- so it stays off the decode role entirely.
1005+ # Select the ROCm MegaMoE kernel; this also changes SWA eviction cadence.
10141006 SGLANG_AMD_USE_FLYDSL_MEGA_MOE : " 1"
10151007 # Must cover the per-rank prefill chunk: sglang divides
10161008 # chunked-prefill-size by dp-size, i.e. 65536 / 8. Tokens past MTPR
@@ -1042,14 +1034,14 @@ override_c512:
10421034 # or the handshake fails, so it is set on prefill and decode alike. The
10431035 # DSpark draft worker stays bf16 (kv_cache_configurator.py excludes it).
10441036 SGLANG_DSV4_UNIFIED_KV_FP8 : " 1"
1037+ SGLANG_AITER_MEGA_RANK_SYNC : " 1"
1038+ SGLANG_AITER_MEGA_EPLB_PREFILL_ONLY : " 1"
1039+ SGLANG_AITER_MEGA_EPLB_FUSED_MAP_RECORD : " 1"
10451040 args :
10461041 tp-size : 8
10471042 dp-size : 8
10481043 # MegaMoE replaces mori dispatch/combine outright (mori stays only as
10491044 # the shmem bootstrap), so none of the mori EP knobs apply here.
1050- # Shared-expert fusion stays as base sets it: the image carries
1051- # sgl-project/sglang#40943, which enables it on the grouped-topk path
1052- # MegaMoE uses.
10531045 ep-size : 8
10541046 moe-a2a-backend : megamoe
10551047 moe-dense-tp-size : 1
@@ -1063,6 +1055,10 @@ override_c512:
10631055 max-running-requests : 1024
10641056 speculative-dspark-block-size : 3
10651057 speculative-num-draft-tokens : 4
1058+ # expert-balancedness-report-mode deadlocks with EPLB_PREFILL_ONLY.
1059+ enable-eplb : true
1060+ eplb-rebalance-num-iterations : 200
1061+ expert-distribution-recorder-mode : stat
10661062 decode :
10671063 gpus : 8
10681064 env :
0 commit comments