Skip to content

[benchmark][SGL]add atom-mesh bench cases - #874

Merged
zhuyuhua-v merged 15 commits into
mainfrom
yuhua/sglang-bench-mesh
May 25, 2026
Merged

zhuyuhua-v merged 15 commits into
mainfrom
yuhua/sglang-bench-mesh

Conversation

@zhuyuhua-v

@zhuyuhua-v zhuyuhua-v commented May 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

本 PR 扩展 ATOM SGLang Benchmark workflow,将 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:

https://github.com/SemiAnalysisAI/InferenceX/actions/runs/25471873049/attempts/17

Terminology

SGLang-OOB

SGLang-OOB 是已有的 ATOM SGLang benchmark 路径。

它使用:

  • ATOM SGLang Docker image,通常是 rocm/atom-dev:*
  • 现有 server 启动脚本:
.github/scripts/atom_sglang_test.sh launch
  • OOB benchmark configs
  • random_range_ratio=0.8
  • 覆盖模型包括:
    • DeepSeek FP8
    • DeepSeek FP4
    • DeepSeek FP4 MTP
    • Qwen FP8

SGLang-Mesh

SGLang-Mesh 仍然是 ATOM SGLang benchmark 路径。

它使用:

  • ATOM SGLang Docker image,通常是 rocm/atom-dev:*
  • 和 OOB 相同的 server 启动脚本:
.github/scripts/atom_sglang_test.sh launch
  • Mesh-style benchmark configs
  • 和 SGLang-Mori 相同的 benchmark config 集合
  • random_range_ratio=1

也就是说,SGLang-Mesh 改的是 benchmark matrix,不改 server 启动命令。

SGLang-Mori

SGLang-Mori 是 SGLang benchmark workflow 的额外能力,用于运行 mori+sglang Docker image。

它使用:

  • mori+sglang Docker image
  • 和 SGLang-Mesh 相同的 benchmark configs
  • 专用 InferenceX-style server 启动脚本:
.github/scripts/atom_sglang_mesh_benchmark.sh

如果用户选择 mesh_server_mode=sglang-mori,但没有提供 lmsysorg/sglang-rocm* 或 docker.io/lmsysorg/sglang-rocm* 镜像,workflow 会 fail fast,避免误用 rocm/atom-dev 镜像跑 mori 命令。

Workflow Inputs

手动触发时新增或使用以下输入:

Input Meaning
benchmark_suite 选择 SGLang-OOB 或 SGLang-Mesh。
oob_model_preset 选择 OOB 模型或模型组,Mesh 模式下忽略。
mesh_config_preset 选择 Mesh 配置或配置组,OOB 模式下忽略。
mesh_server_mode 选择 Mesh server 启动方式:sglang-atom 或 sglang-mori。
docker_image 可选 Docker image override。sglang-mori 模式下需要提供。
publish_to_dashboard 控制 OOB 是否发布到 ATOM dashboard。Mesh 不发布到 ATOM dashboard。
upload_to_custom_dashboard 控制是否上传到 LLM-Booster。
param_lists 可选,自定义 benchmark matrix。

mesh_server_mode 默认值是:

sglang-atom

因此 SGLang-Mesh 默认使用 ATOM SGLang server 启动方式。只有用户显式选择 sglang-mori 时,才会走 mori+sglang 启动命令。

Nightly Schedule

schedule 现在按 cron 字符串判断 group,而不是按 job 实际执行时的日期判断。这样即使 GitHub Actions 排队延迟到第二天,也不会选错 group。

Cron Time Mode Cases
0 15 * * 1,3 周一/周三北京时间 23:00 SGLang-OOB DeepSeek group A 60 cases
0 15 * * 2,4 周二/周四北京时间 23:00 SGLang-OOB group B,包含 DeepSeek MTP + Qwen 40 cases
0 15 * * 5 周五北京时间 23:00 SGLang-OOB all 100 cases
0 15 * * 6 周六北京时间 23:00 SGLang-Mesh all 62 cases

schedule 下的 SGLang-Mesh 也使用默认的 mesh_server_mode=sglang-atom,不会自动走 mori 命令。

Benchmark Configs

SGLang-OOB

SGLang-OOB 保持已有 OOB 参数:

random_range_ratio = 0.8
ISL OSL Concurrency
1024 1024 4, 8, 16, 32, 64
8192 1024 4, 8, 16, 32, 64

SGLang-Mesh / SGLang-Mori

SGLang-Mesh 和 SGLang-Mori 共用同一组 benchmark configs:

random_range_ratio = 1

Mesh 全量配置共 62 个 cases:

