Repository navigation
[NVIDIA][H200] Qwen3.8-Flash-Next FP8 SGLang agentic MTP: add FP8 KV + HiCache DRAM arm at conc 16/20/24, no patches / [NVIDIA][H200] Qwen3.8-Flash-Next FP8 SGLang 智能体 MTP:新增 FP8 KV + HiCache DRAM 卸载分支(并发 16/20/24,无补丁) - #5194
asghar07 wants to merge 7 commits into
Conversation
…+ HiCache DRAM arm at conc 16/20/24 Assisted-by: Claude Code
Assisted-by: Claude Code
|
Thanks for the contribution!
中文感谢你的贡献!
|
Assisted-by: Claude Code
|
@Ankur-singh, could you take a look when you have time? This adds an FP8 KV + HiCache arm to the H200 Qwen3.8-Flash-Next cell you extended in #4272. As a fork PR it needs a maintainer to apply |
|
[by Claude Code] The SGLang cookbook integration of this PR's AgentX config ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#53052 has been merged. This PR's AgentX config ( This PR has no authorized |
Resolve conflicts after SemiAnalysisAI#4763 (explicit worker GPU resources) and SemiAnalysisAI#4766 (legacy CPU DRAM limits removed): - nvidia-master.yaml: take main's search-space and add the HiCache row with gpus-per-worker: 2. - agentic.yaml: drop gpus: 2 from the three HiCache overrides and TOTAL_CPU_DRAM_GB from their client env. - perf-changelog.yaml: resolved with infx.workflows.prepare_perf_changelog_merge; drop the dram-utilization wording from this PR's entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
perf-changelog.yaml resolved with infx.workflows.prepare_perf_changelog_merge after SemiAnalysisAI#5193; validate_perf_changelog passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you, @nvpohanh, for adding this config to the SGLang cookbook in sgl-project/sglang#53052. I merged As a CODEOWNER for the H200 recipes, could you do the PR Review Checklist sign-off, or apply |
|
[by Claude Code] The SGLang cookbook update of this PR's AgentX config ( This PR has no authorized |
|
[by Claude Code] sgl-project/sglang#53390 has been merged. This PR's AgentX config ( This PR has no authorized |
perf-changelog.yaml resolved with infx.workflows.prepare_perf_changelog_merge; validate_perf_changelog passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t-h200-hicache-fp8kv # Conflicts: # inferencex-e2e/perf-changelog.yaml
Summary
At 16 agents the H200 Qwen3.8-Flash-Next FP8 AgentX cell is limited by KV-cache space, not by compute. The current recipe runs a BF16 KV cache with no offload. In our runs of that recipe the GPU KV pool (2,097,856 tokens,
max_total_num_tokens) was up to 99% held by running requests at concurrency 16. The server evicted cached prefixes, the prefix-cache hit rate was 89% against a trace limit of 96%, and the server computed about 26 million prompt tokens per hour, about 16 million more than the trace limit requires.This PR adds one search-space entry to
qwen3.8next-fp8-h200-sglang-agentic-mtpthat turns on two upstream SGLang features. The image, model and all other server settings stay the same. There is no custom image, no patch and no setup script.kv-cache-dtype: fp8_e4m3. The GPU KV pool grows from 2.10M to 3.96M tokens (1.9x). The draft KV inherits FP8 from the target, which CONTRIBUTING.md lists as allowed ("FP8 draft KV inherited from an FP8 target"). We set no draft-specific dtype. The draft is the embedded FP8 MTP head ofQwen/Qwen3.8-Flash-Next-FP8, served as shipped.enable-hierarchical-cache,hicache-size: 50(GB per rank),hicache-io-backend: kernel,hicache-mem-layout: page_first,hicache-write-policy: write_back. Evicted prefixes stay in host memory, inside the 308 GB DRAM share the matrix gives each point (dram-utilization: 0.8).Changes:
configs/nvidia-master.yaml: one new TP2/EP2 entry,kv-offloading: dramwith thehicachebackend,conc-list: [16, 20, 24], sameagentic.yaml. The GPU-KV entries are unchanged.srt-slurm-recipes/qwen3.8next/sglang/h200-fp8-mtp/agentic.yaml: new overridesoverride_tp2_c16_hicache,override_tp2_c20_hicacheandoverride_tp2_c24_hicache. Admission and decode CUDA graphs are 2x CONC (32, 40, 48), as inoverride_tp2_c16.override_tp2_c16now also namesKV_OFFLOADING: none, so the stock and HiCache points at c16 each select one variant. This changes the fingerprint of the stock c16 point, so the sweep re-runs it next to the new arm.perf-changelog.yaml: one entry appended at the end.Measured effect (our runs, not InferenceX CI)
We ran the stock recipe and this arm on our own 2x H200 SXM nodes, with the same image (
lmsysorg/sglang:v0.5.23-cu130@sha256:f832b5c3…) and the InferenceX AgentX client and traces. We ran 3 pre-registered runs on 2 nodes, with a 1-hour window for each point. Stock at 16 agents is the mean of 2 stock points in each run (6 points in all). Full method and raw data: paper DOI 10.5281/zenodo.24457433, data https://doi.org/10.5281/zenodo.24457618.Known gaps:
SGLANG_SIMULATE_ACC_LEN=2.32) in both arms, as InferenceX does. Throughput and TPOT do not include any change in real acceptance. On the GSM8K servers, which use real acceptance, the FP8-KV arm accepted about 4% fewer tokens per step at full batch (3.13 against 3.27). A real-acceptance run on agent traces could show a smaller gain.full-sweep-fail-fast). The CODEOWNER sign-off needs the SGLang cookbook PR ([Doc] [NVIDIA] cookbook: Qwen3.8-Flash-Next H200, add FP8 KV + HiCache commands for concurrency 16-24 sgl-project/sglang#52597) merged first.AI model disclosure
PR checklist and change type
Type of Change
Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied./use <run_id>(or the legacy/reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.Local testing: matrix generation (
infx.matrix.changed: 1 of 219 config keys changed, 4 points added, 1 removed) and recipe selection only. pytest was not run. Nothing ran on InferenceX runners. The GPU results above come from our own nodes.Additional detail section
中文
摘要
在 16 个智能体并发下,H200 上 Qwen3.8-Flash-Next FP8 AgentX 配置的瓶颈是 KV cache 容量,而不是算力。当前 recipe 使用 BF16 KV cache,且不做卸载。我们复现该 recipe 时,并发 16 下运行中的请求最高占用 GPU KV 池(2,097,856 tokens)的 99%,服务器驱逐了已缓存的前缀,前缀缓存命中率为 89%(trace 理论上限 96%),每小时需计算约 2,600 万个 prompt token,比 trace 理论上限所需多约 1,600 万个。
本 PR 为
qwen3.8next-fp8-h200-sglang-agentic-mtp新增一个搜索空间条目,启用 SGLang 上游已有的两项功能,镜像、模型和其他服务器设置均不变。不使用自定义镜像、不打补丁,也没有 setup 脚本。kv-cache-dtype: fp8_e4m3,GPU KV 池从 2.10M 增至 3.96M tokens(1.9 倍)。草稿模型的 KV 继承目标模型的 FP8(CONTRIBUTING.md 明确允许),未单独设置草稿 dtype。enable-hierarchical-cache,hicache-size: 50(每个 rank,GB),kernelIO,page_first布局,write_back策略,位于矩阵为每个点分配的 308 GB DRAM 份额之内。改动:
nvidia-master.yaml新增 TP2/EP2 条目(kv-offloading: dram,后端hicache,conc-list: [16, 20, 24]);agentic.yaml新增override_tp2_c16_hicache、override_tp2_c20_hicache、override_tp2_c24_hicache(准入与 decode CUDA graph 为 2x CONC);override_tp2_c16增加KV_OFFLOADING: none,使 c16 的两个点各自只匹配一个变体,因此 sweep 会重跑 c16 基线;perf-changelog.yaml末尾追加一条。实测效果(我们的机器,非 InferenceX CI)
3 次预注册运行、2 个节点、每点 1 小时。并发 16 下,相对同节点基线吞吐(tok/s/GPU)提升 +11.18%(范围 +9.83% 至 +12.04%),相对已发布点 run 447792(34,070)提升 +11.5%(37,995);P90 TTFT 从 2.53 s 降至 0.93 s;P90 交互性从 55 升至 73 tok/s/user;GSM8K(前 100 题)该分支 0.99,基线 0.98–0.99。并发 24 下达到 54,476 tok/s/GPU,P90 交互性与基线并发 16 相同。并发 8 下无收益(−1.7% 至 +0.2%),并发 14 约 +5%(+4.9% 至 +5.7%),因此该分支从并发 16 开始。
计时使用固定 MTP 接受长度(
SGLANG_SIMULATE_ACC_LEN=2.32,两组相同,与 InferenceX 一致),吞吐量与 TPOT 不反映真实接受率的变化;GSM8K 真实接受率下 FP8 KV 每步少接受约 4%(3.13 对 3.27)。以上为我们自有机器上的结果,以 PR 扫描结果为准。run 2 的一次基线 c16 尝试出现 GPU OOM,仅重跑该点后正常(预注册计划不允许此重跑,论文将其列为偏差);SGLang cookbook PR(sgl-project/sglang#52597)需先合并,CODEOWNER 才能签核;本分支未出错。并发 16 下主机内存层仅提供 0.25% 的 prompt token,FP8 KV 与 HiCache 各自的贡献未单独测量。GSM8K 仅用前 100 题,扫描评估将使用完整测试集。AI 模型使用说明
claude-opus-5-5(Claude Code)阅读了 InferenceX 配置、recipe、矩阵生成器与贡献规则,编写了 recipe、配置、changelog 修改及本说明,并在本地检查矩阵生成与每个点只匹配一个 recipe 变体。claude-opus-5-5 子代理对照论文与贡献规则审阅了本说明。FastPathLabs 作者指导并审阅了改动。
FastPathLabs: Asghar Ali, Muthu Durai, Mohamed Hussain, Asif Ali.