Skip to content

[ROCm enablement] vllm_dissag: add P/D disaggregation launcher for future ROCm releases - #323

Open
avininjamay8 wants to merge 4 commits into
ROCm:developfrom
avininjamay8:crusoe-dsv4-disagg
Open

avininjamay8 wants to merge 4 commits into
ROCm:developfrom
avininjamay8:crusoe-dsv4-disagg

Conversation

@avininjamay8

@avininjamay8 avininjamay8 commented Nov 24, 2026 •

Copy link
Copy Markdown

Purpose

Run vLLM P/D disaggregation from MAD. The launcher drives the .buildkite/amd-disagg scripts and covers each model in every topology and parallelism mode in one command.

Changes

  • scripts/vllm_dissag/rocm/test.sh: submits one Slurm job per model, topology and parallelism mode.
    • Defaults: MODELS="DeepSeek-V4-Pro MiniMax-M3-MXFP8 GLM-5.2-FP8 Kimi-K3", TOPOLOGIES="1P1D 2P2D", WIDE_EP_MODES="0 1" (0 = TP8, 1 = DP+EP). Each can be overridden.
    • It skips Kimi-K3 1P1D in DP+EP mode, which does not fit in GPU memory.
    • Each run clones lcskrishna/vllm at VLLM_BRANCH into its own folder and copies cluster_crs.sh into it, so a later run cannot change the scripts of jobs that are still running.
    • It writes the clone's commit, the image and the submitted job IDs to jobs.txt in the run folder.
    • It skips a model that is not in models.yaml or has no folder with a config.json under MODEL_ROOT, and exits on a malformed topology.
    • DRY_RUN=1 prints the sbatch lines without submitting. SERIAL=1 makes each job wait for the previous one, and AFTER=<job-id> makes the first job wait for an existing job.
  • scripts/vllm_dissag/rocm/cluster_crs.sh: cluster environment for these runs.
    • Kimi-K3 gets half the KV cache of the other models (32 GiB in TP8, 16 GiB in DP+EP), since its weights take about 190 GiB per GPU.
    • In DP+EP mode Kimi-K3 runs with --max-num-seqs 64. At 256, vLLM warmup fails num_cache_lines >= batch in its linear-attention layers.
  • docker/vllm_disagg_ufb_inference.ubuntu.amd.Dockerfile: UFB inference image.

Test plan

  • bash -n on both scripts.

  • test.sh with a stub sbatch:

    • every model, topology and mode combination is submitted, except Kimi-K3 1P1D in DP+EP mode;
    • a model without config.json, or not in models.yaml, is skipped;
    • a malformed topology exits 1;
    • DRY_RUN=1 submits nothing;
    • with no DOCKER it prints usage;
    • each run gets its own folder;
    • SERIAL=1 and AFTER chain the jobs with afterany.
  • On a Slurm cluster, run one job at a time:

    DOCKER=<image> MODELS="MiniMax-M3-MXFP8 GLM-5.2-FP8" SERIAL=1 bash test.sh
    DOCKER=<image> MODELS=DeepSeek-V4-Pro TOPOLOGIES=2P2D WIDE_EP_MODES=1 SERIAL=1 AFTER=<last-job-id> bash test.sh

    Each job's log ends with VERDICT: PASS or VERDICT: FAIL from the gsm8k accuracy check.

Results

  • bash -n and the stub sbatch checks pass.
  • Cluster runs on MI355X with vllm/vllm-openai-rocm@sha256:f049ae6061c2fbc180f441146daceea2ba1b980149eb8e887998412bd227b04e and lcskrishna/vllm at f8fa00d: all 14 jobs below passed the gsm8k check (5-shot, threshold 0.90).

Cluster runs

Model Topology WIDE_EP_MODE Parallelism per role gsm8k flexible-extract gsm8k strict-match
MiniMax-M3-MXFP8 1P1D 0 TP8 0.9014 0.8999
MiniMax-M3-MXFP8 1P1D 1 DP8 EP8 0.9083 0.9075
MiniMax-M3-MXFP8 2P2D 0 2 x TP8 0.9166 0.9128
MiniMax-M3-MXFP8 2P2D 1 DP16 EP16 0.9181 0.9189
GLM-5.2-FP8 1P1D 0 TP8 0.9439 0.9439
GLM-5.2-FP8 1P1D 1 DP8 EP8 0.9439 0.9447
GLM-5.2-FP8 2P2D 0 2 x TP8 0.9431 0.9424
GLM-5.2-FP8 2P2D 1 DP16 EP16 0.9447 0.9439
DeepSeek-V4-Pro 1P1D 0 TP8 0.9469 0.9462
DeepSeek-V4-Pro 1P1D 1 DP8 EP8 0.9515 0.9515
DeepSeek-V4-Pro 2P2D 1 DP16 EP16 0.9462 0.9462
Kimi-K3 1P1D 0 TP8 0.9598 0.9598
Kimi-K3 2P2D 0 2 x TP8 0.9636 0.9629
Kimi-K3 2P2D 1 DP16 EP16 0.9651 0.9651

@avininjamay8
avininjamay8 marked this pull request as draft November 24, 2026 10:01
@avininjamay8 avininjamay8 changed the title [ROCm enablement] vllm_dissag: add Crusoe P/D disaggregation launcher [ROCm enablement] vllm_dissag: add P/D disaggregation launcher for future ROCm releases Nov 25, 2026
Add scripts/vllm_dissag/rocm/test.sh, which submits one Slurm job per
model, topology and parallelism mode using the .buildkite/amd-disagg
scripts from lcskrishna/vllm (branch rocm-crusoe), with cluster_crs.sh
from the same folder.

Add cluster_crs.sh and the UFB inference Dockerfile used by these runs.
@avininjamay8

Copy link
Copy Markdown
Author

@lcskrishna please review

avininjamay8 added 2 commits November 30, 2026 13:54
Signed-off-by: avininjamay8 <avpaul@amd.com>
Signed-off-by: avininjamay8 <avpaul@amd.com>
@avininjamay8
avininjamay8 marked this pull request as ready for review December 1, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant