Repository navigation
[Doc] [AMD] cookbook: Muse Spark Open MI355X HiCache frees out-of-window SWA slots - #51760
Merged
Merged
Conversation
dorado269
requested review from
JustinTong0323,
sogalin,
wisclmy0611 and
zijiexia
as code owners
November 20, 2026 07:22
Contributor
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
4 of 5 tasks
…dow SWA slots Signed-off-by: yihou <yihou@amd.com>
dorado269
force-pushed
the
muse-mi355x-cookbook-c58-v2
branch
from
November 24, 2026 10:11
58ae537 to
dc7c126
Compare
HaiShaw
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The MI355X TP4·EP4 HiCache command for Muse Spark Open stops scaling at about concurrency 40, because the SWA KV pool saturates.
SGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS=1, an existing option in the pinned image, frees SWA slots that have left the sliding window and removes that limit. InferenceX #5193 submits the resulting concurrency 58 point, and InferenceX requires its serving configuration in the SGLang cookbook.Summary
MuseSparkOpen.mdxnow setsSGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS=1andHSA_ENABLE_SCRATCH_ASYNC_RECLAIM=0. Flags, image (lmsysorg/sglang-rocm:muse-spark-open-mi355-1106) and the TP8 monokernel fragment are unchanged.muse-spark-open.jsx) is not touched.Why for the whole high-concurrency range, not only concurrency 58
At concurrency 40, adding the two variables to the existing HiCache command raises throughput by about 5.6% and does not lower interactivity:
At concurrency 58 the command with both variables gives 55,610 / 56,793 tok/s/GPU at E2E normalized interactivity P90 23.9 / 23.4: the point #5193 submits.
Measurement evidence
Method: our AgentX closed-loop runs with the InferenceX harness and metrics, on crusoe MI355X nodes (one TP4·EP4 instance on 4 GPUs), image
lmsysorg/sglang-rocm:muse-spark-open-mi355-1106@sha256:d231181df079a5b271a0459d024492c84a36caf8cb26ee019abad29e17eea4d2(the digest InferenceX pins), official mode (3600 s profile), 1106 engine as shipped (no file overlays). Every run uses the HiCache command of this page with--max-running-requests 80and--stream-interval 20; the "Variables" column is the only difference ("reclaim only" =HSA_ENABLE_SCRATCH_ASYNC_RECLAIM=0alone, "both" = plusSGLANG_OPT_UNIFIED_CACHE_FREE_OUT_OF_WINDOW_SLOTS=1). Values are read from each run'sinferencex_result.json:request_metrics.throughput.per_gpu.total_tput_tps(input + output tokens).request_metrics.latency.e2e_norm_intvty.p90= 1 / P90(E2EL / OSL per request), the default AgentX x-axis in InferenceXdocs/MODELS.md.request_metrics.latency.full_response_itl.p90.Per-run results
infx1106-tp4-c40-o139r1ainfx1106-tp4-c40-o139nrinfx1106-tp4-c40-b06a1infx1106-tp4-fooww-c40-o139nrfinfx1106-tp4-fooww-c40-b06f1infx1106-tp4-nb-c40-v117a1infx1106-tp4-nb-c40-v117a2infx1106-tp4-nb-c40-v003a3infx1106-tp4-nb-c40-r3ainfx1106-tp4-c58-noperm-v244infx1106-tp4-c58-noperm-bcluster:mi355x-amdsThe published row is from that run's
results_bmkartifact (agg_bmk.json). Concurrency 40 node-to-node spread in our "both" runs is 50,440 – 50,792 (0.7%). The two concurrency 58 runs are on different nodes than the concurrency 40 ones.Source of truth
override_tp4_c58ininferencex-e2e/benchmarks/single_node/srt-slurm-recipes/musespark/sglang/mi355x-fp4-mtp/agentic.yaml: the concurrency 40 block plus the two variables).Accuracy Tests
No model-output code changes.
Validation
node docs/scripts/check_cookbook_configs.mjs: OKpre-commit run --files docs/cookbook/autoregressive/Meta/MuseSparkOpen.mdx: passedChecklist
AI disclosure: prepared with Claude-Opus-5.5[1m] (Claude Code).
🤖 Generated with Claude Code