Config ISL OSL Concurrency Cases
TP8 8192 1 2, 4, 8, 16, 32, 64, 128, 256 8
TP8 1 1024 2, 4, 8, 16, 32, 64, 128, 256 8
TP8 MTP 8192 1 2, 4, 8, 16, 32, 64, 128, 256 8
TP8 MTP 1 1024 2, 4, 8, 16, 32, 64, 128, 256 8
TP4 8192 1 64, 128, 256 3
TP4 1 1024 64, 128, 256 3
TP4 MTP 8192 1 64, 128, 256 3
TP4 MTP 1 1024 64, 128, 256 3
DPA4 + EP4 8192 1 256, 512, 1024 3
DPA4 + EP4 MTP 8192 1 256, 512, 1024 3
DPA8 + EP8 8192 1 512, 1024, 2048 3
DPA8 + EP8 1 1024 1024, 2048, 4096 3
DPA8 + EP8 MTP 8192 1 512, 1024, 2048 3
DPA8 + EP8 MTP 1 1024 1024, 2048, 4096 3

Mesh preset:

Preset Includes Cases
ds-fp4-all 所有 Mesh configs 62
ds-fp4-non-mtp TP8, TP4, DPA4+EP4, DPA8+EP8 31
ds-fp4-mtp TP8 MTP, TP4 MTP, DPA4+EP4 MTP, DPA8+EP8 MTP 31
ds-fp4-tp8 TP8 only 16
ds-fp4-tp8-mtp TP8 MTP only 16
ds-fp4-tp4 TP4 only 6
ds-fp4-tp4-mtp TP4 MTP only 6
ds-fp4-dpa4-ep4 DPA4+EP4 only 3
ds-fp4-dpa4-ep4-mtp DPA4+EP4 MTP only 3
ds-fp4-dpa8-ep8 DPA8+EP8 only 6
ds-fp4-dpa8-ep8-mtp DPA8+EP8 MTP only 6

Server 参数

通用环境变量传递

workflow 会把每个 model config 中的 env_vars 写入容器内的 env file,并在启动 server 前加载。

atom_sglang_test.sh 还会为 ATOM SGLang server 设置以下默认环境变量:

export AITER_QUICK_REDUCE_QUANTIZATION="${AITER_QUICK_REDUCE_QUANTIZATION:-INT4}"
export SGLANG_AITER_FP8_PREFILL_ATTN="${SGLANG_AITER_FP8_PREFILL_ATTN:-0}"
export SGLANG_USE_AITER="${SGLANG_USE_AITER:-1}"
export ATOM_ENABLE_DS_QKNORM_QUANT_FUSION="${ATOM_ENABLE_DS_QKNORM_QUANT_FUSION:-1}"
export SGLANG_EXTERNAL_MODEL_PACKAGE="${SGLANG_EXTERNAL_MODEL_PACKAGE:-atom.plugin.sglang.models}"
export TORCHINDUCTOR_COMPILE_THREADS="${TORCHINDUCTOR_COMPILE_THREADS:-128}"

OOB Server 参数

Prefix Server Args
deepseek-r1-fp8-tp8 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--trust-remote-code --tensor-parallel-size 8
deepseek-r1-fp8-tp4 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--trust-remote-code --tensor-parallel-size 4
deepseek-r1-fp4-tp8 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--trust-remote-code --tensor-parallel-size 8
deepseek-r1-fp4-tp4 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--trust-remote-code --tensor-parallel-size 4
deepseek-r1-fp4-tp4-dp4-ep4 SGLANG_DEFAULT_SERVER_ARGS=
AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
MORI_SHMEM_MODE=ISOLATION
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models
SGLANG_ENABLE_TORCH_COMPILE=128
SGLANG_MORI_DISPATCH_DTYPE=bf16
SGLANG_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-cache
deepseek-r1-fp4-tp8-ep8 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--trust-remote-code --tensor-parallel-size 8 --expert-parallel-size 8
deepseek-r1-fp4-tp8-mtp3 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_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,256
deepseek-r1-fp4-tp8-mtp1 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_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,256
qwen3-5-397b-a17b-fp8-tp4 SGLANG_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-cache
qwen3-5-397b-a17b-fp8-tp8 SGLANG_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-cache

Mesh Server 参数

SGLang-Mesh 默认走 sglang-atom server mode,因此启动脚本仍然是:

.github/scripts/atom_sglang_test.sh launch

如果用户选择 mesh_server_mode=sglang-mori,则启动脚本变为:

.github/scripts/atom_sglang_mesh_benchmark.sh

Mesh configs 的 server 参数如下:

Prefix Server Args
deepseek-r1-fp4-mesh-tp8 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--tensor-parallel-size 8
deepseek-r1-fp4-mesh-tp8-mtp AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_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,256
deepseek-r1-fp4-mesh-tp4 AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models

--tensor-parallel-size 4
deepseek-r1-fp4-mesh-tp4-mtp AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
SGLANG_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,256
deepseek-r1-fp4-mesh-dpa4-ep4 SGLANG_DEFAULT_SERVER_ARGS=
AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
MORI_SHMEM_MODE=ISOLATION
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models
SGLANG_ENABLE_TORCH_COMPILE=128
SGLANG_MORI_DISPATCH_DTYPE=bf16
SGLANG_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
deepseek-r1-fp4-mesh-dpa4-ep4-mtp SGLANG_DEFAULT_SERVER_ARGS=
AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
MORI_SHMEM_MODE=ISOLATION
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models
SGLANG_ENABLE_TORCH_COMPILE=128
SGLANG_MORI_DISPATCH_DTYPE=bf16
SGLANG_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..128
deepseek-r1-fp4-mesh-dpa8-ep8 SGLANG_DEFAULT_SERVER_ARGS=
AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
MORI_SHMEM_MODE=ISOLATION
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models
SGLANG_ENABLE_TORCH_COMPILE=128
SGLANG_MORI_DISPATCH_DTYPE=bf16
SGLANG_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
deepseek-r1-fp4-mesh-dpa8-ep8-mtp SGLANG_DEFAULT_SERVER_ARGS=
AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
MORI_SHMEM_MODE=ISOLATION
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models
SGLANG_ENABLE_TORCH_COMPILE=128
SGLANG_MORI_DISPATCH_DTYPE=bf16
SGLANG_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..128

SGLang-Mori Server 命令

当用户选择 mesh_server_mode=sglang-mori 时,workflow 会执行:

.github/scripts/atom_sglang_mesh_benchmark.sh

该脚本会启动 mori+sglang image 中的 SGLang server。基础 server 命令如下:

python3 -m sglang.launch_server \
  --model-path="${MODEL}" \
  --trust-remote-code \
  --host=0.0.0.0 \
  --port="${PORT:-8888}" \
  --tensor-parallel-size="${TP}" \
  --chunked-prefill-size="${PREFILL_SIZE}" \
  --mem-fraction-static=0.8 \
  --disable-radix-cache \
  --num-continuous-decode-steps=4 \
  --max-prefill-tokens="${PREFILL_SIZE}" \
  --cuda-graph-max-bs=256 \
  --attention-backend aiter \
  --kv-cache-dtype fp8_e4m3 \
  ${SERVER_EXTRA_ARGS}

其中:

  • MODEL 来自当前 model config 的模型路径。
  • TP 来自当前 Mesh config 的 tp_size。
  • SERVER_EXTRA_ARGS 来自当前 Mesh config 的 extra_args。
  • PREFILL_SIZE 默认是 196608。

SGLang-Mori 模式下的环境变量有两个来源:

  1. workflow 启动容器时通过 --env-file 注入当前 Mesh config 的 env_vars。
  2. atom_sglang_mesh_benchmark.sh 在容器内启动 server 前额外 export 一组 mori+sglang 默认变量。

当前 Mesh config 通过 env_vars 注入的环境变量如下:

Config Workflow env vars
TP8 / TP8 MTP / TP4 / TP4 MTP AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
DPA4+EP4 / DPA4+EP4 MTP / DPA8+EP8 / DPA8+EP8 MTP SGLANG_DEFAULT_SERVER_ARGS=
AITER_QUICK_REDUCE_QUANTIZATION=INT4
SGLANG_AITER_FP8_PREFILL_ATTN=0
SGLANG_USE_AITER=1
ATOM_ENABLE_DS_QKNORM_QUANT_FUSION=1
MORI_SHMEM_MODE=ISOLATION
SGLANG_EXTERNAL_MODEL_PACKAGE=atom.plugin.sglang.models
SGLANG_ENABLE_TORCH_COMPILE=128
SGLANG_MORI_DISPATCH_DTYPE=bf16
SGLANG_MORI_NUM_MAX_DISPATCH_TOKENS_PER_RANK=16384

atom_sglang_mesh_benchmark.sh 还会额外设置以下环境变量:

export SGLANG_USE_AITER="${SGLANG_USE_AITER:-1}"
export SGLANG_AITER_MLA_PERSIST="${SGLANG_AITER_MLA_PERSIST:-1}"
export ROCM_QUICK_REDUCE_QUANTIZATION="${ROCM_QUICK_REDUCE_QUANTIZATION:-INT4}"
export AITER_QUICK_REDUCE_QUANTIZATION="${AITER_QUICK_REDUCE_QUANTIZATION:-INT4}"
export IBDEVICES="${IBDEVICES:-rdma0,rdma1,rdma2,rdma3,rdma4,rdma5,rdma6,rdma7}"

当 SPEC_MODE=mtp 时,还会设置:

export SGLANG_ENABLE_SPEC_V2="${SGLANG_ENABLE_SPEC_V2:-1}"

当前脚本里保留了 InferenceX 里的 prefill size 调整逻辑:

PREFILL_SIZE=196608
if [[ "${ISL}" == "8192" && "${OSL}" == "1024" && "${CONC}" -gt "32" ]]; then
  PREFILL_SIZE=32768
fi

MTP case 会额外开启 speculative decode。若 config 没有显式提供 speculative 参数,脚本会补默认值:

--speculative-algorithm NEXTN \
--speculative-num-steps 3 \
--speculative-eagle-topk 1 \
--speculative-num-draft-tokens 4

若 config 没有显式提供 --max-running-requests,脚本会补:

--max-running-requests 256

若 config 没有显式提供 --cuda-graph-bs,脚本会补:

--cuda-graph-bs 1 2 3 ... 128 160 192 224 256

server ready 后,sglang-mori 模式会用 benchmark_serving.py 进行压测:

python "${BENCH_SERVING_DIR}/benchmark_serving.py" \
  --model="${MODEL}" \
  --backend=vllm \
  --base-url="http://127.0.0.1:${PORT:-8888}" \
  --dataset-name=random \
  --random-input-len="${ISL}" \
  --random-output-len="${OSL}" \
  --random-range-ratio="${RANDOM_RANGE_RATIO}" \
  --num-prompts="$(( CONC * 10 ))" \
  --max-concurrency="${CONC}" \
  --num-warmups="$(( 2 * CONC ))" \
  --request-rate=inf \
  --ignore-eos \
  --save-result \
  --percentile-metrics="ttft,tpot,itl,e2el" \
  --result-dir="${RESULT_DIR}" \
  --result-filename="${RESULT_FILENAME}.json" \
  ${BENCH_EXTRA_ARGS}

注意:sglang-mori 模式使用 --backend=vllm 是为了对齐 InferenceX 的 SGLang benchmark command 形态;它并不表示 server 是 vLLM。

Benchmark 执行流程

每个 benchmark job 的执行流程如下:

  1. 检测容器引擎,优先使用 Docker,否则使用 Podman。
  2. 清理 runner 上残留的容器和 workspace。
  3. checkout 当前选择的 ATOM source。
  4. 拉取或构建 SGLang image。
  5. 准备 model cache mount。
  6. 启动 benchmark container。
  7. 收集 GPU metadata。
  8. 下载模型或解析模型路径。
  9. clone bench_serving。
  10. 根据 benchmark mode 选择 server 启动路径:
    • SGLang-OOB:总是走 atom_sglang_test.sh
    • SGLang-Mesh + mesh_server_mode=sglang-atom:走 atom_sglang_test.sh
    • SGLang-Mesh + mesh_server_mode=sglang-mori:走 atom_sglang_mesh_benchmark.sh
  11. 运行 benchmark_serving.py。
  12. 给结果 JSON 注入 workflow、模型、镜像、GPU 等 metadata。
  13. 上传每个 case 的 result artifact。

Dashboard 行为

SGLang-OOB 可以在 publish_to_dashboard=true 时发布到 ATOM benchmark dashboard。

SGLang-Mesh 只发布到 LLM-Booster:

  • publish_to_dashboard 会被强制设为 false
  • upload_to_custom_dashboard 控制是否上传 LLM-Booster

LLM-Booster 输出路径:

dashboard/data/sglang-atom/

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-Mesh run 默认使用 rocm/atom-dev 镜像,但却误用了只适用于 mori+sglang image 的启动命令,导致 server 启动失败或 benchmark 全部失败。

zhuyuhua-v added 10 commits May 21, 2026 04:28
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]>
@wuhuikx

wuhuikx commented May 23, 2026

Copy link
Copy Markdown
Collaborator

审查发现
高优先级 – 周六的 Mesh 定时任务实际上有问题
在 .github/workflows/atom-sglang-benchmark.yaml 里,调度已改成 cron: '0 15 * * 6'(只在周六跑),但后续逻辑里仍有两处用的是 "0 15 * * 6,0"(一处在 workload 解析,一处在 Python 的模型选择逻辑)。
这个不一致会导致周六任务无法按预期走 Mesh 分支,可能落入默认/未知日期分支,进而出现模型选择为空或 workload 错误,最终造成 Mesh 的定时覆盖缺失(任务跳过或异常)。
待确认 / 假设
我当前按“只在周六跑 Mesh”来理解(与新注释一致)。如果你本意是周六和周日都跑 Mesh,就需要把顶层 cron 改回包含 0(周日)。
目前只发现这一个明确的功能性阻塞问题;JSON/YAML 语法本身是可解析的。
变更背景(次要信息)
这个 PR 增加了较完整的 SGLang Mesh benchmark 支持:
新增脚本:.github/scripts/atom_sglang_mesh_benchmark.sh
扩展模型矩阵:.github/benchmark/sglang_benchmark_models.json
重构工作流:.github/workflows/atom-sglang-benchmark.yaml(suite preset、mesh/oob 分流、双 dashboard 上报)
小幅增强:.github/scripts/atom_sglang_test.sh 与 .github/scripts/plugin_benchmark_to_dashboard.py
整体改动量较大(1000+ 行新增),但我认为当前必须先修的是上面的 cron 字符串不一致问题。

@wuhuikx
wuhuikx requested a review from Yuechguo May 23, 2026 03:04
@wuhuikx
wuhuikx requested a review from Jasen2201 May 23, 2026 03:05
@zhuyuhua-v
zhuyuhua-v marked this pull request as ready for review May 25, 2026 07:47
Copilot AI review requested due to automatic review settings May 25, 2026 07:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yaml with 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) for mesh_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.

Comment on lines +58 to +62
local array_name="$2"
local token
while IFS= read -r -d '' token; do
eval "${array_name}+=(\"\${token}\")"
done < <(
@zejunchen-zejun

Copy link
Copy Markdown
Collaborator
  1. atom_sglang_mesh_benchmark.sh 的 RANDOM_RANGE_RATIO 默认值与 Mesh 定义不一致
    脚本里:
    RANDOM_RANGE_RATIO=${RANDOM_RANGE_RATIO:-0.8}
    但 PR 描述和 DEFAULT_MESH_PARAMS 明确说 Mesh 用 random_range_ratio=1。如果调用方忘记传 RANDOM_RANGE_RATIO,脚本会默认用 0.8,和 Mesh 定义的语义不一致。应该改为 1。

  2. emit_new_logs() 只打印前 240 行
    sed -n '1,240p' "${SERVER_LOG}" || true
    如果 server 启动失败,错误信息可能在日志末尾而不是开头。应该用 tail 而不是 head,或者同时打印首尾。

  3. check if model is enabled step 被简化为永远 true
    echo "enabled=true" >> "$GITHUB_OUTPUT"
    原来的逻辑是根据 workflow_dispatch 的 input 判断每个 model 是否启用。现在无论什么情况都返回 true,model 过滤完全依赖 load-models job 的 Python 逻辑。如果 load-models 有 bug 多选了
    model,这里不再有第二道防线。这个 step 现在完全是死代码了,应该直接删掉而不是留着。

Signed-off-by: zhuyuhua-v <[email protected]>
@zhuyuhua-v
zhuyuhua-v marked this pull request as draft May 25, 2026 09:53
@zhuyuhua-v
zhuyuhua-v marked this pull request as ready for review May 25, 2026 09:53
Copilot AI review requested due to automatic review settings May 25, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Comment on lines 333 to 337
IFS=',' read -ra PARAMS <<< "$SET"
INPUT_LEN="${PARAMS[0]}"
OUTPUT_LEN="${PARAMS[1]}"
CONCURRENCY="${PARAMS[2]}"
RANDOM_RANGE_RATIO="${PARAMS[3]}"
Comment on lines 51 to 55
--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",
@zhuyuhua-v

Copy link
Copy Markdown
Collaborator Author

changed benchmark scripts only, align with Hattie, zejun, will merge first to catch tonight's benchmark

@zhuyuhua-v
zhuyuhua-v merged commit 7d435d5 into main May 25, 2026
37 of 65 checks passed
@zhuyuhua-v
zhuyuhua-v deleted the yuhua/sglang-bench-mesh branch May 25, 2026 12:06
@zhuyuhua-v
zhuyuhua-v restored the yuhua/sglang-bench-mesh branch May 25, 2026 13:16
@zhuyuhua-v
zhuyuhua-v deleted the yuhua/sglang-bench-mesh branch May 25, 2026 13:19
zejunchen-zejun added a commit that referenced this pull request Dec 2, 2026
… / 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]>
zejunchen-zejun added a commit that referenced this pull request Dec 2, 2026
…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]>
gbyu-amd pushed a commit that referenced this pull request Dec 3, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants