Skip to content

Slash Commands

vLLM Ascend supports slash commands in pull request comments to trigger CI workflows. See the Permission section for who can trigger each command.

Available Commands

/e2e

Run specific E2E tests under tests/e2e/pull_request/. Tests are automatically routed to the appropriate NPU runner based on the test path.

Examples:

# Run a single test on the default runner (a2 single card)
/e2e tests/e2e/pull_request/one_card/test_attention.py

# Run multiple tests across different runners
/e2e tests/e2e/pull_request/one_card/test_attention.py tests/e2e/pull_request/two_card/test_parallel.py

# Run tests on 310P
/e2e tests/e2e/pull_request/one_card/_310p/test_310p_ops.py

Routing rules (matched in order):

Test path contains Runner
four_card/_310p 310P 4-card
two_card/_310p 310P 2-card
one_card/_310p 310P single card
four_card A3 4-card
two_card A3 2-card
Others (e.g. one_card) A2 single card

Only test paths under tests/e2e/pull_request/ are supported. Tests in tests/e2e/nightly/, tests/e2e/models/, or tests/e2e/doctests/ are not accepted by /e2e. Use /nightly for nightly tests.

For doctests, run the Doc Test workflow manually in GitHub Actions, or let a relevant PR change trigger it automatically. See Run doctest for supported cases and local commands.

Tests are run against both the community vLLM version and the latest release.

/nightly

Trigger specific nightly test cases on A2 and A3. Supports only PR comments. Test case names correspond to the test_config.name entries defined in schedule_nightly_test_a2.yaml and schedule_nightly_test_a3.yaml.

Usage:

Syntax Scope
/nightly <test_cases> Runs on main branch
/nightly <test_cases> --branch <branch> Runs on the specified branch
/nightly <test_cases> --aop_enabled Enable AOP hooks (bisect / classify) on failure
/nightly <test_cases> --log-path <path> Upload a test file or directory as a downloadable artifact
/nightly <test_cases> --profile Capture profiling traces during selected YAML-driven AISBench performance benchmarks
/nightly <test_cases> --vllm-ref <ref> Install the given vllm commit / tag / branch instead of the image-baked vllm

Use --branch <name> to specify a target branch. Without --branch, all arguments are treated as test cases (separated by commas or spaces) and the branch defaults to main.

Use --vllm-ref <ref> to override the upstream vllm version. <ref> is a vllm commit SHA (full 40-char SHA recommended — GitHub cannot fetch abbreviated SHAs directly), a release tag (e.g. v0.29.0), or a branch name (e.g. main). The ref is fetched into the image's editable checkout at /vllm-workspace/vllm and reinstalled with VLLM_TARGET_DEVICE=empty (no kernel compilation), on single-node, multi-node, and accuracy test jobs alike; on multi-node it is installed in every pod. This applies to /weekly as well. Not specifying --vllm-ref keeps the vllm version baked into the nightly image, exactly as before.

Note: vllm derives its version from git tags at build time. A release tag installs the exact version (e.g. 0.29.0+empty), but a bare SHA or branch name carries no tag information, so the installed version falls back to 0.1.dev1+g<sha> — a warning is printed in the job log when this happens. Version-gated code paths in vllm-ascend may misbehave under such a fallback version, so prefer release tags for reliable results.

Note: vllm-ascend only tracks a specific vllm version per branch (see the vLLM version: line auto-maintained in the PR description). Passing an incompatible vllm ref may fail at install time or at the runtime version check; for a dev commit, set the VLLM_VERSION env var as described in the versioning policy if needed. Also note that with --aop_enabled, the bisect pipeline may re-switch vllm to the version expected by each bisected commit.

Use --aop_enabled to enable the AOP (Aspect-Oriented Programming) pipeline, which automatically captures test results, classifies failures (env vs. code), and triggers binary bisect for genuine failures. By default, AOP hooks are disabled.

Use --profile to collect Ascend PyTorch Profiler traces. Select benchmarks by their exact YAML keys and choose either a time offset or a successful-request completion threshold:

Option Default Meaning
--profile-benchmark-names <names> All performance benchmarks Comma-separated YAML benchmark keys to capture.
--profile-start-after <seconds> 60 Delay from the first formal request, after AISBench internal warmup.
--profile-start-after-requests <count> Disabled Start after this many successful formal requests complete. Mutually exclusive with --profile-start-after.
--profile-duration <seconds> 8 Requested capture duration.
--profile-output <mode> parsed Publish raw and parsed archives, or use raw for raw archives only.
--profile-with-stack Disabled Collect stack/module attribution with additional overhead.

The 60-second default applies when neither start option is specified. Profiling can reduce throughput and increase latency enough to fail performance baselines. Download the profile-artifact-<key> GitHub Artifact for manifests and archive links. See Profiling from PR Comments for capture-window selection, downloads, and troubleshooting.

Use --log-path <path> to collect a file or directory from node0 after the test, including when the test fails. Absolute paths refer to the test container; relative paths start at /vllm-workspace/vllm-ascend. For multi-node tests, pass a compact JSON map to select paths on each node: --log-path '{"node0":"logs/leader.txt","node1":"/tmp/test-logs"}'. To collect multiple paths from one node, repeat that node in a single mapping, for example --log-path '[{"node1":"logs/worker.txt"},{"node1":"/tmp/test-logs"}]'. The equivalent list of single-path entries is also supported: --log-path '[{"node1":"logs/worker.txt"},{"node1":"/tmp/test-logs"}]'. Multiple paths from one node are placed under path-1/, path-2/, etc. inside that node's archive. The JSON must not contain spaces. Each selected node produces a nodeN.tar.gz file in the workflow run's Artifacts section. Single-node tests upload the selected paths as download-artifact.tar.gz. Missing paths are reported in the workflow log. System and credential directories cannot be selected.

Nightly jobs can also upload paths without --log-path. Set a JSON array of files or directories in .github/workflows/configs/log_download_defaults.json, for example ["/root/ascend/log", "/tmp/test-logs"]. Every node checks the same paths and archives the ones that exist locally. Missing configured paths are skipped on that node. A --log-path request adds paths for that run and continues to use the requested node mapping.

Note: When commenting on a PR, the tests run on the PR branch automatically in the triggered workflow; the --branch flag is primarily used in issue comments.

Common test case names (A2):

test_custom_op, test_custom_op_multi_card, qwen3-vl-32b-instruct-w8a8, qwen3-32b-int8, MiniMax-M2.5-w8a8-QuaRot-A2, Qwen3.5-27B-w8a8-A2, Qwen3.5-397B-A17B-w4a8-mtp, accuracy-group

Common test case names (A3):

multi-node-deepseek-v3.2-W8A8-EP, mtpx-deepseek-r1-0528-w8a8, deepseek-r1-0528-w8a8, kimi-k2-thinking, qwen3-vl-235b-a22b-instruct-w8a8, custom-multi-ops, etc.

Examples:

# Run a single test case on main branch
/nightly qwen3-vl-32b-instruct-w8a8

# Run on a specific release branch
/nightly qwen3-vl-32b-instruct-w8a8 --branch releases/v0.24.0

# Run all tests on a specific branch
/nightly all --branch my-feature-branch

# Run multiple test cases (comma-separated)
/nightly test_custom_op,multi-node-deepseek-v3.2-W8A8-EP

# Run multiple test cases (space-separated, also works)
/nightly test_custom_op accuracy-group

# Run accuracy group tests (branch defaults to main)
/nightly accuracy-group

# Enable AOP bisect for all tests
/nightly all --aop_enabled

# Run specific test with AOP on a release branch
/nightly test_custom_op --branch releases/v0.24.0 --aop_enabled

# Profile the perf benchmark for eight seconds, starting after 60 seconds
/nightly DeepSeek-V4-Flash-W8A8-A3 --profile --profile-benchmark-names perf --profile-start-after 60 --profile-duration 8

# Start profiling after 100 successful formal requests instead
/nightly DeepSeek-V4-Flash-W8A8-A3 --profile --profile-benchmark-names perf --profile-start-after-requests 100 --profile-duration 8

# Download a directory from a single-node test
/nightly test_custom_op --log-path /tmp/test-logs

# Download a file relative to the test repository
/nightly test_custom_op --log-path logs/output.txt

# Download logs from the leader and a worker pod
/nightly multi-node-deepseek-v3.2-W8A8-EP --log-path '{"node0":"/tmp/test-logs","node1":"/tmp/test-logs"}'

# Download two files from the same worker pod
/nightly multi-node-deepseek-v3.2-W8A8-EP --log-path '[{"node1":"logs/worker.txt"},{"node1":"logs/metrics.txt"}]'

# Run against a specific vllm release tag
/nightly qwen3-vl-32b-instruct-w8a8 --vllm-ref v0.29.0

# Run against a specific vllm commit (full SHA) on a release branch
/nightly test_custom_op --branch releases/v0.24.0 --vllm-ref 84030bbe3d74d99bad477a3d2e37a973ccd8865c

This triggers workflow_dispatch on both schedule_nightly_test_a2.yaml and schedule_nightly_test_a3.yaml.

Note: These schedule_* workflows do not declare a GitHub Actions schedule: (cron) trigger; they are dispatched externally via workflow_dispatch. See CI workflow triggers and the schedule_ prefix.

/download

Download the models and datasets added by a PR to the CI model caches. Use it for PRs that change .github/workflows/misc/model_dataset_list.json: an NPU test cannot run a model that is not on the cluster disk yet, and the download itself is network bound, so it is delegated to the dedicated model-library pipeline instead of an NPU runner.

Usage:

Syntax Description
/download Download the models and datasets added by this PR

The command takes no arguments. It compares .github/workflows/misc/model_dataset_list.json at the PR head with main, flattens the models groups, and requests only the entries that main does not list yet. Requests are sent per cluster and only for clusters that receive something, so a PR adding a model to models.a2 produces a single request and does not touch a3 or a5. Datasets are not per cluster, so a new dataset is requested for every cluster. The pipeline is idempotent, so running the command again is cheap.

The clusters and the model_dataset_list.json groups they carry are a2 → models.a2; a3 (800T disk) → models.a3 + models.310p; a3-560t (560T disk used by the accuracy E2E tests) → models.a3 + models.310p; a5 → models.a5. The 310p tests mount the a3 volume, which is why models.310p travels with both a3 disks.

The requests are dispatched to ascend-gha-runners/sync-tools, which routes each one to the right cluster disks. The workflow itself runs on a CPU runner, so no Ascend runner is occupied, and no repository secret is needed on the PR branch — the command also works for PRs from forks. The run waits up to 3 hours for the dispatched downloads, then comments the per-cluster result with a link to the workflow run.

Adding the model-dataset-download label to a PR still triggers the same download. The command is only needed when that run cannot do the work, for example on a PR from a fork (the label-triggered run cannot read the repository secrets), or to retry after the list changed.

Manual download: run the model downloader workflow from the Actions UI (workflow_dispatch). Its inputs are models and datasets (org/name ids, comma or newline separated) and cluster (all, a2, a3, a3-560t or a5). Only the selected clusters are requested, and the items are taken verbatim instead of being diffed against main, which makes this the way to repair a cache whose ledger drifted from model_dataset_list.json.

Note: unlike most other commands, /download does not accept a PR author exception. Only users with triage+ permission can trigger it, because the request is forwarded into another repository's workflow.

/cherry-pick

Cherry-pick a PR's commits onto a specified target branch and create a new PR. This is useful for backporting fixes to release branches.

Usage:

Syntax Description
/cherry-pick <target_branch> Cherry-pick onto the specified branch

Examples:

# Cherry-pick to a release branch
/cherry-pick releases/v0.24.0

# Cherry-pick to main
/cherry-pick main

A new PR will be created with the title format [Cherry-pick] <original_title> (from #<PR_NUMBER>) and a body linking back to the original PR.

If the cherry-pick encounters merge conflicts, the command will report the failure and the cherry-pick must be done manually.

/revert

Revert a merged PR by creating a new PR that reverses its changes. The revert targets the same base branch the original PR was merged into.

Usage:

Syntax Description
/revert Revert this PR (no arguments needed)

Example:

/revert

A new PR will be created with the title format [Revert] Revert "original_title" (#PR_NUMBER) and a body linking back to the original PR and its merge commit.

Only merged PRs can be reverted. If the revert encounters merge conflicts (e.g. because the base branch has diverged significantly), the command will report the failure and the revert must be done manually.

/run

Run the full PR gate (pr_test.yaml) on the latest commit of this PR. Pushing new commits does not start CI on its own, so use /run when the PR is ready for a gate run.

Unlike /rerun, which only retries jobs that already failed inside an existing run, /run starts a fresh run against the current head commit. The test scope follows the labels the PR currently carries (ready-precise, ready-a5, main2main); without any of them only pre-commit and cpu-ut run, which is the same scope a push used to get.

/run only ever starts one gate run per commit. The verdict comes from the newest completed E2E run on the head commit:

  • If an E2E run for the head commit is already queued or in progress, /run is a no-op.
  • If that newest run passed, /run refuses to start another one — the commit is already verified, so push a new commit if the code changed.
  • If that newest run finished without passing, /run refuses as well and points to /rerun, which retries only the failed jobs on that same commit and is much cheaper than the full matrix. A cancelled run is not treated as a verdict on the code, so such a commit can still be tested with /run.

/run requests tests, so the CODEOWNERS approval gate is not evaluated in its runs; it is evaluated when reviews are submitted instead.

Examples:

# Run the PR gate on the latest commit
/run

/rerun

Re-run failed CI workflows on the current PR commit. Useful when CI jobs failed or were cancelled due to infrastructure issues.

Only jobs that did not complete successfully are re-run (failed, cancelled, timed out, or startup-failed). Jobs that already succeeded are left untouched. Runs with cancelled / timed_out / startup_failure conclusions are re-run per remaining job, and runs whose failure also contains cancelled jobs (e.g. a vLLM matrix leg cancelled by fail-fast) are handled the same way. Tests executed through reusable workflows (e.g. Selected Tests) are re-run via their caller job and are not duplicated.

Examples:

# Re-run failed / cancelled CI jobs on this PR
/rerun

/cancel

Force-cancel all workflow runs on the current PR commit. This cancels runs directly triggered on the PR head commit, such as the automatic E2E CI workflow (pr_test.yaml). Workflows triggered by slash commands (e.g., /e2e, /rerun, /download, /nightly) or downstream nightly/weekly workflows are not affected, as those run on the main branch.

Scope:

Cancelled Not cancelled
pr_test.yaml (E2E) — automatic PR CI /e2e command runs
schedule_doc_getting_started_test.yaml /rerun command runs
schedule_doc_linkcheck.yaml /nightly / /weekly command runs
schedule_image_build_and_push.yaml (if labeled) Downstream nightly/weekly test workflows
pr_download_command.yml /download command runs

Examples:

# Force-cancel all CI runs on this PR
/cancel

Note: This uses the force-cancel API endpoint, which can cancel runs even when they are in a pending or queued state waiting for runners.

/ai-review family

Trigger and manage the AI review agent on a pull request. An allowlisted maintainer starts review by applying ai-review; the PR author does not need to be allowlisted. See AI Code Review.

Command Effect
/ai-review explanation Request one review of the latest code, using the supplied explanation and existing findings
/ai-review-waive F003 reason or /ai-review-waive all reason Waive the selected open findings for the reviewed commit, update their inline annotations and recalculate the result without calling the model (maintainer only)
/ai-review-stop Stop review and remove the review labels; reapply ai-review to restart (maintainer only)

Use new top-level PR comments; inline replies do not trigger these commands. The bot appends feedback and the Actions link directly to your command comment. Rejections explain the reason there, including permissions and round limits. These messages do not count as review rounds. Review results update the bot's separate summary comment.

Behavior

The AI review family uses the feedback flow described above. Other commands use the general dispatcher flow:

  1. When you comment a slash command, a 👀 reaction is added to your comment to indicate it has been received.
  2. The corresponding CI workflow is triggered asynchronously.
  3. Upon completion, a 🎉 reaction and a summary comment are added.

Scope

Command PR comments Issue comments
/e2e ✅ ❌
/rerun ✅ ❌
/run ✅ ❌
/cancel ✅ ❌
/cherry-pick ✅ ❌
/revert ✅ ❌
/nightly ✅ ❌
/ai-review ✅ ❌
/ai-review-waive ✅ ❌
/ai-review-stop ✅ ❌
/download ✅ ❌

Permission

Command Who can trigger
/e2e PR author, or users with triage+ permission on the repository
/rerun PR author, or users with triage+ permission on the repository
/run PR author, or users with triage+ permission on the repository
/cancel PR author, or users with triage+ permission on the repository
/cherry-pick PR author, or users with triage+ permission on the repository
/revert PR author, or users with triage+ permission on the repository
/nightly Users with triage+ permission on the repository only
/download Users with triage+ permission on the repository only
/ai-review PR author or users with write permission, while ai-review is enabled
/ai-review-waive Users with write permission on the repository
/ai-review-stop Users with write permission on the repository

Permission is verified via the GitHub API (repos/{owner}/{repo}/collaborators/{user}/permission).