Skip to content

[Doc] [NVIDIA] cookbook: Qwen3.8-Flash-Next H200, add FP8 KV + HiCache commands for concurrency 16-24 - #52597

Open
asghar07 wants to merge 4 commits into
sgl-project:mainfrom
fastpathlabs:cookbook/qwen3.8-flash-next-h200-hicache
Open

asghar07 wants to merge 4 commits into
sgl-project:mainfrom
fastpathlabs:cookbook/qwen3.8-flash-next-h200-hicache

Conversation

@asghar07

@asghar07 asghar07 commented Nov 23, 2026 •

Copy link
Copy Markdown

Motivation

Since #53052 the AgentX panel has an H200 TP2·EP2 HiCache option for Qwen3.8-Flash-Next (config qwen3.8next-fp8-h200-sglang-agentic-mtp, shown as in progress), but the page does not explain it. On two H200 at 16 agents, running requests hold up to 99% of the BF16 KV pool of the InferenceX recipe, and the server recomputes long prefixes. Two upstream features fix this with no code change: an FP8 KV cache and HiCache host-memory offload.

Modifications

One new subsection in docs/cookbook/autoregressive/Qwen/Qwen3.8-Flash-Next.mdx, "H200 deployment with FP8 KV and HiCache (concurrency 16–24)", next to the MI355X subsection (its HiCache commands came in #48432). It gives the image, what each flag does, the batch limits per concurrency, the measured effect and one complete sglang serve command. The section points to that AgentX panel option. The generated AgentX data file is not edited. SGLANG_SIMULATE_ACC_LEN is for benchmarks only, so the command leaves it out.

The command matches the InferenceX recipe for these points (SemiAnalysisAI/InferenceX#5194, open and not yet run by InferenceX) at every server argument: 0 missing, 0 conflicting, 0 extra apart from --host and --port. Telemetry (enable-metrics) and the served model name are left out, as in the existing sections.

Accuracy Tests

GSM8K (first 100 questions): 0.99 with the flags, 0.98–0.99 without.

Speed Tests and Profiling

Three 1-hour runs per point on our own machines (two separate nodes, each 2x H200 SXM), lmsysorg/sglang:v0.5.23-cu130, InferenceX AgentX client and traces. Most tokens are cached input, so output tok/s is given too:

Concurrency Total tok/s/GPU, recipe without flags → with flags Output tok/s/GPU TPOT p50 / p90, ms TTFT p50 / p90, s
16 34,178 → 37,995 (+11.2%) 306 → 335 (+9.3%) 9.7 / 18.1 → 8.9 / 13.6 0.45 / 2.53 → 0.45 / 0.93
20 – → 45,763 – → 392 – → 10.5 / 14.3 – → 0.48 / 1.02
24 – → 54,476 – → 443 – → 11.6 / 18.1 – → 0.50 / 1.23

Our own machines, not InferenceX CI. Timing used SGLANG_SIMULATE_ACC_LEN=2.32 in both arms, as InferenceX does. On GSM8K with real acceptance, FP8 KV accepted about 4% fewer tokens per step (3.13 against 3.27). The published InferenceX point for concurrency 16 (run 447792) is 34,070 tok/s/GPU. Paper: Zenodo (DOI 10.5281/zenodo.24457433). Data: Zenodo.

AI model disclosure

claude-opus-5-5 (Claude Code) drafted the section and checked it against the InferenceX recipe. The FastPathLabs authors reviewed it.

Checklist


FastPathLabs: Asghar Ali, Muthu Durai, Mohamed Hussain, Asif Ali.


CI States

Latest PR Test (Base): ✅ Run #45770730760
Latest PR Test (Extra): ⊘ Skipped -- a maintainer comments /tag-and-rerun-ci to run CI tests.
Latest PR Test (AMD ROCm 10): ➖ No AMD PR run found for this commit.

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

…e commands for concurrency 16-24

Assisted-by: Claude Code

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 2a13b7c.

Approve preview

asghar07 and others added 3 commits November 23, 2026 08:48
Resolve the conflict with the ReplaySSM verify pipeline tuning section added on main (34271ca): keep both sections.
Point the H200 FP8 KV + HiCache section at its qwen3.8next-fp8-h200-sglang-agentic-mtp entry in the AgentX table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tokens and run setup plainly

Give output tok/s next to total tok/s (most tokens are cached input), call the runs three 1-hour runs on our machines,
say InferenceX sgl-project#5194 is open and not yet run, name the exact AgentX panel cell, round +11.18% to +11.2%, and drop the
host-memory share that InferenceX removed in sgl-project#4766.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@asghar07

Copy link
Copy Markdown
Author

Merged main to clear the conflict with the new ReplaySSM verify pipeline tuning section (both sections kept). The section now points to the HiCache option that #53052 added to the AgentX panel, gives output tok/s next to total tok/s, and says that InferenceX #5194 is still open.

@nvpohanh, since you added this config in #53052, could you check that this section agrees with the AgentX entry? @zijiexia, could you review it as docs owner?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant