Files
aituner/runs/frontier-fidelity-envelope-v1/experiment-card.md

10 KiB
Raw Blame History

EXP-SIMFID-ENVELOPE-V1Frontier best-effort fidelity envelope

状态: 已批准准备执行2026-07-17。用户要求先把 simulator 现有能力跑到最好,并同时覆盖 fixed input/output 与真实 trace replay。

Claim 与可证伪假设

  • 研究问题: 在不使用被评测 config/workload 的 serving E2E calibration 时Frontier 的 measured operator/collective profiles 与 scheduler state abstraction是否足以找到真机上的低-regret config
  • H-CC Qwen30 prefill-only 的 TP 排序错误主要来自默认 analytical all-reduce注入同机、同 TP 的 measured collective 后,已知 2048/1 surface 的 regret 降至不超过 5%Kendall tau-b 升至至少 0.8。
  • H-BATCH 若 H-CC 不足,错误主要来自 pure-prefill attention 只有 batch=1 profile而 Frontier 在多请求 batch 上使用没有 coverage 的 attn_prefill_mixed 外推;增加 MBT 可达的真实 batch composition 后可恢复排序。
  • H-STATE 若 measured collective 与 batch-composition profile 都不能恢复排序,则缺失量位于 isolated operators 之外的 scheduler-state-conditioned step composition继续增加静态 kernel rows不是有效修复。
  • 成功门槛: worst selected-config regret <=5%、tie-aware Kendall tau-b >=0.8、真机 capacity bracket 不足以反转 top decision并且没有使用同一 surface 的 E2E scalar calibration。

Simulator ablation先用已有 ground truth零新增 GPU 成本)

variant compute profile collective 目的
A0 vLLM 0.20 frozen profile-v2 Frontier analytical 已冻结 baseline
A1 同 A0 Frontier 原生 Vidur + measured TP2/TP4 CSV 检查原生 profile consumption大 payload fallback 保留并计数
A2 同 A0 measured Vidurcache miss 直接调用已训练 estimator 最小 correctness fix消除 >100k elements 静默 analytical fallback
A3 增加 pure-prefill batch-composition rows 同 A2 检验 batch-composition coverage 是否是剩余误差来源

A1/A2/A3 都重新运行完整 TP∈{1,2,4} × MNS∈{8,16,32,64} surfaceTP1 无 all-reduce。所有 simulator variants 在查看新增真机 case 前冻结。A2 是单独标注、带单测的 compatibility patch不与 Frontier upstream 原生能力混写。

Workload matrix

ID workload arrival / prefix phase role
F0 fixed ISL=2048, OSL=1 uniform QPSdistinct prefixes 已有 real ground truth选择 A0--A3
F1 fixed ISL=512, OSL=1 uniform QPSdistinct prefixes short-prefill、多请求 batch composition
F2 fixed ISL=2048, OSL=128 uniform QPSdistinct prefixes true prefill+decode mixed serving
T1 thinking_w20260327_1000 eligible trace 原 timestamp/orderexact prompt/output/session/hashprefix on production joint distribution 与 cache/scheduler feedback

T1 只排除已经审计的 72 个超 40,960 context rows 和 6 个 zero-output rowseligible universe 为 15,401/15,479。负载轴只使用 trace 已有、同 session 共享的 sampling_u;入选 request 的 arrival、input/output、prompt、hash 和相对次序不变。真实 runtime 设置 min_tokens=max_tokens=output_lengthignore_eos=true,逐请求核对 usage。

固定系统与 config surface

项目 冻结设置
machine dash08×NVIDIA H20
model/runtime /home/admin/cpfs/wjh/models/Qwen/Qwen3-30B-A3Bcommunity vLLM 0.20.0+cu129BF16 weight/activation/KV
simulator Frontier d9cfeb6d8791fbf2f295dd9744c56a666171776e + manifest 中列出的现有 compatibility patchesA2 patch 独立 hash
configs TP∈{1,2,4} × MNS∈{8,16,32,64}DP=PP=EP=1MBT=8192block=16
runtime chunked prefill onfixed cases prefix offT1 prefix onfresh server per (config, load, round)
score capacity(c)=max tested offered req/s with joint SLO pass rate >=0.95primary capacity/actual TP GPUs
SLO TTFT <=1000ms + 1000×ISL/8000mixed case同时要求 TPOT <=150ms;另报告 50/100/180ms sensitivity不用 sensitivity 改写 primary

F0 沿用已经冻结的 rate lattice与两个 fresh-server rounds。F1/F2 先由冻结 simulator 给出 boundary再加入共同 per-GPU guard anchors避免只测 simulator 预测附近而漏掉真实最优。每个 boundary anchor 两个 fresh-server rounds二者都 pass 才算 feasible。

T1 保持原 600 秒 arrival window。先在 simulator 上冻结 sampling_u bracket真机只运行 topological guard set {TP1,TP2,TP4} × {MNS8,MNS32,MNS64},若 top set 或 bracket 仍可能被未测 MNS 反转再补 MNS16。每个入选 source-row vector在 real/sim 两侧必须有相同 digest至少两个 session-hash folds若本轮只完成一个 window则明确标为 single-window evidence。

Pre-bracket smoke amendment2026-07-17任何 T1 真机结果产生前): 允许预先运行一个固定的 TP4/MNS32 × u=0.005 real harness smoke。该点已属于上述 guard set选择不依赖 simulator 输出;在完整 simulator surface 冻结前,性能结果保持 sealed只检查进程退出状态、artifact 完整性、request usage 与 row-vector digest。该 smoke 不用于选择 config、移动负载 bracket 或形成 fidelity verdictfull real anchors 仍必须等待 simulator bracket 冻结。目的仅是让 600 秒真机 harness 验证与 CPU simulator surface 并行, 缩短 critical path。

诊断与停止规则

  1. A1 必须报告每次 collective prediction 的 measured-model hit 与 analytical fallback 次数;不能只看最终 rank。
  2. A2 对超过 100k elements 的 payload 必须由单测证明走 estimatorA2 若不改变任何 TP2/TP4 step立即停止并检查 CLI/config 注入,不进入 GPU。
  3. A3 profile 只覆盖 MBT=8192 可达的 pure-prefill compositionF0 为 1/2/4 × q2048F1 为 1/2/4/8/16 × q512TP1/2/4 分别实测;不做无边界的 profile sweep。
  4. 若 A3 在 F0 仍不能达到 fidelity gate先采集 TP1@8, TP2@16, TP4@32 的 per-step batch/queue/component residual禁止用 per-TP E2E scale把答案拟合正确。
  5. 只有 best-effort simulator 在 F0 通过或形成可解释、可定位的失败后,才运行 F1/F2/T1 真机;任一 case 的结论不外推到其它 workload。

预期成本与产物

  • simulator A1--A3CPU only约 1--3 小时总 CPU wall0 GPU-hour。
  • attention composition profile3 张 H20 并行,预计 5--10 分钟,<0.5 H20-GPU-hour
  • F1/F2 real boundary预计合计 12--24 H20-GPU-hourssmoke 后再锁定。
  • T1 real boundary600 秒原 arrival window使单 anchor较贵预计 30--60 H20-GPU-hours必须在 simulator bracket 和一配置 smoke 后重新 echo 精确预算。
  • 产物variant/profile manifests、full surfaces、anchor-level request metrics、rank/regret/confusion tables、profile-consumption counters以及 fixed-vs-trace fidelity summary figure。

Benchmark design audit

风险 处理
selective benchmarking 预先冻结 F0/F1/F2/T1不因结果删除失败 case
calibration=evaluation 禁止使用同一 surface 的 serving E2E scalarmicroprofile GPU 成本单独报告
trace filtering 只做 context/zero-output correctness exclusion和 session-coherent thinning不按长度筛选
simulator-guided real sampling 使用共同 guard anchors未闭合 bracket 不能宣布 top match
absolute-vs-rank metric 同时报绝对 capacity/latency、rank、regret、tau-b、pair direction和 SLO confusion
hidden fallback A1/A2 强制计数 measured-model hit/fallback并写入 frozen manifest

Qwen235 Fixed-PD TP4/TP8 state diagnosis2026-07-19

结论: measured TP4/TP8 collective 已被 simulator 真实消费且 analytical fallback 为 0但 Frontier 在自身闭环状态上仍给出 TP8-TP4=-20.0663 ms,与冻结真机 +6.9500 ms 方向相反。使用 vLLM iteration details 采集真机精确 (context_tokens, generation_requests),并对相同 Frontier stage records 做 100% exact joint-state reweight 后,对比翻转为 +10.9028 ms。因此该 ranking error 的主因是 closed-loop state/composition mismatch不是同一真实 state 下的 conditional stage reversal。

TP4/EP1 TP8/EP8 TP8-TP4
frozen real TPOT (ms) 21.0442 27.9942 +6.9500
exact real decode-token-weighted iteration (ms) 18.4710 27.5887 +9.1177
Frontier own-composition critical path (ms) 74.2229 54.1567 -20.0663
exact-state-matched Frontier critical path (ms) 34.2575 45.1603 +10.9028
exact real decode batch mean 3.890 10.921
Frontier decode batch mean 13.537 18.938

State composition 将 config contrast 推动 +30.9690 ms,已经足以解释并反转原错误; exact-state-matched contrast 相对 frozen TPOT 还剩 +3.9528 ms,相对同次 exact iteration 实验还剩 +1.7851 ms。后者是 conditional operator/graph/measurement residual 的上界,而不是 当前 ranking error 的主因。

同 batch 扫描显示 Frontier 从 B1 起就预测 TP8 更快,但 B4→B5 是 TP4 误差被显著放大的拐点: TP4 模拟 critical path 从 30.4058 跳至 54.4194 ms,其中 MoE work estimate 从 9.9788 跳至 34.6845 ms;真机 pure-decode iteration 只从 14.2337 增至 16.1614 ms。TP4 grouped-MoE 的 rounded effective tokens 在此从 4 变 8跨 94 层放大 profile cliffTP8/EP8 的对应曲线更平滑。被高估的 TP4 step latency 又在 simulator 闭环中积累更多 active requests使其大部分时间落入更高 token bucket形成正反馈。

Component trace 只作为 non-additive work estimate在 simulator 自身状态上MoE compute 给 TP8 -32.4544 ms 优势attention -7.4619 msTP/DP communication -6.5711 ms EP communication 反而给 TP8 +6.2354 ms penalty。Frontier 没有单独暴露 graph bucket、padding 或 launch-overhead 字段,因此 graph 影响仍折叠在 predictor 中,不能从本实验单独归因。

真机 exact-state TP4 为单 server 运行,而冻结 TP4 TPOT 来自同机两个四卡 serverTP8 两者均为 单 server。因此 exact-state run 只用于机制诊断,冻结三轮仍是主 E2E 对比。分析产物位于 /home/admin/cpfs/wjh/aituner/qwen235-fixed-pd-state-diagnosis-20260719-r1/analysis/state-diagnosis-exact.{json,md} 两配置 replay scorer 与 frozen A1 request metrics byte-identical。