Repository navigation
docs: ATOMesh multimodal image requests and E/P/D disaggregation design #26245
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
| name: ATOM vLLM Test | |
| on: | |
| pull_request: | |
| branches: [main] # Triggers on PRs targeting `main` | |
| types: [opened, synchronize, reopened, ready_for_review, labeled, closed] | |
| # Do not use paths-ignore here. The required gate must be published for | |
| # every PR; ci-gate below scopes the expensive jobs by path instead. | |
| pull_request_review: | |
| types: [submitted] | |
| concurrency: | |
| # Non-approval reviews must not replace a pending approval run. Every label | |
| # event except the one that opens the gate -- adding ci:vllm, or ci:full to | |
| # a PR without ci:vllm (check_label_event in the gate script) -- gets its own | |
| # group too, so an unrelated label can never cancel running heavy CI. The | |
| # gate job's name repeats this test; keep both in sync with CI_GATE_LABELS. | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ github.event_name == 'pull_request_review' && github.event.review.state != 'approved' && format('-review-{0}', github.run_id) || '' }}${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && !(github.event.label.name == 'ci:vllm' || (github.event.label.name == 'ci:full' && !contains(github.event.pull_request.labels.*.name, 'ci:vllm'))) && format('-noop-{0}', github.run_id) || '' }} | |
| cancel-in-progress: ${{ github.event_name != 'pull_request_review' }} | |
| env: | |
| ATOM_BASE_NIGHTLY_IMAGE: rocm/atom-dev:latest | |
| ATOM_PYTHON_TAG: "cp312" | |
| GITHUB_REPO_URL: ${{ github.event.pull_request.head.repo.clone_url || 'https://github.com/ROCm/ATOM.git' }} | |
| GITHUB_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.event.head_commit.id || github.sha }} | |
| NIGHTLY_PLUGIN_IMAGE_TAG: rocm/atom-dev:vllm-latest | |
| jobs: | |
| ci-gate: | |
| name: Check Heavy CI Gate | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| pull-requests: read | |
| outputs: | |
| should_run: ${{ steps.gate.outputs.should_run }} | |
| reason: ${{ steps.gate.outputs.reason }} | |
| decidable: ${{ steps.gate.outputs.decidable }} | |
| steps: | |
| - name: Checkout ATOM repo | |
| uses: actions/checkout@v6 | |
| - name: Check approval and label gate | |
| id: gate | |
| env: | |
| CI_GATE_WORKFLOW: atom-vllm-test.yaml | |
| CI_GATE_LABELS: ci:full,ci:vllm | |
| # Approval alone does not start the vllm plugin CI: a PR runs it | |
| # when it changes the plugin, its CI or its image, or carries | |
| # ci:vllm / ci:full. Core-only changes are covered by the nightly. | |
| CI_GATE_PATHS_INCLUDE: | | |
| atom/plugin/** | |
| .github/workflows/atom-vllm-test.yaml | |
| .github/scripts/plugin_ci/** | |
| .github/scripts/atom_oot_test.sh | |
| .github/scripts/check_mtp_acceptance.sh | |
| .github/benchmark/oot_models_accuracy.json | |
| docker/atom_release.dockerfile | |
| docker/vllm_release.dockerfile | |
| docker/patches/** | |
| CI_GATE_PATHS_IGNORE: | | |
| **/*.md | |
| atom/plugin/sglang/** | |
| atom/plugin/rtpllm/** | |
| .github/scripts/plugin_ci/run_sglang_ci.sh | |
| .github/scripts/plugin_ci/sglang_slurm_job.sh | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: bash ./.github/scripts/check_heavy_ci_gate.sh | |
| check-signal: | |
| if: ${{ needs.ci-gate.outputs.should_run == 'true' }} | |
| needs: [ci-gate] | |
| name: Check Pre Checkin Signal | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| steps: | |
| - name: Checkout ATOM repo | |
| uses: actions/checkout@v6 | |
| - name: Wait for Pre Checkin workflow | |
| run: bash ./.github/scripts/check_signal.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_SHA: ${{ github.sha }} | |
| CHECK_SIGNAL_EVENT_NAME: pull_request | |
| CHECK_SIGNAL_HEAD_REF: ${{ github.event.pull_request.head.ref }} | |
| CHECK_SIGNAL_SHA: ${{ github.event.pull_request.head.sha }} | |
| download_aiter_wheel: | |
| if: ${{ needs.ci-gate.outputs.should_run == 'true' && needs.check-signal.result == 'success' }} | |
| needs: [ci-gate, check-signal] | |
| name: Download aiter wheel | |
| runs-on: ubuntu-latest | |
| outputs: | |
| aiter_artifact_id: ${{ steps.download.outputs.aiter_artifact_id }} | |
| aiter_wheel_name: ${{ steps.download.outputs.aiter_wheel_name }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Prefer latest main aiter wheel manifest and fallback to artifact | |
| id: download | |
| timeout-minutes: 30 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: bash .github/scripts/download_aiter_wheel.sh | |
| - name: Upload aiter wheel | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: aiter-whl | |
| path: aiter-whl/amd_aiter*.whl | |
| retention-days: 7 | |
| atom-vllm-oot: | |
| needs: [ci-gate, check-signal, download_aiter_wheel] | |
| if: ${{ needs.ci-gate.outputs.should_run == 'true' && needs.check-signal.result == 'success' && needs.download_aiter_wheel.result == 'success' }} | |
| name: Accuracy (${{ matrix.display_name }}) | |
| runs-on: ${{ matrix.runner }} | |
| timeout-minutes: 240 | |
| permissions: | |
| actions: read | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 2 | |
| matrix: | |
| include: | |
| - display_name: "DeepSeek-V4-Flash TP4" | |
| model_name: "DeepSeek-V4-Flash" | |
| model_path: "deepseek-ai/DeepSeek-V4-Flash" | |
| client_command: "lm_eval --model local-completions --model_args model=${MODEL_PATH},base_url=http://127.0.0.1:${VLLM_PORT}/v1/completions,num_concurrent=8,max_retries=1,tokenized_requests=False,trust_remote_code=True --tasks gsm8k --num_fewshot ${LM_EVAL_NUM_FEWSHOT} --output_path ${OUTPUT_PATH}" | |
| extra_args: "--tensor-parallel-size 4 --gpu-memory-utilization 0.9 --max-num-seqs 512 --tokenizer-mode deepseek_v4 --no-async-scheduling" | |
| # vLLM keeps DeepseekV4ForCausalLM on V1 on ROCm unless asked; | |
| # this cell runs it on Model Runner V2. | |
| env_vars: | | |
| AITER_BF16_FP8_MOE_BOUND=0 | |
| ATOM_MOE_GU_ITLV=1 | |
| VLLM_USE_V2_MODEL_RUNNER=1 | |
| lm_eval_num_fewshot: 20 | |
| accuracy_test_threshold: 0.93 | |
| runner: linux-atom-pitt-mi350x-8 | |
| - display_name: "MiniMax-M3-MXFP4 EAGLE3 TP4" | |
| model_name: "MiniMax-M3-MXFP4-EAGLE3" | |
| model_path: "amd/MiniMax-M3-MXFP4" | |
| draft_model_path: "Inferact/MiniMax-M3-EAGLE3-GQA" | |
| client_command: "lm_eval --model local-chat-completions --apply_chat_template --fewshot_as_multiturn --model_args model=${MODEL_PATH},base_url=http://127.0.0.1:${VLLM_PORT}/v1/chat/completions,num_concurrent=32,max_gen_toks=2048 --tasks gsm8k --num_fewshot 5 --batch_size 65 --output_path ${OUTPUT_PATH}" | |
| extra_args: "--tensor-parallel-size 4 --kv-cache-dtype fp8 --no-trust-remote-code --gpu-memory-utilization 0.85 --block-size 128 --max-model-len 32768 --max-num-seqs 128 --max-num-batched-tokens 32768 --no-enable_prefix_caching --no-async-scheduling --language-model-only --hf-overrides '{\"use_index_cache\": true, \"index_topk_freq\": 4}' --compilation-config '{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}' --speculative-config '{\"method\":\"eagle3\",\"model\":\"/models/Inferact/MiniMax-M3-EAGLE3-GQA\",\"num_speculative_tokens\":3}'" | |
| env_vars: "AITER_QUICK_REDUCE_QUANTIZATION=INT4" | |
| lm_eval_num_fewshot: 5 | |
| accuracy_test_threshold: 0.93 | |
| runner: linux-atom-pitt-mi350x-8 | |
| - display_name: "Kimi-K3 DSpark DCP8 TP8" | |
| model_name: "Kimi-K3-DSpark" | |
| model_path: "moonshotai/Kimi-K3" | |
| draft_model_path: "Inferact/Kimi-K3-DSpark" | |
| client_command: "lm_eval --model local-completions --model_args model=${MODEL_PATH},base_url=http://127.0.0.1:${VLLM_PORT}/v1/completions,num_concurrent=64,max_retries=3,tokenized_requests=False,trust_remote_code=True --tasks gsm8k --num_fewshot ${LM_EVAL_NUM_FEWSHOT} --output_path ${OUTPUT_PATH}" | |
| extra_args: "--trust-remote-code --language-model-only --tensor-parallel-size 8 --decode-context-parallel-size 8 --kv-cache-dtype fp8 --max-model-len 16384 --max-num-seqs 64 --max-num-batched-tokens 16384 --gpu-memory-utilization 0.91 --block-size 128 --enable-prefix-caching --mamba-cache-mode align --compilation-config '{\"cudagraph_mode\":\"FULL_AND_PIECEWISE\"}' --additional-config '{\"online_quant_config\":{\"global_quant_config\":\"ptpc_fp8\",\"exclude_layer\":[\"lm_head\",\"model.embed_tokens\",\"*self_attn.[qkv]_conv1d*\",\"*block_sparse_moe.experts*\",\"*block_sparse_moe.routed_expert_*\",\"*vision_tower*\",\"*mm_projector*\"]}}' --speculative-config '{\"method\":\"dspark\",\"model\":\"/models/Inferact/Kimi-K3-DSpark\",\"num_speculative_tokens\":7}'" | |
| lm_eval_num_fewshot: 5 | |
| accuracy_test_threshold: 0.94 | |
| runner: linux-atom-pitt-mi350x-8 | |
| - display_name: "DeepSeek-V4.1-Flash DSpark TP4" | |
| model_name: "DeepSeek-V4.1-Flash-DSpark" | |
| model_path: "deepseek-ai/DeepSeek-V4.1-Flash" | |
| # `--kv-cache-dtype auto`: the V4.1 runtime takes auto/bfloat16/ | |
| # nvfp4 and refuses fp8, which is what the harness would otherwise | |
| # supply. `--no-enable-prefix-caching` comes from the harness and | |
| # is also required here: a block-table hit restores the compressed | |
| # pages but not the per-request CSA2 state read alongside them. | |
| # DSpark is fixed at 5 draft tokens by the model's own config gate, | |
| # and the draft is the target checkpoint's `mtp.*` stages, so there | |
| # is no separate draft_model_path. | |
| extra_args: "--tensor-parallel-size 4 --tokenizer-mode deepseek_v4 --kv-cache-dtype auto --gpu-memory-utilization 0.9 --max-model-len 8192 --max-num-batched-tokens 8192 --max-num-seqs 64 --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":5,\"kv_cache_dtype\":\"fp8_ds_mla\"}'" | |
| env_vars: | | |
| VLLM_USE_BREAKABLE_CUDAGRAPH=1 | |
| ATOM_V41_EXPERIMENTAL_CUDAGRAPH=1 | |
| lm_eval_num_fewshot: 20 | |
| accuracy_test_threshold: 0.91 | |
| # The two full baseline runs measured 47.29% and 47.05% acceptance. | |
| # Use the lower rate minus 1.5 percentage points, rounded to 0.1 | |
| # as in #1557. Keep this in sync with oot_models_accuracy.json. | |
| mtp_accept_threshold: 0.456 | |
| # Per position, which the overall rate alone cannot see: a draft | |
| # that still lands its first token and nothing after it keeps a | |
| # respectable overall number. Measured 0.7785/0.6243/0.4299/ | |
| # 0.3214/0.2102 and 0.7898/0.6411/0.4248/0.3063/0.1906 over two | |
| # runs; these floors sit near 70% of that. | |
| mtp_per_pos_threshold: "0.55,0.40,0.25,0.18,0.10" | |
| runner: linux-atom-pitt-mi350x-8 | |
| - display_name: "GLM-5.3-Flash kpool MTP prefix-cache TP4" | |
| model_name: "GLM-5.3-Flash-kpool-MTP-PC" | |
| model_path: "zai-org/GLM-5.3-Flash" | |
| # Prefix caching and the checkpoint's MTP layer on the pooled | |
| # indexer. With MTP3 and fp8 KV, vLLM sets the attention block to | |
| # 2048 tokens and, for the draft, drops the last matched block, so | |
| # a prompt hits only past two blocks; 30-shot prompts run | |
| # 4167-6039 tokens. lm_eval draws each question's exemplars | |
| # separately, so nothing hits within one pass: the client runs | |
| # GSM8K twice on one server, gates the second pass, where every | |
| # request hits, and fails if the server counted no hit. | |
| client_command: >- | |
| bash -c "lm_eval --model local-chat-completions --apply_chat_template --fewshot_as_multiturn | |
| --model_args model=${MODEL_PATH},base_url=http://127.0.0.1:${VLLM_PORT}/v1/chat/completions,num_concurrent=32,max_retries=3,tokenized_requests=False,max_gen_toks=512 | |
| --tasks gsm8k --num_fewshot ${LM_EVAL_NUM_FEWSHOT} --batch_size 65 --output_path /tmp/glm53_flash_pc_warm | |
| && lm_eval --model local-chat-completions --apply_chat_template --fewshot_as_multiturn | |
| --model_args model=${MODEL_PATH},base_url=http://127.0.0.1:${VLLM_PORT}/v1/chat/completions,num_concurrent=32,max_retries=3,tokenized_requests=False,max_gen_toks=512 | |
| --tasks gsm8k --num_fewshot ${LM_EVAL_NUM_FEWSHOT} --batch_size 65 --output_path ${OUTPUT_PATH} | |
| && curl -fsS http://127.0.0.1:${VLLM_PORT}/metrics | grep '^vllm:prefix_cache_hits_total' | |
| | awk '{print; h += $2} END {exit !(h > 0)}'" | |
| extra_args: "--tensor-parallel-size 4 --max-model-len 8192 --max-num-batched-tokens 8192 --max-num-seqs 32 --gpu-memory-utilization 0.85 --enable-prefix-caching --speculative-config '{\"method\": \"mtp\", \"num_speculative_tokens\": 3}'" | |
| lm_eval_num_fewshot: 30 | |
| # Measured 0.9659 / 0.9682 flexible-extract over two runs of this | |
| # cell, each second pass hitting 2,701,312 cached tokens (one | |
| # block per request); 0.94 matches the native kpool gate. | |
| accuracy_test_threshold: 0.94 | |
| # Measured 0.827 / 0.828 overall, 0.951/0.842/0.689 and | |
| # 0.951/0.844/0.690 per position over the same two runs; these | |
| # floors sit near 70% of that. | |
| mtp_accept_threshold: 0.58 | |
| mtp_per_pos_threshold: "0.66,0.59,0.48" | |
| runner: linux-atom-pitt-mi350x-8 | |
| - display_name: "Qwen3.5-397B-A17B-MXFP4 TP4" | |
| model_name: "Qwen3.5-397B-A17B-MXFP4" | |
| model_path: "amd/Qwen3.5-397B-A17B-MXFP4" | |
| extra_args: "--tensor-parallel-size 4" | |
| env_vars: | | |
| ATOM_ENABLE_QK_NORM_ROPE_CACHE_QUANT_FUSION=1 | |
| ATOM_USE_CUSTOM_ALL_GATHER=0 | |
| ATOM_FP8_BLOCKSCALE_WEIGHT_PRESHUFFLE=0 | |
| lm_eval_num_fewshot: 3 | |
| accuracy_test_threshold: 0.83 | |
| runner: linux-atom-pitt-mi350x-8 | |
| env: | |
| AITER_ARTIFACT_ID: ${{ needs.download_aiter_wheel.outputs.aiter_artifact_id }} | |
| CONTAINER_NAME: plugin_ci_vllm_${{ github.run_id }}_${{ strategy.job-index }} | |
| RESULT_DIR: plugin-ci-results | |
| steps: | |
| - name: Checkout ATOM repo | |
| uses: actions/checkout@v6 | |
| - name: Download aiter wheel | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: aiter-whl | |
| path: aiter-whl | |
| - name: Build vLLM cell | |
| id: cell | |
| env: | |
| MATRIX_JSON: ${{ toJson(matrix) }} | |
| PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| SKIP_DOCKER_LOGIN: ${{ github.event.pull_request.head.repo.fork && '1' || '0' }} | |
| run: | | |
| set -euo pipefail | |
| python3 .github/scripts/plugin_ci/build_cell_json.py \ | |
| --plugin vllm \ | |
| --matrix-json "${MATRIX_JSON}" \ | |
| --github-output | |
| - name: Run vLLM accuracy job | |
| env: | |
| MATRIX_MODEL_NAME: ${{ matrix.model_name }} | |
| MATRIX_MODEL_PATH: ${{ matrix.model_path }} | |
| MATRIX_CLIENT_COMMAND: ${{ matrix.client_command }} | |
| MATRIX_EXTRA_ARGS: ${{ matrix.extra_args }} | |
| MATRIX_ENV_VARS: ${{ matrix.env_vars }} | |
| MATRIX_LM_EVAL_NUM_FEWSHOT: ${{ matrix.lm_eval_num_fewshot }} | |
| MATRIX_ACCURACY_TEST_THRESHOLD: ${{ matrix.accuracy_test_threshold }} | |
| MATRIX_MTP_ACCEPT_THRESHOLD: ${{ matrix.mtp_accept_threshold }} | |
| MATRIX_MTP_PER_POS_THRESHOLD: ${{ matrix.mtp_per_pos_threshold }} | |
| PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| SKIP_DOCKER_LOGIN: ${{ github.event.pull_request.head.repo.fork && '1' || '0' }} | |
| DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
| DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
| HF_TOKEN: ${{ secrets.AMD_HF_TOKEN }} | |
| run: | | |
| set -euo pipefail | |
| chmod +x .github/scripts/plugin_ci/run_vllm_ci.sh | |
| bash .github/scripts/plugin_ci/run_vllm_ci.sh | |
| - name: Add vLLM result to job summary | |
| if: always() | |
| env: | |
| CELL_JSON: ${{ steps.cell.outputs.cell_json }} | |
| run: | | |
| python3 - <<'PY' | |
| import json | |
| import os | |
| from pathlib import Path | |
| cell = json.loads(os.environ.get("CELL_JSON") or "{}") | |
| result_root = Path(os.environ["RESULT_DIR"]) | |
| outputs = list(result_root.rglob("oot_accuracy_output.txt")) | |
| with Path(os.environ["GITHUB_STEP_SUMMARY"]).open("a", encoding="utf-8") as summary: | |
| summary.write(f"## {cell.get('id', 'vLLM plugin CI')}\n\n") | |
| if outputs: | |
| text = outputs[0].read_text(encoding="utf-8", errors="replace") | |
| lines = text.splitlines() | |
| table = [] | |
| capture = False | |
| for line in lines: | |
| if "|Tasks|Version|" in line: | |
| capture = True | |
| if capture: | |
| if not line.strip() and table: | |
| break | |
| table.append(line) | |
| if table: | |
| summary.write("\n".join(table) + "\n") | |
| PY | |
| - name: Upload vLLM artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: oot-${{ matrix.model_name }}-artifacts | |
| path: plugin-ci-results/ | |
| if-no-files-found: ignore | |
| atom-vllm-test-gate: | |
| name: ${{ ((github.event_name != 'pull_request_review' && !(github.event.action == 'labeled' && !(github.event.label.name == 'ci:vllm' || (github.event.label.name == 'ci:full' && !contains(github.event.pull_request.labels.*.name, 'ci:vllm'))))) || needs.ci-gate.outputs.should_run == 'true') && 'ATOM vLLM Test Gate' || 'ATOM vLLM Test Gate not requested' }} | |
| if: always() | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| needs: | |
| - ci-gate | |
| - check-signal | |
| - download_aiter_wheel | |
| - atom-vllm-oot | |
| steps: | |
| - name: Checkout ATOM repo | |
| uses: actions/checkout@v6 | |
| - name: Evaluate ATOM vLLM test gate | |
| uses: ./.github/actions/evaluate-test-gate | |
| with: | |
| gate-name: ATOM vLLM Test Gate | |
| suite-name: ATOM vLLM tests | |
| should-run: ${{ needs.ci-gate.outputs.should_run }} | |
| decidable: ${{ needs.ci-gate.outputs.decidable }} | |
| reason: ${{ needs.ci-gate.outputs.reason }} | |
| ci-gate-result: ${{ needs.ci-gate.result }} | |
| required-results: | | |
| check-signal=${{ needs.check-signal.result }} | |
| download_aiter_wheel=${{ needs.download_aiter_wheel.result }} | |
| atom-vllm-oot=${{ needs.atom-vllm-oot.result }} |