You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GLM-5.3-Flash-FP8 on gfx942: disaggregated 1P/1D serving - #274
GLM-5.3-Flash-FP8 (Glm5NextForConditionalGeneration) disaggregated 1P/1D serving on gfx942 (MI300X / MI325X) over MoRIIO, registered in the vllm_dissag harness.
It is based on @raviguptaamd's commit f9f4a5b, kept unchanged (including the Dockerfile), plus three small fixes needed to run it out of the box:
distributed.nnodes: 2 on the 5 GLM-5.3-Flash cards. Without it, madengine main emits #SBATCH --nodes=1; the card's -N 2 -n 2 only reaches the script's argv.
Opt-in MODEL_WEIGHTS_NAME (defaults to MODEL_NAME, same name and semantics as Kimik3 madengine integration #242's cluster.sh) in the run_xPyD_models.slurm weights probe, set to GLM-5.3-Flash-FP8 on the 5 cards, plus 6 argv_assert checks. The recipe key GLM-5.3-Flash-FP8-gfx942 is not the checkpoint directory, so without it no NVMe/shared-FS probe finds the weights.
The same export added to the two SKILL.md sbatch examples.
Other models are unaffected: every change is card-local or opt-in, with the unset defaults asserted.
Validation
Offline: tests/run_all.sh gate_check 28/28, argv_assert 48/48 (on the branch and merged onto current develop). bash -n and json/yaml loads clean.
madengine main (6a03289): discovers all 5 cards; generated sbatch scripts have --nodes=2, --ntasks=2 and MODEL_WEIGHTS_NAME=GLM-5.3-Flash-FP8.
Live on OCI, MI300X 1P/1D EP8/EP8, image built from this PR's Dockerfile (sha256:db672d55034c…, all 20 build-time fix checks pass), job 457627, with no symlink workaround:
Final MODEL_PATH: /mnt/m2m_nobackup/models_blog/GLM-5.3-Flash-FP8 on both nodes
The reason will be displayed to describe this comment to others. Learn more.
Done: after the rebase onto develop, develop's run_xPyD_models.slurm already forwards ROUTER_PREFILL_POLICY, ROUTER_DECODE_POLICY and MORIIO_READ_MODE, so this PR adds none of its own (2052166). argv_assert.sh checks the forwards.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the stacked #316 (31208d4): the example now uses the repository-root path -f docker/vllm_disagg_inference.glmv53flash.gfx942.ubuntu.amd.Dockerfile and says to build from the repo root.
The reason will be displayed to describe this comment to others. Learn more.
The results report is no longer part of this PR (removed in d60d26d). The README pins the shipping image; validation for the current pins is in #316's description.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The newly registered long-context mode lacks CSV export and parser-compatible headers, so even successful runs produce no performance results for MAD to collect.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the stacked #316: benchmark_long_context.sh writes perf.csv through parse_to_csv.py with the parser's [RUNNING] prompts N isl X osl Y con C header (31208d4), and the parser files each result under its own cell header (215bfe9).
MIR-AMD
added a commit
to MIR-AMD/MAD
that referenced
this pull request
Nov 18, 2026
…long-context CSV)
- run_xPyD_models.slurm: forward PREFILL_EXTRA_ENV / DECODE_EXTRA_ENV into the
container with ${VAR+...} so a set-but-empty submit-time override wins over
models.yaml; argv_assert covers both forwards.
- benchmark_long_context.sh: [RUNNING] header uses the parser's
'prompts N isl I osl O con C' form and the runner writes CSV + perf.csv via
parse_to_csv.py (same as benchmark_xPyD.sh). Affects both long_context cards.
- Dockerfile header: build example runs from the repo root with docker/ -f path.
…long-context CSV)
- run_xPyD_models.slurm: forward PREFILL_EXTRA_ENV / DECODE_EXTRA_ENV into the
container with ${VAR+...} so a set-but-empty submit-time override wins over
models.yaml; argv_assert covers both forwards.
- benchmark_long_context.sh: [RUNNING] header uses the parser's
'prompts N isl I osl O con C' form and the runner writes CSV + perf.csv via
parse_to_csv.py (same as benchmark_xPyD.sh). Affects both long_context cards.
- Dockerfile header: build example runs from the repo root with docker/ -f path.
Agentic suite cards do not export MAD-format performance results
scripts/vllm_dissag/models.json:648
The shared agentic suite writes aggregate JSON and suite_summary.json, but no MAD-format perf.csv or performance: line, so these cards produce no madengine performance result even when replay succeeds. Add a shared suite-to-MAD CSV exporter and publish its output through both cards' result contract. Same issue in scripts/vllm_dissag/models.json:685–686.
madengine slurm_multi sizes #SBATCH --nodes from slurm.nodes or
distributed.nnodes (default 1); the card's args "-N 2 -n 2" is only
passed to the script. Declare distributed.nnodes=2 on the five
GLM-5.3-Flash-FP8-gfx942 cards so a 1P/1D job gets both nodes.
The slurm probed <root>/$MODEL_NAME, but the models.yaml key
GLM-5.3-Flash-FP8-gfx942 is not the checkpoint directory (GLM-5.3-Flash-FP8
on NVMe and shared FS), so a run found no weights without a hand-made
symlink. Add MODEL_WEIGHTS_NAME (default MODEL_NAME, same name and
semantics as cluster.sh in ROCm#242) to the probe, set it on the five
GLM-5.3 gfx942 cards, and cover the probe in argv_assert.
…o the container
A submit-time override was silently dropped and the models.yaml value always
won, unlike every other per-model knob. Unset keeps the YAML value.
…; fix README image note
The README now lists GLM-5.3-Flash among the models the shared image does not
serve, says the router policies can be overridden at submit time, and marks
the MI325X Broadcom submit line as the recipe author's.
…long-context CSV)
- run_xPyD_models.slurm: forward PREFILL_EXTRA_ENV / DECODE_EXTRA_ENV into the
container with ${VAR+...} so a set-but-empty submit-time override wins over
models.yaml; argv_assert covers both forwards.
- benchmark_long_context.sh: [RUNNING] header uses the parser's
'prompts N isl I osl O con C' form and the runner writes CSV + perf.csv via
parse_to_csv.py (same as benchmark_xPyD.sh). Affects both long_context cards.
- Dockerfile header: build example runs from the repo root with docker/ -f path.
Closing in favour of #316, which now carries this PR's FP8 card together with the MXFP4 card on one image (the same 10 commits plus 5). Merging #316 lands everything here, with the newer image pins (GSM8K 0.914–0.920 vs 0.843 on this PR's pins) and the long-context CSV export; all 10 cards were run on #316's head.
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
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.
GLM-5.3-Flash-FP8 (
Glm5NextForConditionalGeneration) disaggregated 1P/1D serving on gfx942 (MI300X / MI325X) over MoRIIO, registered in thevllm_dissagharness.It is based on @raviguptaamd's commit f9f4a5b, kept unchanged (including the Dockerfile), plus three small fixes needed to run it out of the box:
distributed.nnodes: 2on the 5 GLM-5.3-Flash cards. Without it, madenginemainemits#SBATCH --nodes=1; the card's-N 2 -n 2only reaches the script's argv.MODEL_WEIGHTS_NAME(defaults toMODEL_NAME, same name and semantics as Kimik3 madengine integration #242'scluster.sh) in therun_xPyD_models.slurmweights probe, set toGLM-5.3-Flash-FP8on the 5 cards, plus 6argv_assertchecks. The recipe keyGLM-5.3-Flash-FP8-gfx942is not the checkpoint directory, so without it no NVMe/shared-FS probe finds the weights.SKILL.mdsbatch examples.Other models are unaffected: every change is card-local or opt-in, with the unset defaults asserted.
Validation
tests/run_all.shgate_check 28/28, argv_assert 48/48 (on the branch and merged onto currentdevelop).bash -nand json/yaml loads clean.main(6a03289): discovers all 5 cards; generated sbatch scripts have--nodes=2,--ntasks=2andMODEL_WEIGHTS_NAME=GLM-5.3-Flash-FP8.sha256:db672d55034c…, all 20 build-time fix checks pass), job 457627, with no symlink workaround:Final MODEL_PATH: /mnt/m2m_nobackup/models_blog/GLM-5.3-Flash-FP8on both nodesPlease squash with:
Co-authored-by: ravgupta <ravgupta@amd.com>