Repository navigation
[benchmark][SGL]add atom-mesh bench cases - #874
Conversation
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
|
审查发现 |
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
Signed-off-by: zhuyuhua-v <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR extends the ATOM SGLang benchmark workflow to clearly separate the existing OOB benchmark path from Mesh-style benchmark configs, and adds an optional “mori+sglang” launch path for Mesh runs (with fail-fast validation on the image).
Changes:
- Expanded
.github/workflows/atom-sglang-benchmark.yamlwith new inputs (suite/presets/server mode), schedule grouping by cron string, Mesh matrix defaults, and LLM-Booster publish support. - Added a new InferenceX-style runner script (
atom_sglang_mesh_benchmark.sh) formesh_server_mode=sglang-mori. - Updated SGLang model catalog and dashboard labeling to support the new workload/backend semantics.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
recipes/atom_sglang/DeepSeek-R1.md |
Updates launch recipe with --attention-backend aiter for a documented DeepSeek TP4 command. |
.github/workflows/atom-sglang-benchmark.yaml |
Implements suite/preset selection, cron-based grouping, Mesh/mori runner routing, and optional LLM-Booster publishing. |
.github/scripts/plugin_benchmark_to_dashboard.py |
Uses per-result backend fields (dashboard_backend/benchmark_backend) for dashboard metric labels. |
.github/scripts/atom_sglang_test.sh |
Improves server extra-args parsing via shlex.split to handle quoting safely. |
.github/scripts/atom_sglang_mesh_benchmark.sh |
New mori+sglang Mesh benchmark runner (server launch + bench_serving invocation). |
.github/benchmark/sglang_benchmark_models.json |
Adds Mesh model entries/presets and updates OOB args/groups to match new benchmark semantics. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| local array_name="$2" | ||
| local token | ||
| while IFS= read -r -d '' token; do | ||
| eval "${array_name}+=(\"\${token}\")" | ||
| done < <( |
|
Signed-off-by: zhuyuhua-v <[email protected]>
| IFS=',' read -ra PARAMS <<< "$SET" | ||
| INPUT_LEN="${PARAMS[0]}" | ||
| OUTPUT_LEN="${PARAMS[1]}" | ||
| CONCURRENCY="${PARAMS[2]}" | ||
| RANDOM_RANGE_RATIO="${PARAMS[3]}" |
| --port 8000 \ | ||
| --trust-remote-code \ | ||
| --tensor-parallel-size 4 \ | ||
| --attention-backend aiter \ | ||
| --kv-cache-dtype fp8_e4m3 \ |
| case "${SGLANG_IMAGE_TAG}" in | ||
| lmsysorg/sglang-rocm*|docker.io/lmsysorg/sglang-rocm*) ;; | ||
| *) | ||
| echo "ERROR: mesh_server_mode=sglang-mori requires docker_image to start with lmsysorg/sglang-rocm." |
| "tp_size": 4, | ||
| "dp_size": 4, | ||
| "ep_size": 4, | ||
| "extra_args": "--dp-size 4 --enable-dp-attention --ep-size 4 --max-running-requests 4096", |
| "tp_size": 4, | ||
| "dp_size": 4, | ||
| "ep_size": 4, | ||
| "extra_args": "--dp-size 4 --enable-dp-attention --ep-size 4 --max-running-requests 4096 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --cuda-graph-bs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128", |
| "tp_size": 8, | ||
| "dp_size": 8, | ||
| "ep_size": 8, | ||
| "extra_args": "--dp-size 8 --enable-dp-attention --ep-size 8 --max-running-requests 4096", |
| "tp_size": 8, | ||
| "dp_size": 8, | ||
| "ep_size": 8, | ||
| "extra_args": "--dp-size 8 --enable-dp-attention --ep-size 8 --max-running-requests 4096 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --cuda-graph-bs 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128", |
|
changed benchmark scripts only, align with Hattie, zejun, will merge first to catch tonight's benchmark |
… / c1024 are #874's LLM-Booster #874 (lossless sampling at c512 / c1024) and the c1024 point now belong to gbyu. This branch therefore no longer changes their default: D_LOSSLESS is on at c192 only, as on k3-455-dev. The knob stays. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ark draft window, per-request log, MoRIIO hop timing, tools (#4106) * scheduler: ATOM_SPEC_REQUEST_LOG, one line per finished request with its speculative acceptance Diagnostics for LLM-Booster #878 (DSpark acceptance falls in long-context turns). Each `Sequence` counts the speculative steps it verified and the drafts offered and accepted across them, at the same point and under the same condition as `EngineStats.update_spec`. When the env names a path prefix, `_mark_finished` appends one JSON line per request to `<prefix>.dp<rank>.<pid>.jsonl`: prompt / cached / output tokens, k, steps, drafted, accepted and the finish reason. That relates acceptance to context length offline. Off by default; written once per request, never per token; a failed write warns and turns it off for that engine. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — lossless sampling on D at every point (to validate at c512 / c1024), megakernel and spec-log knobs - D_LOSSLESS now defaults to 1 at every point. c192 was measured (R9c); c512 and c1024 are validated on this branch (LLM-Booster #874). - D_MEGAKERNEL=1 sets AITER_MEGAKERNEL=1 on D: aiter's decode megakernel (ROCm/aiter#7345, LLM-Booster #865). It is off by default, to be A/B'd at c192, also with the shared expert off its side stream (ATOM_DUAL_STREAM_MOE_TOKEN_THRESHOLD=0), since the megakernel needs no kernel running beside it. - D_SPEC_LOG sets ATOM_SPEC_REQUEST_LOG on D: per-request acceptance against context length (LLM-Booster #878). Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — keep lossless sampling's default at c192 only; c512 / c1024 are #874's LLM-Booster #874 (lossless sampling at c512 / c1024) and the c1024 point now belong to gbyu. This branch therefore no longer changes their default: D_LOSSLESS is on at c192 only, as on k3-455-dev. The knob stays. Co-Authored-By: Claude Opus 5.5 <[email protected]> * diagnostics: a P/D request's wait for its KV, hop by hop (LLM-Booster #883); ATOM_REQUEST_LOG At c192 a request waits ~0.5 s on D before its first decode. D's own metrics put ~96% of it in pd_kv_transfer_seconds: the MoRIIO write-mode hand-off after P has finished. This change logs where that hand-off goes. - ATOM_SPEC_REQUEST_LOG becomes ATOM_REQUEST_LOG, one JSON line per finished request. Besides the speculative counters it records ttft_ms and e2e_ms; on a P/D consumer it also records park_ms (began waiting for the remote KV) and kv_ms (the scheduler found it arrived). It is written once per request and only when the env names a path prefix. - Under ATOM_MORIIO_TRANSFER_STATS: - On the producer, each push's stats line gains queue_ms (from the write request arriving to the write service taking it) and its PP stage. - On the consumer, each receive logs gate_ms (until the forwards queued before it finish and the write is asked for), report_ms (until the last producer stage reports) and pickup_ms (until an engine step takes it). Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — request_log_report.py (#878) and pd_timeline_report.py (#883) Two stdlib-only readers for the new diagnostics: - request_log_report.py: DSpark acceptance and tokens per forward by context-length bin, from ATOM_REQUEST_LOG. - pd_timeline_report.py: where a P/D request's wait for its KV goes, from the MoRIIO transfer stats and write timeline lines (ATOM_MORIIO_TRANSFER_STATS=1) and the request log. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — replay_turns.py, to tell length from content in DSpark's acceptance drop (#878) DSpark acceptance falls as c192's agentic trajectories deepen (0.34 to 0.27). The draft's own card reports only a small drop on ~95k-token documents (AA-LCR 3.23 against a 3.73 mean, at temperature 1.0), and it trained on single-turn and chat prompts. So the deep turns' content (tool output, ~150 turns deep) may matter more than their length. The tool replays three categories of recorded turns through the router: - early turns; - deep turns; - the deep turns cut to a short history: the system prompt, the first user message, then the newest whole exchanges, never starting with a tool result. It then joins D's ATOM_REQUEST_LOG to report the acceptance per category. It is stdlib-only. On R5b's events the selection takes 8 s and gives: - early: median 56 KB, turn index 21; - deep: median 435 KB, turn index 156; - deep_cut: median 117 KB, turn index 157. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — replay_turns.py records what each turn generated (prose or a tool call) and splits acceptance by it Co-Authored-By: Claude Opus 5.5 <[email protected]> * DSpark: ATOM_DSPARK_DRAFT_WINDOW, the newest W context tokens a paged draft block attends (LLM-Booster #878) Kimi-K3's DSpark acceptance collapses past ~120K tokens of context (E17 c192, 12-02: 0.43 at 96-104K, 0.19 at 128-136K, 0.05 past 176K), while the draft's card verifies it only up to AA-LCR's 115K. With rope, q.k depends only on the distance, so attending the newest W tokens keeps every distance the draft sees in that range. Off by default. A windowed variant of the KV index generator (kv_indices_generate_window_triton) writes each row's tokens from its first one; the shared generator is unchanged. CSR MLA decode only, no DCP. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — c192 defaults to P_TRANSFER_SLOTS=0 (#883) and a 96K DSpark draft window (#878) 12-02, E17 05-08, c192, 1x613 (R11c) against 12-01's R9c: interactivity 64.7 -> 68.2, 438 -> 480 tok/s/GPU, TTFT p50 1.14 -> 0.86 s. D's KV wait 0.43 -> 0.16 s: P staged each finished prefill's KDA state into its transfer slot at the next step of every PP stage. The draft's acceptance at 128-144K 0.185 -> 0.410. c512 / c1024 keep 128 transfer slots and no window. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — c192 defaults to the MoRIIO write thread on P; record the 12-02 code (aiter heads-mla build) Every 12-02 c192 run (R11b / R11c / R11d) had ATOM_MORIIO_WRITE_THREAD=1 on P; with the transfer slots off it sends each push as soon as it is asked for, not at each PP stage's next step, so the recipe needs it to reproduce the measured hand-off. The note now says which aiter build the 12-02 numbers used and marks the 1x613 numbers as early-window only. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — 12-02 c192 full-window result with both fixes (R11d: 58.5 interactivity, 530 tok/s/GPU) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ark draft window, per-request log, MoRIIO hop timing, tools (#4106) * scheduler: ATOM_SPEC_REQUEST_LOG, one line per finished request with its speculative acceptance Diagnostics for LLM-Booster #878 (DSpark acceptance falls in long-context turns). Each `Sequence` counts the speculative steps it verified and the drafts offered and accepted across them, at the same point and under the same condition as `EngineStats.update_spec`. When the env names a path prefix, `_mark_finished` appends one JSON line per request to `<prefix>.dp<rank>.<pid>.jsonl`: prompt / cached / output tokens, k, steps, drafted, accepted and the finish reason. That relates acceptance to context length offline. Off by default; written once per request, never per token; a failed write warns and turns it off for that engine. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — lossless sampling on D at every point (to validate at c512 / c1024), megakernel and spec-log knobs - D_LOSSLESS now defaults to 1 at every point. c192 was measured (R9c); c512 and c1024 are validated on this branch (LLM-Booster #874). - D_MEGAKERNEL=1 sets AITER_MEGAKERNEL=1 on D: aiter's decode megakernel (ROCm/aiter#7345, LLM-Booster #865). It is off by default, to be A/B'd at c192, also with the shared expert off its side stream (ATOM_DUAL_STREAM_MOE_TOKEN_THRESHOLD=0), since the megakernel needs no kernel running beside it. - D_SPEC_LOG sets ATOM_SPEC_REQUEST_LOG on D: per-request acceptance against context length (LLM-Booster #878). Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — keep lossless sampling's default at c192 only; c512 / c1024 are #874's LLM-Booster #874 (lossless sampling at c512 / c1024) and the c1024 point now belong to gbyu. This branch therefore no longer changes their default: D_LOSSLESS is on at c192 only, as on k3-455-dev. The knob stays. Co-Authored-By: Claude Opus 5.5 <[email protected]> * diagnostics: a P/D request's wait for its KV, hop by hop (LLM-Booster #883); ATOM_REQUEST_LOG At c192 a request waits ~0.5 s on D before its first decode. D's own metrics put ~96% of it in pd_kv_transfer_seconds: the MoRIIO write-mode hand-off after P has finished. This change logs where that hand-off goes. - ATOM_SPEC_REQUEST_LOG becomes ATOM_REQUEST_LOG, one JSON line per finished request. Besides the speculative counters it records ttft_ms and e2e_ms; on a P/D consumer it also records park_ms (began waiting for the remote KV) and kv_ms (the scheduler found it arrived). It is written once per request and only when the env names a path prefix. - Under ATOM_MORIIO_TRANSFER_STATS: - On the producer, each push's stats line gains queue_ms (from the write request arriving to the write service taking it) and its PP stage. - On the consumer, each receive logs gate_ms (until the forwards queued before it finish and the write is asked for), report_ms (until the last producer stage reports) and pickup_ms (until an engine step takes it). Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — request_log_report.py (#878) and pd_timeline_report.py (#883) Two stdlib-only readers for the new diagnostics: - request_log_report.py: DSpark acceptance and tokens per forward by context-length bin, from ATOM_REQUEST_LOG. - pd_timeline_report.py: where a P/D request's wait for its KV goes, from the MoRIIO transfer stats and write timeline lines (ATOM_MORIIO_TRANSFER_STATS=1) and the request log. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — replay_turns.py, to tell length from content in DSpark's acceptance drop (#878) DSpark acceptance falls as c192's agentic trajectories deepen (0.34 to 0.27). The draft's own card reports only a small drop on ~95k-token documents (AA-LCR 3.23 against a 3.73 mean, at temperature 1.0), and it trained on single-turn and chat prompts. So the deep turns' content (tool output, ~150 turns deep) may matter more than their length. The tool replays three categories of recorded turns through the router: - early turns; - deep turns; - the deep turns cut to a short history: the system prompt, the first user message, then the newest whole exchanges, never starting with a tool result. It then joins D's ATOM_REQUEST_LOG to report the acceptance per category. It is stdlib-only. On R5b's events the selection takes 8 s and gives: - early: median 56 KB, turn index 21; - deep: median 435 KB, turn index 156; - deep_cut: median 117 KB, turn index 157. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — replay_turns.py records what each turn generated (prose or a tool call) and splits acceptance by it Co-Authored-By: Claude Opus 5.5 <[email protected]> * DSpark: ATOM_DSPARK_DRAFT_WINDOW, the newest W context tokens a paged draft block attends (LLM-Booster #878) Kimi-K3's DSpark acceptance collapses past ~120K tokens of context (E17 c192, 12-02: 0.43 at 96-104K, 0.19 at 128-136K, 0.05 past 176K), while the draft's card verifies it only up to AA-LCR's 115K. With rope, q.k depends only on the distance, so attending the newest W tokens keeps every distance the draft sees in that range. Off by default. A windowed variant of the KV index generator (kv_indices_generate_window_triton) writes each row's tokens from its first one; the shared generator is unchanged. CSR MLA decode only, no DCP. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — c192 defaults to P_TRANSFER_SLOTS=0 (#883) and a 96K DSpark draft window (#878) 12-02, E17 05-08, c192, 1x613 (R11c) against 12-01's R9c: interactivity 64.7 -> 68.2, 438 -> 480 tok/s/GPU, TTFT p50 1.14 -> 0.86 s. D's KV wait 0.43 -> 0.16 s: P staged each finished prefill's KDA state into its transfer slot at the next step of every PP stage. The draft's acceptance at 128-144K 0.185 -> 0.410. c512 / c1024 keep 128 transfer slots and no window. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — c192 defaults to the MoRIIO write thread on P; record the 12-02 code (aiter heads-mla build) Every 12-02 c192 run (R11b / R11c / R11d) had ATOM_MORIIO_WRITE_THREAD=1 on P; with the transfer slots off it sends each push as soon as it is asked for, not at each PP stage's next step, so the recipe needs it to reproduce the measured hand-off. The note now says which aiter build the 12-02 numbers used and marks the 1x613 numbers as early-window only. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 — 12-02 c192 full-window result with both fixes (R11d: 58.5 interactivity, 530 tok/s/GPU) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 04c31e3)
Summary
本 PR 扩展
ATOM SGLang Benchmarkworkflow,将 SGLang benchmark 的几种语义拆清楚:SGLang-OOB:现有 ATOM SGLang benchmark 模式,测试配置与 vLLM/OOB benchmark 对齐。SGLang-Mesh:ATOM SGLang 自身的 Mesh benchmark 模式,server 启动方式仍然和 OOB 一样,但 benchmark config 使用 Mesh 配置。SGLang-Mori:额外能力,用于跑 mori+sglang Docker image。它使用和SGLang-Mesh一样的 benchmark config,但 server 启动命令不同,来自 InferenceX SGLang disagg benchmark 逻辑。mori+sglang image 预期以前缀
lmsysorg/sglang-rocm或docker.io/lmsysorg/sglang-rocm开头。参考 InferenceX run:
Terminology
SGLang-OOB
SGLang-OOB是已有的 ATOM SGLang benchmark 路径。它使用:
rocm/atom-dev:*random_range_ratio=0.8SGLang-Mesh
SGLang-Mesh仍然是 ATOM SGLang benchmark 路径。它使用:
rocm/atom-dev:*SGLang-Mori相同的 benchmark config 集合random_range_ratio=1也就是说,
SGLang-Mesh改的是 benchmark matrix,不改 server 启动命令。SGLang-Mori
SGLang-Mori是 SGLang benchmark workflow 的额外能力,用于运行 mori+sglang Docker image。它使用:
SGLang-Mesh相同的 benchmark configs如果用户选择
mesh_server_mode=sglang-mori,但没有提供lmsysorg/sglang-rocm*或docker.io/lmsysorg/sglang-rocm*镜像,workflow 会 fail fast,避免误用rocm/atom-dev镜像跑 mori 命令。Workflow Inputs
手动触发时新增或使用以下输入:
benchmark_suiteSGLang-OOB或SGLang-Mesh。oob_model_presetmesh_config_presetmesh_server_modesglang-atom或sglang-mori。docker_imagesglang-mori模式下需要提供。publish_to_dashboardupload_to_custom_dashboardparam_listsmesh_server_mode默认值是:因此
SGLang-Mesh默认使用 ATOM SGLang server 启动方式。只有用户显式选择sglang-mori时,才会走 mori+sglang 启动命令。Nightly Schedule
schedule 现在按 cron 字符串判断 group,而不是按 job 实际执行时的日期判断。这样即使 GitHub Actions 排队延迟到第二天,也不会选错 group。
0 15 * * 1,3SGLang-OOBDeepSeek group A0 15 * * 2,4SGLang-OOBgroup B,包含 DeepSeek MTP + Qwen0 15 * * 5SGLang-OOBall0 15 * * 6SGLang-Meshallschedule 下的
SGLang-Mesh也使用默认的mesh_server_mode=sglang-atom,不会自动走 mori 命令。Benchmark Configs
SGLang-OOB
SGLang-OOB保持已有 OOB 参数:SGLang-Mesh / SGLang-Mori
SGLang-Mesh和SGLang-Mori共用同一组 benchmark configs:Mesh 全量配置共 62 个 cases:
Mesh preset:
ds-fp4-allds-fp4-non-mtpds-fp4-mtpds-fp4-tp8ds-fp4-tp8-mtpds-fp4-tp4ds-fp4-tp4-mtpds-fp4-dpa4-ep4ds-fp4-dpa4-ep4-mtpds-fp4-dpa8-ep8ds-fp4-dpa8-ep8-mtpServer 参数
通用环境变量传递
workflow 会把每个 model config 中的
env_vars写入容器内的 env file,并在启动 server 前加载。atom_sglang_test.sh还会为 ATOM SGLang server 设置以下默认环境变量:OOB Server 参数
deepseek-r1-fp8-tp8AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 8deepseek-r1-fp8-tp4AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 4deepseek-r1-fp4-tp8AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 8deepseek-r1-fp4-tp4AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 4deepseek-r1-fp4-tp4-dp4-ep4SGLANG_DEFAULT_SERVER_ARGS=AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1MORI_SHMEM_MODE=ISOLATIONSGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.modelsSGLANG_ENABLE_TORCH_COMPILE=128SGLANG_MORI_DISPATCH_DTYPE=bf16SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384--trust-remote-code --tensor-parallel-size 4 --data-parallel-size 4 --expert-parallel-size 4 --enable-dp-attention --kv-cache-dtype fp8_e4m3 --attention-backend aiter --mem-fraction-static 0.8 --decode-log-interval 1000 --chunked-prefill-size 65536 --max-running-requests 24 --disable-radix-cachedeepseek-r1-fp4-tp8-ep8AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 8 --expert-parallel-size 8deepseek-r1-fp4-tp8-mtp3AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 8 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --max-running-requests 256 --cuda-graph-bs 1..128,160,192,224,256deepseek-r1-fp4-tp8-mtp1AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--trust-remote-code --tensor-parallel-size 8 --speculative-algorithm NEXTN --speculative-num-steps 1 --speculative-eagle-topk 1 --speculative-num-draft-tokens 2 --max-running-requests 256 --cuda-graph-bs 1..128,160,192,224,256qwen3-5-397b-a17b-fp8-tp4SGLANG_DEFAULT_SERVER_ARGS=ATOM_ENABLE_QK_NORM_ROPE_CACHE_QUANT_FUSION=0--tensor-parallel-size 4 --mem-fraction-static 0.9 --reasoning-parser qwen3 --disable-radix-cacheqwen3-5-397b-a17b-fp8-tp8SGLANG_DEFAULT_SERVER_ARGS=ATOM_ENABLE_QK_NORM_ROPE_CACHE_QUANT_FUSION=0--tensor-parallel-size 8 --mem-fraction-static 0.9 --reasoning-parser qwen3 --disable-radix-cacheMesh Server 参数
SGLang-Mesh默认走sglang-atomserver mode,因此启动脚本仍然是:如果用户选择
mesh_server_mode=sglang-mori,则启动脚本变为:Mesh configs 的 server 参数如下:
deepseek-r1-fp4-mesh-tp8AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--tensor-parallel-size 8deepseek-r1-fp4-mesh-tp8-mtpAITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--tensor-parallel-size 8 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --max-running-requests 256 --cuda-graph-bs 1..128,160,192,224,256deepseek-r1-fp4-mesh-tp4AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--tensor-parallel-size 4deepseek-r1-fp4-mesh-tp4-mtpAITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models--tensor-parallel-size 4 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --max-running-requests 256 --cuda-graph-bs 1..128,160,192,224,256deepseek-r1-fp4-mesh-dpa4-ep4SGLANG_DEFAULT_SERVER_ARGS=AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1MORI_SHMEM_MODE=ISOLATIONSGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.modelsSGLANG_ENABLE_TORCH_COMPILE=128SGLANG_MORI_DISPATCH_DTYPE=bf16SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384--tensor-parallel-size 4 --dp-size 4 --enable-dp-attention --ep-size 4 --max-running-requests 4096deepseek-r1-fp4-mesh-dpa4-ep4-mtpSGLANG_DEFAULT_SERVER_ARGS=AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1MORI_SHMEM_MODE=ISOLATIONSGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.modelsSGLANG_ENABLE_TORCH_COMPILE=128SGLANG_MORI_DISPATCH_DTYPE=bf16SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384--tensor-parallel-size 4 --dp-size 4 --enable-dp-attention --ep-size 4 --max-running-requests 4096 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --cuda-graph-bs 1..128deepseek-r1-fp4-mesh-dpa8-ep8SGLANG_DEFAULT_SERVER_ARGS=AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1MORI_SHMEM_MODE=ISOLATIONSGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.modelsSGLANG_ENABLE_TORCH_COMPILE=128SGLANG_MORI_DISPATCH_DTYPE=bf16SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384--tensor-parallel-size 8 --dp-size 8 --enable-dp-attention --ep-size 8 --max-running-requests 4096deepseek-r1-fp4-mesh-dpa8-ep8-mtpSGLANG_DEFAULT_SERVER_ARGS=AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1MORI_SHMEM_MODE=ISOLATIONSGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.modelsSGLANG_ENABLE_TORCH_COMPILE=128SGLANG_MORI_DISPATCH_DTYPE=bf16SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384--tensor-parallel-size 8 --dp-size 8 --enable-dp-attention --ep-size 8 --max-running-requests 4096 --speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 --cuda-graph-bs 1..128SGLang-Mori Server 命令
当用户选择
mesh_server_mode=sglang-mori时,workflow 会执行:该脚本会启动 mori+sglang image 中的 SGLang server。基础 server 命令如下:
其中:
MODEL来自当前 model config 的模型路径。TP来自当前 Mesh config 的tp_size。SERVER_EXTRA_ARGS来自当前 Mesh config 的extra_args。PREFILL_SIZE默认是196608。SGLang-Mori模式下的环境变量有两个来源:--env-file注入当前 Mesh config 的env_vars。atom_sglang_mesh_benchmark.sh在容器内启动 server 前额外 export 一组 mori+sglang 默认变量。当前 Mesh config 通过
env_vars注入的环境变量如下:AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1SGLANG_DEFAULT_SERVER_ARGS=AITER_QUICK_REDUCE_QUANTIZATION=INT4SGLANG_AITER_FP8_PREFILL_ATTN=0SGLANG_USE_AITER=1ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1MORI_SHMEM_MODE=ISOLATIONSGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.modelsSGLANG_ENABLE_TORCH_COMPILE=128SGLANG_MORI_DISPATCH_DTYPE=bf16SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384atom_sglang_mesh_benchmark.sh还会额外设置以下环境变量:当
SPEC_MODE=mtp时,还会设置:当前脚本里保留了 InferenceX 里的 prefill size 调整逻辑:
MTP case 会额外开启 speculative decode。若 config 没有显式提供 speculative 参数,脚本会补默认值:
若 config 没有显式提供
--max-running-requests,脚本会补:若 config 没有显式提供
--cuda-graph-bs,脚本会补:server ready 后,
sglang-mori模式会用benchmark_serving.py进行压测:注意:
sglang-mori模式使用--backend=vllm是为了对齐 InferenceX 的 SGLang benchmark command 形态;它并不表示 server 是 vLLM。Benchmark 执行流程
每个 benchmark job 的执行流程如下:
bench_serving。SGLang-OOB:总是走atom_sglang_test.shSGLang-Mesh + mesh_server_mode=sglang-atom:走atom_sglang_test.shSGLang-Mesh + mesh_server_mode=sglang-mori:走atom_sglang_mesh_benchmark.shbenchmark_serving.py。Dashboard 行为
SGLang-OOB可以在publish_to_dashboard=true时发布到 ATOM benchmark dashboard。SGLang-Mesh只发布到 LLM-Booster:publish_to_dashboard会被强制设为falseupload_to_custom_dashboard控制是否上传 LLM-BoosterLLM-Booster 输出路径:
summary job 会 rebuild LLM-Booster index,并在有成功结果且配置了
LLM_BOOSTER_DEPLOY_KEY时 push 到ROCm/LLM-Booster。Notes
是否运行 mori 命令现在是显式选择,不再由 benchmark case 隐式决定。
具体来说,
SGLang-Mesh只表示“使用 Mesh benchmark config”,不等价于“使用 mori+sglang server 启动方式”。默认情况下,包括 nightly schedule 在内,SGLang-Mesh仍然使用mesh_server_mode=sglang-atom,也就是用rocm/atom-dev/ ATOM SGLang image 和atom_sglang_test.sh启动 server。只有用户手动选择
mesh_server_mode=sglang-mori时,workflow 才会走atom_sglang_mesh_benchmark.sh。这个模式要求用户提供lmsysorg/sglang-rocm*或docker.io/lmsysorg/sglang-rocm*镜像。如果用户没有提供这个镜像,workflow 会直接 fail fast。这样可以避免一种错误场景:nightly 的
SGLang-Meshrun 默认使用rocm/atom-dev镜像,但却误用了只适用于 mori+sglang image 的启动命令,导致 server 启动失败或 benchmark 全部失败。