Repository navigation
[Bugfix][Model Runner V2] Route dummy tokens to MoE experts during profiling - #57270
Merged
robertgshaw2-redhat merged 3 commits intoSep 17, 2026
Merged
robertgshaw2-redhat merged 3 commits into
robertgshaw2-redhat merged 3 commits into
Conversation
β¦ofiling MRv2 dummy batches mark every token as padding, so with VLLM_MOE_SKIP_PADDING=1 (the default) the MoE router sets all top-k ids to -1. Profile and warmup runs therefore never reached the experts, and MoE memory (workspace, all2all receive tensors, activations) was not counted when sizing the KV cache. Keep marking idle-DP dummy tokens as padding, but not for is_profile runs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Robert Shaw <robertgshaw2@gmail.com>
robertgshaw2-redhat
requested review from
WoosukKwon,
njhill and
yewentao256
as code owners
September 17, 2026 01:36
Collaborator
Author
|
/ci run |
|
β
Triggered Buildkite CI #89506 for commit |
Collaborator
Author
How much MoE memory is skipped at scale: GLM at EP16 / EP32 (estimates)These are per-rank estimates from the DeepGEMM workspace sizing. They were not measured on GLM. The same formula matches the Qwen3-30B-A3B DP2 run in the description: it predicts 896 MiB for the profiled routing, which is what was measured.
Method:
Takeaways:
|
Collaborator
Author
|
/ci retry |
|
β
Triggered Buildkite CI #89608 for commit |
3 of 4 tasks
vllm-agent
pushed a commit
to vllm-agent/vllm
that referenced
this pull request
Sep 23, 2026
β¦uring profiling (vllm-project#57270)" This reverts commit 861a299. The H100 Qwen3-30B-A3B-FP8-block Sync EPLB Accuracy lane has failed every daily/nightly since this merged (DeepEP CPU recv timeout during the flashinfer-autotune warmup dummy run at engine startup). The lane was block-gated on the PR's CI (#89506) β a documented selection leak. Reverting to green; the author can reland with the lane covered. Signed-off-by: kimi-no-na-wa <kimi-no-na-wa@users.noreply.github.com>
6 tasks done
Tflowers-0129
pushed a commit
to vllm-project/vllm-ascend
that referenced
this pull request
Sep 23, 2026
### What this PR does / why we need it?
#### Change Summary
The PR advances the main2main lane to vLLM v0.30.0 (commit
`ced6857afa0ea7b2e3f0846a62e1394e90f15607`), adapting vllm-ascend to
every upstream change in the `84030bbe` -> `4991f97` -> `ced6857` range.
Because both CI lanes now install vLLM v0.30.0, all
`vllm_version_is("0.29.0")` forks are permanently false and are
collapsed to the main behavior.
| Files | Upstream vLLM change | vllm-ascend adaptation |
|-------|---------------------|------------------------|
| `.github/vllm-main-verified.commit` | β | Updated verified main commit
hash `84030bbe` -> `4991f97` -> `ced6857` (v0.30.0 tag commit) |
| `.github/vllm-release-tag.commit` | β | Bumped the release boundary to
`v0.30.0` |
| `.github/workflows/pr_test.yaml` | β | Added a dual-version cpu-ut
matrix (`vllm_versions`) for the main2main lane; temporarily commented
out pre-commit/mypy and set `cpu-ut` to `if: false`; dropped the
`needs.cpu-ut` requirement from the ready gate; added a
main2main-specific cpu-ut failure hint |
| `Dockerfile` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.310p` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.310p.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a3` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a3.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a5` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a5.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `README.md` | β | CI notes updated to v0.30.0 |
| `README.zh.md` | β | CI notes updated to v0.30.0 |
|
`tests/e2e/nightly/single_node/ops/singlecard_ops/triton/test_num_nans.py`
| β | `VLLM_VERSION` default 0.29.0 -> 0.30.0 |
| `tests/ut/_310p/test_model_runner_v2_310p.py` | v0.30.0 boundary |
Dropped the `vllm_version_is` gate test; `_needs_kv_cache_zeroing_310p`
always uses `spec_config.use_eagle_block_drop()` |
| `tests/ut/core/test_dyntra_lb_scheduler.py` | β | Removed the 0.29
`KVConnectorBlockState.block_ids` assertions; assert the `req_ids` form
only |
| `tests/ut/core/test_scheduler_connector_block_state.py` | β | Removed
the 0.29 `block_ids` snapshot branch |
| `tests/ut/kv_offload/test_native_cpu_offload.py` | β | Block -> chunk
API: assert `spec.num_chunks` |
| `tests/ut/kv_offload/test_npu_offload_spec.py` | β |
`num_blocks`/`kv_bytes_per_block` -> `num_chunks`/`kv_bytes_per_chunk` |
| `tests/ut/models/test_deepseek_v41_registration.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skip; registration is always active |
| `tests/ut/patch/platform/test_patch_mamba_block_aligned_split.py` | β
| Removed the 0.29 gate for `mamba_fine_grained_prefix_cache` |
| `tests/ut/patch/platform/test_patch_speculative_config_dspark.py` |
[vllm#55914](vllm-project/vllm#55914) /
[vllm#56930](vllm-project/vllm#56930) | Removed
the DeepSeek V4.1 0.29 `pytest.skip` |
| `tests/ut/patch/platform/test_patch_use_v2_model_runner.py` |
[vllm#54523](vllm-project/vllm#54523) | Deleted
the 0.28.0 PCP+DP validator workaround tests; reworked the
version-routing fixtures |
| `tests/ut/patch/worker/test_patch_dspark_pp.py` | β | Parametrize
`legacy: bool` instead of version strings |
| `tests/ut/quantization/configs/test_modelslim_config.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skip |
| `tests/ut/spec_decode/test_dspark_proposer.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skip marker |
| `tests/ut/spec_decode/test_eagle_proposer.py` | β | `uses_xdrope_dim`
-> `mrope_num_dims` |
| `tests/ut/test_compressed_prefix_cache.py` | β | `replay_boundaries`
now unconditional |
| `tests/ut/worker/test_encoder_acl_graph.py` | β | `axis_keys=()` now
unconditional |
| `tests/ut/worker/test_model_runner_v1.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skips and the `vllm_version_is` patches |
| `tests/ut/worker/test_model_runner_v2.py` | v0.30.0 boundary |
Version-routing fixture rework |
| `tests/ut/worker/test_pcp_manager_v2.py` |
[vllm#56107](vllm-project/vllm#56107) /
[vllm#53867](vllm-project/vllm#53867) | Dropped
the 0.29 `req_states` coverage / added `padded_num_reqs` coverage;
removed the 0.28/0.29 branches |
| `tests/ut/worker/v2/test_pp_utils.py` | β | Replaced the
version-routing matrix with `use_legacy_spec_pp() is False` |
| `vllm_ascend/_310p/model_runner_310p.py` | β | Removed the 0.29
xdrope-position branch |
| `vllm_ascend/_310p/spec_decode/llm_base_proposer_310.py` | β | Removed
the 0.29 xdrope `target_positions[0]` squeeze |
| `vllm_ascend/_310p/worker/v2/model_runner.py` |
[vllm#57270](vllm-project/vllm#57270) | Removed
the 0.29 `max_seq_len_np` kwarg and the 0.29 eagle-block-drop branch |
| `vllm_ascend/_310p/worker/v2/rope.py` | β | mrope `num_dims =
model_config.mrope_num_dims` (dropped the 0.29 constant 3) |
| `vllm_ascend/_310p/worker/v2/states.py` |
[vllm#56908](vllm-project/vllm#56908) |
`UvaBuffer.uva` property -> method; final v0.30.0 form |
| `vllm_ascend/attention/mla_v1.py` |
[vllm#56181](vllm-project/vllm#56181) | Draft
TND_NTD layout forced via `_EXTRA_CTX.is_draft_model`; dropped the 0.29
gate |
| `vllm_ascend/attention/utils.py` |
[vllm#55353](vllm-project/vllm#55353) /
[vllm#56157](vllm-project/vllm#56157) |
Ascend-owned
`_seq_lens_cpu`/`_num_computed_tokens_cpu`/`dcp_local_seq_lens_cpu` are
now unconditional |
| `vllm_ascend/batch_invariant.py` | β | `reduce_sum` accepts
NumPy-style `axis` + `dtype`, rejects `dim`+`axis` together, forwards
`dtype` to the native fallback |
| `vllm_ascend/core/dyntra_lb_scheduler.py` | β |
`KVConnectorBlockState` always uses `req_ids`+`resolve_block_ids`
(dropped the 0.29 `block_ids` snapshot) |
| `vllm_ascend/core/kv_cache_interface.py` |
[vllm#53906](vllm-project/vllm#53906) | MLA
`get_storage_block_size` override unconditional; dropped the 0.29
`storage_block_size` property |
| `vllm_ascend/core/recompute_scheduler.py` | β | Dropped the xdrope
kwarg and the 0.29 `block_ids` snapshot |
| `vllm_ascend/core/scheduler_profiling_chunk.py` | β | Dropped the 0.29
`block_ids` snapshot |
| `vllm_ascend/distributed/kv_transfer/kv_pool/kv_offload/native/npu.py`
| β | Block -> chunk API (`num_chunks`, `kv_bytes_per_chunk`)
unconditional |
| `vllm_ascend/lora/punica_npu.py` |
[vllm#53555](vllm-project/vllm#53555) + boundary
| `add_lora_logits` per-adapter matmul fallback for heads smaller than
the rank; final state drops the `apply_lora_full_linear` binding (both
supported targets predate #53555) |
| `vllm_ascend/models/__init__.py` |
[vllm#56741](vllm-project/vllm#56741) | V4.1
registration (`DeepseekV41ForCausalLM`/`DSparkModel`) unconditional |
| `vllm_ascend/models/deepseek_v41/engram/embedding.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/engram/hash_state.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/engram/parallel.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/model.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/vl_model.py` |
[vllm#56741](vllm-project/vllm#56741) /
[vllm#56554](vllm-project/vllm#56554) |
`deepseek_v41` imports; drop `IMAGE_PAD_ID`/alignment-pad handling on
main |
| `vllm_ascend/ops/mla.py` |
[vllm#56157](vllm-project/vllm#56157) |
`MLAAttention.supports_pcp_dcp = True` set on the class, unconditional |
| `vllm_ascend/ops/rotary_embedding.py` |
[vllm#56446](vllm-project/vllm#56446) | YaRN
mscale signature adaptation; v0.29 branch collapsed |
| `vllm_ascend/patch/__init__.py` |
[vllm#55914](vllm-project/vllm#55914) /
[vllm#56930](vllm-project/vllm#56930) | Registry
entry for the new draft-EP patch; dropped version gates |
| `vllm_ascend/patch/platform/__init__.py` |
[vllm#56741](vllm-project/vllm#56741 Engram
| `patch_engram_config` imported unconditionally |
| `vllm_ascend/patch/platform/patch_balance_schedule.py` | β | Dropped
the 0.29 `block_ids` snapshot |
| `vllm_ascend/patch/platform/patch_kv_cache_coordinator.py` |
[vllm#54736](vllm-project/vllm#54736) + boundary
| Accept/forward `allow_partial_hash_hits`; collapsed the 0.29 gate |
| `vllm_ascend/patch/platform/patch_parallel_config.py` |
[vllm#54523](vllm-project/vllm#54523) | Removed
the 0.29 `_validate_parallel_config` PCP+DP workaround; keeps
`use_sequence_parallel_moe` |
| `vllm_ascend/patch/platform/patch_speculative_config.py` |
[vllm#55914](vllm-project/vllm#55914) without
[vllm#56930](vllm-project/vllm#56930) | Skip
`_verify_with_expert_parallelism` for non-MoE draft
(`runner_type=="draft"`) |
| `vllm_ascend/patch/platform/patch_use_v2_model_runner.py` |
[vllm#54523](vllm-project/vllm#54523) | Removed
the 0.28.0 PCP+DP validation workaround |
| `vllm_ascend/patch/worker/patch_bind_kv_cache.py` |
[vllm#53781](vllm-project/vllm#53781) | Ascend
`bind_kv_cache_to_layers` (assign the raw allocation); collapsed the
0.29 gate |
| `vllm_ascend/patch/worker/patch_deepseek_v2.py` |
[vllm#53781](vllm-project/vllm#53781) |
Accept/ignore `index_group_builder`; `SparseMLAIndexGroupBuilder` import
collapse |
| `vllm_ascend/patch/worker/patch_mamba_utils.py` |
[vllm#56898](vllm-project/vllm#56898) |
`GPUInputBatch` import source version-gated, then collapsed to
`gpu_input_batch.InputBatch` |
| `vllm_ascend/patch/worker/patch_v2/patch_attn_utils.py` |
[vllm#53781](vllm-project/vllm#53781) | Register
Ascend `bind_kv_cache_to_layers`; expose tuple element 0 for the device
filter; collapsed the 0.29 gate |
| `vllm_ascend/patch/worker/patch_v2/patch_dspark.py` | β | Legacy
Spec+PP bypass comment (inactive on v0.30.0) |
| `vllm_ascend/patch/worker/patch_v2/patch_spec_pp.py` |
[vllm#56888](vllm-project/vllm#56888) | Alias
`async_tensor_h2d as async_copy_to_gpu`; collapsed the 0.29 gate |
| `vllm_ascend/patch/worker/patch_v2/patch_uva.py` |
[vllm#56908](vllm-project/vllm#56908) | `uva`
property vs method; final v0.30.0 method form |
| `vllm_ascend/spec_decode/llm_base_proposer.py` |
[vllm#56254](vllm-project/vllm#56254) +
[vllm#55914](vllm-project/vllm#55914) /
[vllm#56930](vllm-project/vllm#56930) + boundary
| Gate the V4.1 DSpark import by `HAS_TRITON`; static
`_draft_embed_accepts_mm` check instead of the runtime `embed_input_ids`
probe; collapsed version gates |
| `vllm_ascend/utils.py` | β | `vllm_version_is` docstring 0.29 -> 0.30;
Kimi MLA custom-op registration unconditional |
| `vllm_ascend/worker/model_runner_v1.py` |
[vllm#56741](vllm-project/vllm#56741) | V4.1 dsa
metadata/cache imports unconditional; removed xdrope position handling |
| `vllm_ascend/worker/v2/aclgraph_utils.py` |
[vllm#51700](vllm-project/vllm#51700) |
`ModelAclGraphManager.__init__` accepts/forwards `ubatch_runner`;
`UBatchRunner` import collapse |
| `vllm_ascend/worker/v2/model_runner.py` |
[vllm#56888](vllm-project/vllm#56888) /
[vllm#53867](vllm-project/vllm#53867) /
[vllm#51700](vllm-project/vllm#51700) /
[vllm#57270](vllm-project/vllm#57270) +
[vllm#56181](vllm-project/vllm#56181) + boundary
| Async-copy alias; pass `BatchExecutionDescriptor` to
`maybe_partition_pcp_batch`; `ubatch_runner`; `make_dummy(is_padding)`;
keep the replicated PCP draft on the global batch; collapsed version
gates. Also restores the `_check_oproj_tp_graph_step` guard and the PD
decode-recompute `gather_batch_req_state` override accidentally removed
by the v0.28.0-boundary cleanup (`e30adae80`) |
| `vllm_ascend/worker/v2/pcp_manager.py` |
[vllm#56888](vllm-project/vllm#56888) /
[vllm#56107](vllm-project/vllm#56107) /
[vllm#53867](vllm-project/vllm#53867) +
[vllm#56181](vllm-project/vllm#56181) + boundary
| Async alias; drop `req_states`; forward `padded_num_reqs`;
`prepare_draft_prefill` no-op / `restore_for_sampling` skip; collapsed
version gates |
| `vllm_ascend/worker/v2/pp_utils.py` | β | `use_legacy_spec_pp()`
returns `False` |
| `vllm_ascend/worker/v2/spec_decode/autoregressive/speculator.py` |
[vllm#56181](vllm-project/vllm#56181) | Route
through `_build_uniform_attn_metadata`/`_build_attn_metadata`; re-hook
the Ascend rotary-positions injection onto the new methods; dropped the
0.29 gate |
| `vllm_ascend/worker/v2/spec_decode/dflash/speculator.py` |
[vllm#56181](vllm-project/vllm#56181) | Same
`BatchExecutionDescriptor` routing; dropped the 0.29 gate |
| `vllm_ascend/worker/v2/spec_decode/dspark/speculator.py` |
[vllm#56181](vllm-project/vllm#56181) | Same
routing; dropped the 0.29 gate |
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
- vLLM main:
vllm-project/vllm@84030bb
---------
Signed-off-by: hfadzxy <starmoon_zhang@163.com>
Co-authored-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
qianlingfeng1
pushed a commit
to qianlingfeng1/vllm-ascend
that referenced
this pull request
Sep 27, 2026
### What this PR does / why we need it?
#### Change Summary
The PR advances the main2main lane to vLLM v0.30.0 (commit
`ced6857afa0ea7b2e3f0846a62e1394e90f15607`), adapting vllm-ascend to
every upstream change in the `84030bbe` -> `4991f97` -> `ced6857` range.
Because both CI lanes now install vLLM v0.30.0, all
`vllm_version_is("0.29.0")` forks are permanently false and are
collapsed to the main behavior.
| Files | Upstream vLLM change | vllm-ascend adaptation |
|-------|---------------------|------------------------|
| `.github/vllm-main-verified.commit` | β | Updated verified main commit
hash `84030bbe` -> `4991f97` -> `ced6857` (v0.30.0 tag commit) |
| `.github/vllm-release-tag.commit` | β | Bumped the release boundary to
`v0.30.0` |
| `.github/workflows/pr_test.yaml` | β | Added a dual-version cpu-ut
matrix (`vllm_versions`) for the main2main lane; temporarily commented
out pre-commit/mypy and set `cpu-ut` to `if: false`; dropped the
`needs.cpu-ut` requirement from the ready gate; added a
main2main-specific cpu-ut failure hint |
| `Dockerfile` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.310p` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.310p.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a3` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a3.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a5` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.a5.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `Dockerfile.openEuler` | β | `VLLM_TAG` default -> `v0.30.0` |
| `README.md` | β | CI notes updated to v0.30.0 |
| `README.zh.md` | β | CI notes updated to v0.30.0 |
|
`tests/e2e/nightly/single_node/ops/singlecard_ops/triton/test_num_nans.py`
| β | `VLLM_VERSION` default 0.29.0 -> 0.30.0 |
| `tests/ut/_310p/test_model_runner_v2_310p.py` | v0.30.0 boundary |
Dropped the `vllm_version_is` gate test; `_needs_kv_cache_zeroing_310p`
always uses `spec_config.use_eagle_block_drop()` |
| `tests/ut/core/test_dyntra_lb_scheduler.py` | β | Removed the 0.29
`KVConnectorBlockState.block_ids` assertions; assert the `req_ids` form
only |
| `tests/ut/core/test_scheduler_connector_block_state.py` | β | Removed
the 0.29 `block_ids` snapshot branch |
| `tests/ut/kv_offload/test_native_cpu_offload.py` | β | Block -> chunk
API: assert `spec.num_chunks` |
| `tests/ut/kv_offload/test_npu_offload_spec.py` | β |
`num_blocks`/`kv_bytes_per_block` -> `num_chunks`/`kv_bytes_per_chunk` |
| `tests/ut/models/test_deepseek_v41_registration.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skip; registration is always active |
| `tests/ut/patch/platform/test_patch_mamba_block_aligned_split.py` | β
| Removed the 0.29 gate for `mamba_fine_grained_prefix_cache` |
| `tests/ut/patch/platform/test_patch_speculative_config_dspark.py` |
[vllm#55914](vllm-project/vllm#55914) /
[vllm#56930](vllm-project/vllm#56930) | Removed
the DeepSeek V4.1 0.29 `pytest.skip` |
| `tests/ut/patch/platform/test_patch_use_v2_model_runner.py` |
[vllm#54523](vllm-project/vllm#54523) | Deleted
the 0.28.0 PCP+DP validator workaround tests; reworked the
version-routing fixtures |
| `tests/ut/patch/worker/test_patch_dspark_pp.py` | β | Parametrize
`legacy: bool` instead of version strings |
| `tests/ut/quantization/configs/test_modelslim_config.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skip |
| `tests/ut/spec_decode/test_dspark_proposer.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skip marker |
| `tests/ut/spec_decode/test_eagle_proposer.py` | β | `uses_xdrope_dim`
-> `mrope_num_dims` |
| `tests/ut/test_compressed_prefix_cache.py` | β | `replay_boundaries`
now unconditional |
| `tests/ut/worker/test_encoder_acl_graph.py` | β | `axis_keys=()` now
unconditional |
| `tests/ut/worker/test_model_runner_v1.py` |
[vllm#56741](vllm-project/vllm#56741) | Removed
the V4.1 0.29 skips and the `vllm_version_is` patches |
| `tests/ut/worker/test_model_runner_v2.py` | v0.30.0 boundary |
Version-routing fixture rework |
| `tests/ut/worker/test_pcp_manager_v2.py` |
[vllm#56107](vllm-project/vllm#56107) /
[vllm#53867](vllm-project/vllm#53867) | Dropped
the 0.29 `req_states` coverage / added `padded_num_reqs` coverage;
removed the 0.28/0.29 branches |
| `tests/ut/worker/v2/test_pp_utils.py` | β | Replaced the
version-routing matrix with `use_legacy_spec_pp() is False` |
| `vllm_ascend/_310p/model_runner_310p.py` | β | Removed the 0.29
xdrope-position branch |
| `vllm_ascend/_310p/spec_decode/llm_base_proposer_310.py` | β | Removed
the 0.29 xdrope `target_positions[0]` squeeze |
| `vllm_ascend/_310p/worker/v2/model_runner.py` |
[vllm#57270](vllm-project/vllm#57270) | Removed
the 0.29 `max_seq_len_np` kwarg and the 0.29 eagle-block-drop branch |
| `vllm_ascend/_310p/worker/v2/rope.py` | β | mrope `num_dims =
model_config.mrope_num_dims` (dropped the 0.29 constant 3) |
| `vllm_ascend/_310p/worker/v2/states.py` |
[vllm#56908](vllm-project/vllm#56908) |
`UvaBuffer.uva` property -> method; final v0.30.0 form |
| `vllm_ascend/attention/mla_v1.py` |
[vllm#56181](vllm-project/vllm#56181) | Draft
TND_NTD layout forced via `_EXTRA_CTX.is_draft_model`; dropped the 0.29
gate |
| `vllm_ascend/attention/utils.py` |
[vllm#55353](vllm-project/vllm#55353) /
[vllm#56157](vllm-project/vllm#56157) |
Ascend-owned
`_seq_lens_cpu`/`_num_computed_tokens_cpu`/`dcp_local_seq_lens_cpu` are
now unconditional |
| `vllm_ascend/batch_invariant.py` | β | `reduce_sum` accepts
NumPy-style `axis` + `dtype`, rejects `dim`+`axis` together, forwards
`dtype` to the native fallback |
| `vllm_ascend/core/dyntra_lb_scheduler.py` | β |
`KVConnectorBlockState` always uses `req_ids`+`resolve_block_ids`
(dropped the 0.29 `block_ids` snapshot) |
| `vllm_ascend/core/kv_cache_interface.py` |
[vllm#53906](vllm-project/vllm#53906) | MLA
`get_storage_block_size` override unconditional; dropped the 0.29
`storage_block_size` property |
| `vllm_ascend/core/recompute_scheduler.py` | β | Dropped the xdrope
kwarg and the 0.29 `block_ids` snapshot |
| `vllm_ascend/core/scheduler_profiling_chunk.py` | β | Dropped the 0.29
`block_ids` snapshot |
| `vllm_ascend/distributed/kv_transfer/kv_pool/kv_offload/native/npu.py`
| β | Block -> chunk API (`num_chunks`, `kv_bytes_per_chunk`)
unconditional |
| `vllm_ascend/lora/punica_npu.py` |
[vllm#53555](vllm-project/vllm#53555) + boundary
| `add_lora_logits` per-adapter matmul fallback for heads smaller than
the rank; final state drops the `apply_lora_full_linear` binding (both
supported targets predate #53555) |
| `vllm_ascend/models/__init__.py` |
[vllm#56741](vllm-project/vllm#56741) | V4.1
registration (`DeepseekV41ForCausalLM`/`DSparkModel`) unconditional |
| `vllm_ascend/models/deepseek_v41/engram/embedding.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/engram/hash_state.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/engram/parallel.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/model.py` |
[vllm#56741](vllm-project/vllm#56741) |
`deepseek_v4_1` -> `deepseek_v41` import unconditional |
| `vllm_ascend/models/deepseek_v41/vl_model.py` |
[vllm#56741](vllm-project/vllm#56741) /
[vllm#56554](vllm-project/vllm#56554) |
`deepseek_v41` imports; drop `IMAGE_PAD_ID`/alignment-pad handling on
main |
| `vllm_ascend/ops/mla.py` |
[vllm#56157](vllm-project/vllm#56157) |
`MLAAttention.supports_pcp_dcp = True` set on the class, unconditional |
| `vllm_ascend/ops/rotary_embedding.py` |
[vllm#56446](vllm-project/vllm#56446) | YaRN
mscale signature adaptation; v0.29 branch collapsed |
| `vllm_ascend/patch/__init__.py` |
[vllm#55914](vllm-project/vllm#55914) /
[vllm#56930](vllm-project/vllm#56930) | Registry
entry for the new draft-EP patch; dropped version gates |
| `vllm_ascend/patch/platform/__init__.py` |
[vllm#56741](vllm-project/vllm#56741 Engram
| `patch_engram_config` imported unconditionally |
| `vllm_ascend/patch/platform/patch_balance_schedule.py` | β | Dropped
the 0.29 `block_ids` snapshot |
| `vllm_ascend/patch/platform/patch_kv_cache_coordinator.py` |
[vllm#54736](vllm-project/vllm#54736) + boundary
| Accept/forward `allow_partial_hash_hits`; collapsed the 0.29 gate |
| `vllm_ascend/patch/platform/patch_parallel_config.py` |
[vllm#54523](vllm-project/vllm#54523) | Removed
the 0.29 `_validate_parallel_config` PCP+DP workaround; keeps
`use_sequence_parallel_moe` |
| `vllm_ascend/patch/platform/patch_speculative_config.py` |
[vllm#55914](vllm-project/vllm#55914) without
[vllm#56930](vllm-project/vllm#56930) | Skip
`_verify_with_expert_parallelism` for non-MoE draft
(`runner_type=="draft"`) |
| `vllm_ascend/patch/platform/patch_use_v2_model_runner.py` |
[vllm#54523](vllm-project/vllm#54523) | Removed
the 0.28.0 PCP+DP validation workaround |
| `vllm_ascend/patch/worker/patch_bind_kv_cache.py` |
[vllm#53781](vllm-project/vllm#53781) | Ascend
`bind_kv_cache_to_layers` (assign the raw allocation); collapsed the
0.29 gate |
| `vllm_ascend/patch/worker/patch_deepseek_v2.py` |
[vllm#53781](vllm-project/vllm#53781) |
Accept/ignore `index_group_builder`; `SparseMLAIndexGroupBuilder` import
collapse |
| `vllm_ascend/patch/worker/patch_mamba_utils.py` |
[vllm#56898](vllm-project/vllm#56898) |
`GPUInputBatch` import source version-gated, then collapsed to
`gpu_input_batch.InputBatch` |
| `vllm_ascend/patch/worker/patch_v2/patch_attn_utils.py` |
[vllm#53781](vllm-project/vllm#53781) | Register
Ascend `bind_kv_cache_to_layers`; expose tuple element 0 for the device
filter; collapsed the 0.29 gate |
| `vllm_ascend/patch/worker/patch_v2/patch_dspark.py` | β | Legacy
Spec+PP bypass comment (inactive on v0.30.0) |
| `vllm_ascend/patch/worker/patch_v2/patch_spec_pp.py` |
[vllm#56888](vllm-project/vllm#56888) | Alias
`async_tensor_h2d as async_copy_to_gpu`; collapsed the 0.29 gate |
| `vllm_ascend/patch/worker/patch_v2/patch_uva.py` |
[vllm#56908](vllm-project/vllm#56908) | `uva`
property vs method; final v0.30.0 method form |
| `vllm_ascend/spec_decode/llm_base_proposer.py` |
[vllm#56254](vllm-project/vllm#56254) +
[vllm#55914](vllm-project/vllm#55914) /
[vllm#56930](vllm-project/vllm#56930) + boundary
| Gate the V4.1 DSpark import by `HAS_TRITON`; static
`_draft_embed_accepts_mm` check instead of the runtime `embed_input_ids`
probe; collapsed version gates |
| `vllm_ascend/utils.py` | β | `vllm_version_is` docstring 0.29 -> 0.30;
Kimi MLA custom-op registration unconditional |
| `vllm_ascend/worker/model_runner_v1.py` |
[vllm#56741](vllm-project/vllm#56741) | V4.1 dsa
metadata/cache imports unconditional; removed xdrope position handling |
| `vllm_ascend/worker/v2/aclgraph_utils.py` |
[vllm#51700](vllm-project/vllm#51700) |
`ModelAclGraphManager.__init__` accepts/forwards `ubatch_runner`;
`UBatchRunner` import collapse |
| `vllm_ascend/worker/v2/model_runner.py` |
[vllm#56888](vllm-project/vllm#56888) /
[vllm#53867](vllm-project/vllm#53867) /
[vllm#51700](vllm-project/vllm#51700) /
[vllm#57270](vllm-project/vllm#57270) +
[vllm#56181](vllm-project/vllm#56181) + boundary
| Async-copy alias; pass `BatchExecutionDescriptor` to
`maybe_partition_pcp_batch`; `ubatch_runner`; `make_dummy(is_padding)`;
keep the replicated PCP draft on the global batch; collapsed version
gates. Also restores the `_check_oproj_tp_graph_step` guard and the PD
decode-recompute `gather_batch_req_state` override accidentally removed
by the v0.28.0-boundary cleanup (`e30adae80`) |
| `vllm_ascend/worker/v2/pcp_manager.py` |
[vllm#56888](vllm-project/vllm#56888) /
[vllm#56107](vllm-project/vllm#56107) /
[vllm#53867](vllm-project/vllm#53867) +
[vllm#56181](vllm-project/vllm#56181) + boundary
| Async alias; drop `req_states`; forward `padded_num_reqs`;
`prepare_draft_prefill` no-op / `restore_for_sampling` skip; collapsed
version gates |
| `vllm_ascend/worker/v2/pp_utils.py` | β | `use_legacy_spec_pp()`
returns `False` |
| `vllm_ascend/worker/v2/spec_decode/autoregressive/speculator.py` |
[vllm#56181](vllm-project/vllm#56181) | Route
through `_build_uniform_attn_metadata`/`_build_attn_metadata`; re-hook
the Ascend rotary-positions injection onto the new methods; dropped the
0.29 gate |
| `vllm_ascend/worker/v2/spec_decode/dflash/speculator.py` |
[vllm#56181](vllm-project/vllm#56181) | Same
`BatchExecutionDescriptor` routing; dropped the 0.29 gate |
| `vllm_ascend/worker/v2/spec_decode/dspark/speculator.py` |
[vllm#56181](vllm-project/vllm#56181) | Same
routing; dropped the 0.29 gate |
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
- vLLM main:
vllm-project/vllm@84030bb
---------
Signed-off-by: hfadzxy <starmoon_zhang@163.com>
Co-authored-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
linfeng-yuan
pushed a commit
to vllm-project/vllm-ascend
that referenced
this pull request
Oct 12, 2026
### What this PR does / why we need it?
The PR advances the main2main lane from vLLM v0.30.0 (tag commit
`ced6857afa0ea7b2e3f0846a62e1394e90f15607`) to vLLM main
`8cc9aa5ad350f6f80cf3bebb298d410803ff75a9` (installed as `0.30.0.dev`),
adapting vllm-ascend to every upstream change landed after the v0.30.0
release tag. The v0.30.0 lane stays supported: each upstream divergence
is selected with `vllm_version_is("0.30.0")`, so the release keeps the
legacy API and main takes the new one.
| Files | Upstream vLLM change (why it breaks vllm-ascend) | vllm-ascend
adaptation |
|-------|--------------------------------------------------|------------------------|
| `.github/vllm-main-verified.commit` | β (main-lane pin only) |
Verified main commit bumped `ced6857` (v0.30.0) -> `8cc9aa5` |
| `hidden_out` | β (stray artifact) | Accidental empty file created by a
shell redirect in `fe6d042a0`; no functional content (should be removed)
|
| `tests/e2e/pull_request/four_card/test_kimi_k3.py` |
[vllm#54222](vllm-project/vllm#54222) makes the
decode worker report the prefill worker's prefix-cache hits via
`kv_transfer_params["remote_prefill_cached_tokens"]` instead of its own
~100% transferred-KV hit rate, so the existing `cached_tokens > 0`
assertion fails on a fresh 129-token prompt | On main assert the P-side
hit count propagates to the decode output; keep `cached_tokens > 0` only
on v0.30.0 |
| `tests/e2e/pull_request/one_card/test_model_runner_v1_with_device.py`
| [vllm#45635](vllm-project/vllm#45635) moved
`enable_return_routed_experts` from `ModelConfig` to
`VllmConfig.aux_output_config`;
`test_stateful_handoff_preserves_decode_graph` mocks only
`model_config`, so `_sync_metadata_across_dp` raises for the dp_size=4
cases | Add `aux_output_config` to the mock `VllmConfig` on main |
| `tests/e2e/pull_request/one_card/test_thinking_budget.py` |
[vllm#56497](vllm-project/vllm#56497) changed
`ThinkingBudgetState.apply` from six positional args to `(logits, ctx:
LogitsContext)`, so the helper fails with a signature/TypeError | Build
`LogitsContext` and call `apply(logits, ctx)` on main; keep the six-arg
call on v0.30.0 |
| `tests/e2e/pull_request/two_card/spec_decode/test_spec_decode.py` |
[vllm#57934](vllm-project/vllm#57934) added a
`VllmConfig` validation rejecting DFlash candidate-head drafts
(`DFlash2DraftModel`/`LiLiCorrDraftModel`) under Model Runner V1;
`test_dflash2_acceptance` runs the V1 path, so config creation fails |
Skip the V1 variant on main (V2 covered by
`test_dflash2_v2_acceptance`); v0.30.0 still runs it |
| `tests/ut/_310p/test_model_runner_v2_310p.py` |
[vllm#56456](vllm-project/vllm#56456) added the
trailing `num_active_loras` to `prepare_inputs`;
[vllm#56497](vllm-project/vllm#56497) dropped
`prompt_len` from `Sampler.add_request` | Version-aware `_add_request`
helper (no `prompt_len` on main) and `prepare_inputs` args
(`num_active_loras` on main) |
| `tests/ut/attention/test_mla_cp.py` | vLLM main resolves the DCP group
through `get_dcp_world_size_and_rank` and computes LSE capability inside
`__new__`, so patching `get_dcp_group` no longer intercepts it | Patch
`get_dcp_world_size_and_rank` on main; keep `get_dcp_group` on v0.30.0 |
| `tests/ut/core/test_recompute_scheduler_short_request_first.py` | vLLM
main reads `ModelConfig.runner_type` in `supports_multimodal_inputs`,
but the patched `__post_init__` no longer initializes it | Set
`model_config.runner_type = "generate"` |
| `tests/ut/distributed/eplb/test_state.py` | vLLM main renamed
`EplbState.cuda_device_index` to `device_index` and `add_model` passes
`device_index=...`, so the old attribute is never set | Assert
`cuda_device_index` on v0.30.0 / `device_index` on main |
|
`tests/ut/distributed/kv_transfer/sparse_kv_offload/test_sparse_kv_offload_manager.py`
| [vllm#56723](vllm-project/vllm#56723) made
`UniformTypeKVCacheSpecs` read `dcp_sharded` from each member spec | Add
`dcp_sharded = False` to `_FakeKVCacheSpec` |
| `tests/ut/kv_offload/test_mooncake_layerwise_connector.py` | Same
[vllm#56723](vllm-project/vllm#56723) per-spec
`dcp_sharded` read | Add `dcp_sharded=False` to the
`UniformTypeKVCacheSpecs` member spec |
| `tests/ut/kv_offload/test_preempt_offload_connector.py` | vLLM main
tracks prefix-replay bookkeeping on the scheduler
(`prefix_replay_tokens`, `request.num_tokens`), which the mock scheduler
does not provide | Initialize `scheduler.prefix_replay_tokens` (and
`request.num_tokens`) on main |
| `tests/ut/models/test_deepseek_v41_release_config.py` |
[vllm#56554](vllm-project/vllm#56554) moved the
mm-prefix decision to the model-arch config converter, so the flattened
released config no longer carries
`is_mm_prefix_lm`/`mm_prefix_clamp_sliding_window` | Version-gate those
assertions (present on v0.30.0, absent on main) and normalize the config
|
| `tests/ut/models/test_kimi_k3_adapter.py` |
[vllm#50592](vllm-project/vllm#50592) /
[vllm#50593](vllm-project/vllm#50593) reworked
the Kimi-K3 AttnResidual API (prefix_delta threading, fused norms) |
Adjust adapter expectations to the `prefix_delta` AttnResidual form on
main |
| `tests/ut/ops/test_gdn_attn_builder.py` | vLLM main reads
`use_v2_model_runner` from the `VllmConfig` built in the test | Add
`use_v2_model_runner=False` to the mock config |
| `tests/ut/patch/platform/test_patch_engram_config.py` | vLLM main
resolves the Engram `dp_shared_memory` default to `True` when the caller
leaves it unset (v0.30.0 keeps it `False`) | Assert the
version-dependent default |
| `tests/ut/patch/platform/test_patch_kv_cache_coordinator.py` |
Upstream `KVCacheCoordinator.__init__` sets `group_block_sizes` and
`SimpleCPUOffloadScheduler` reads it; `AscendHybridKVCacheCoordinator`
builds managers itself, so the attribute is missing (`AttributeError`) |
Cover the new `AscendHybridKVCacheCoordinator.group_block_sizes`
exposure |
| `tests/ut/patch/platform/test_patch_mamba_block_aligned_split.py` |
vLLM main added the `mamba_shared_prefix_checkpoint` scheduler kwarg
read by the patched path | Add `mamba_shared_prefix_checkpoint=False` to
the scheduler mock |
| `tests/ut/spec_decode/test_eagle_proposer.py` | vLLM main removed
`MultiModalRegistry.supports_multimodal_inputs` and reads
`ModelConfig.supports_multimodal_inputs` instead, so patching the
removed method fails | `_supports_multimodal_inputs_patch` helper: patch
the registry method on v0.30.0, set `ModelConfig` flags on main |
| `tests/ut/spec_decode/test_mla_dspark.py` |
[vllm#57632](vllm-project/vllm#57632) inserted
`precompute_context_kv` before `progress_bar_desc` in the DFlash capture
path | Version-aware DFlash `capture` kwargs |
| `tests/ut/test_platform.py` |
[vllm#45635](vllm-project/vllm#45635) introduces
`VllmConfig.aux_output_config`, read by the Ascend platform validator |
Add `aux_output_config` (`None` on v0.30.0, disabled mock on main) to
the mocked `VllmConfig` |
| `tests/ut/worker/test_attn_utils_v2.py` |
[vllm#58149](vllm-project/vllm#58149) made
`max_model_len` a read-only property backed by `model_config`, so
assigning the instance attribute raises `AttributeError` | Set
`model_config.max_model_len` instead of the instance attribute on main |
| `tests/ut/worker/test_dcp_speculator_metadata_v2.py` |
[vllm#56723](vllm-project/vllm#56723) reads
`speculator.dcp_size` and `builder.supports_update_block_table`, and
slices `is_prefilling` to the padded request count | Fixture sets
`spec.dcp_size`/`supports_update_block_table`; version-aware
`is_prefilling` expectation |
| `tests/ut/worker/test_model_runner_v2.py` |
[vllm#58149](vllm-project/vllm#58149)
`max_model_len` property;
[vllm#56456](vllm-project/vllm#56456) added
`num_active_loras` | `max_model_len` workaround; pass the trailing
`num_active_loras` on main; aux-hidden-state restore assertions |
| `tests/ut/worker/test_model_runner_v2_kv_cache.py` |
[vllm#45635](vllm-project/vllm#45635) adds an
aux-output branch; `MagicMock` makes `aux_output_config.enabled` truthy
| Disable `aux_output_config.enabled` so the KV-connector path is
exercised |
| `tests/ut/worker/test_model_runner_v2_mamba.py` | vLLM main
split/reorganized `prepare_inputs` so the Ascend override is now
`_prepare_inputs_impl` | AST test now looks up `_prepare_inputs_impl` |
| `tests/ut/worker/test_pcp_manager_v2.py` |
[vllm#57980](vllm-project/vllm#57980) replaced
`padded_num_tokens`/`padded_num_reqs` with a `BatchExecutionDescriptor`
and dropped `routed_experts`; vLLM main renamed the DCP helper |
`_partition_batch` helper using `BatchExecutionDescriptor`; drop
`routed_experts`; `_prepare_dcp_local_seq_lens` rename |
| `tests/ut/worker/v2/test_aclgraph.py` |
[vllm#58275](vllm-project/vllm#58275) reads
`max_query_len`/`uniform_token_count` off the descriptor when preparing
capture inputs | Version-aware descriptor and `capture` kwargs |
| `vllm_ascend/_310p/attention/attention_v1.py` |
[vllm#53175](vllm-project/vllm#53175) added an
optional `kv_cache_spec` to `get_supported_kernel_block_sizes`, so the
zero-arg Ascend override raises `TypeError` when loading the MTP drafter
| Apply the `@supports_kernel_block_spec` decorator |
| `vllm_ascend/_310p/worker/v2/block_table.py` |
[vllm#56723](vllm-project/vllm#56723) passes a
per-group `dcp_sharded` to `BlockTables.__init__` (unexpected kwarg);
[vllm#56734](vllm-project/vllm#56734) sets
`idx_mapping == -1` for dummy draft steps, so the native 310P path
addresses block-table row `-1` | Version-split `__init__` accepting
`dcp_sharded`; skip negative `req_idx` in the 310P native slot-mapping
path |
| `vllm_ascend/_310p/worker/v2/model_runner.py` |
[vllm#56456](vllm-project/vllm#56456) added the
trailing `num_active_loras` positional to
`GPUModelRunner.prepare_inputs`, so the 310P override no longer matches
| Version-split `prepare_inputs`, accepting `num_active_loras` on main |
| `vllm_ascend/_310p/worker/v2/sampler.py` |
[vllm#56497](vllm-project/vllm#56497) dropped
`prompt_len` from `Sampler.add_request`, so
`GPUModelRunner.add_requests` fails with a missing/extra positional |
Version-split `add_request`; shared body moved to `_add_request_impl` |
| `vllm_ascend/attention/attention_v1.py` |
[vllm#53175](vllm-project/vllm#53175)
`kv_cache_spec` signature break; and on main the speculative-decode
request metadata stays at the real request extent, so a padded
FULL-graph decode makes FIA reject the TND replay (`queryT !=
last(actualSequenceLengthQ)`, error 561002) |
`@supports_kernel_block_spec`; on main append the padded tail to
`actual_seq_lengths_q` for V2 multi-token decode, whole block behind
`vllm_version_is("0.30.0")` |
| `vllm_ascend/attention/dsa_v1.py` |
[vllm#53175](vllm-project/vllm#53175)
`get_supported_kernel_block_sizes(kv_cache_spec)` signature break |
Apply the decorator to the 6 DSA backends |
| `vllm_ascend/attention/fa3_v1.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/indexer.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/indexer_kpool.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator to both indexer backends |
| `vllm_ascend/attention/mla_v1.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/sfa_v1.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/utils.py` |
[vllm#53175](vllm-project/vllm#53175) made
`get_supported_kernel_block_sizes` accept `kv_cache_spec` and made
`_largest_kernel_block_within` pass it; Ascend's zero-arg staticmethods
raise `TypeError` | New `supports_kernel_block_spec` decorator that
accepts/ignores `kv_cache_spec` on main and keeps the zero-arg static
method on v0.30.0 |
| `vllm_ascend/distributed/eplb/state.py` | vLLM main renamed
`EplbState.cuda_device_index` to `device_index`, so
`AscendEPLBController.prepare_load` raises `AttributeError:
'AscendEplbState' object has no attribute 'cuda_device_index'` | Set
`cuda_device_index` on v0.30.0 / `device_index` on main |
| `vllm_ascend/lora/punica_npu.py` |
[vllm#53555](vllm-project/vllm#53555) added the
abstract `apply_lora_full_linear` (sequence classification), so
`PunicaWrapperNPU` can no longer be instantiated (`TypeError: Can't
instantiate abstract class`) | Implement the per-adapter einsum fallback
for the classification head (skips the half/bf16-only BGMV shrink
kernel) |
| `vllm_ascend/models/kimi_k3.py` |
[vllm#50592](vllm-project/vllm#50592) /
[vllm#50593](vllm-project/vllm#50593):
`KimiDecoderLayer.forward` threads `prefix_delta`,
`forward_attn_residual` returns a 3-tuple and the fused norm path is
used, so `AscendKimiDecoderLayer.forward_attn_residual` fails with a
signature/unpack error | Version-gate AttnResidual: fused-norm
`_apply_ascend_attn_res`, `forward_attn_residual` threading
`prefix_delta` and returning the 3-tuple on main; v0.30.0 keeps the
2-tuple |
| `vllm_ascend/models/minimax_m3/msa_m3.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator to the MiniMax-M3 indexer/sparse backends |
| `vllm_ascend/ops/fused_moe/gate_linear.py` |
[vllm#58234](vllm-project/vllm#58234) extended
`GateLinear.__init__` with `skip_bias_add`/`quant_config`/`return_bias`
and routed qwen3_moe (and others) through it, so loading Qwen3 MoE fails
with `Gate AscendGateLinear.__init__` (unexpected kwargs) |
Version-split `AscendGateLinear.__init__` (main forwards the new args,
still forcing FP32) and `forward` returns the single output so
`return_bias` is honored |
| `vllm_ascend/ops/fused_moe/router/grouped_topk_router.py` |
[vllm#58880](vllm-project/vllm#58880) removed
`routed_scaling_factor` from the fused MiniMax2 routing config, so
passing it raises an unexpected-kwarg error on main | Pass
`routed_scaling_factor` only on v0.30.0 |
| `vllm_ascend/ops/triton/v2/block_table/compute_slot_mappings.py` |
[vllm#56734](vllm-project/vllm#56734) marks
dummy draft decode runs with `idx_mapping == -1` and skips the
block-table read; the forked Ascend kernel used the raw index and
aborted with an invalid GM address (`error code 507035`) | Main-only
guarded kernel: skip block-table reads and emit `PAD_SLOT_ID` for
`idx_mapping == -1`; v0.30.0 keeps the original kernel |
| `vllm_ascend/patch/platform/patch_kv_cache_coordinator.py` | Upstream
`KVCacheCoordinator.__init__` sets `group_block_sizes`, which
`SimpleCPUOffloadScheduler` reads; the Ascend subclass constructs
managers itself and never sets it, so startup fails with
`AttributeError: 'AscendHybridKVCacheCoordinator' object has no
attribute 'group_block_sizes'` | Expose `group_block_sizes` after
building the managers (fixes #17831) |
| `vllm_ascend/patch/platform/patch_kv_cache_utils.py` |
[vllm#55390](vllm-project/vllm#55390) renamed
`_annotate_eagle_groups`'s positional-fallback param from
`use_deepseek_v4_fallback` to `use_trailing_layer_fallback`, so the
Ascend packed-KV-cache-group patch fails with an unexpected-keyword
`TypeError` | Pass the correct param per version |
| `vllm_ascend/patch/worker/patch_step3p5.py` | vLLM main replaced
`FP32ReplicatedLinear` with `GateLinear` inside `step3p5.FusedMoEBlock`,
so the gate import/construction no longer exists on main | Version-gate
the import and `_patched_fused_moe_block_init` gate construction
(`FP32ReplicatedLinear` vs `GateLinear`) |
| `vllm_ascend/patch/worker/patch_triton.py` |
[vllm#58651](vllm-project/vllm#58651) added
`packed_qk_rope.py`, whose kernel calls
`triton.next_power_of_2(rotary_dim)` with a `tl.constexpr`; the injected
host helper calls `(n-1).bit_length()`, so the Kimi vision tower's
`profile_run` aborts with `AttributeError('constexpr' object has no
attribute 'bit_length')` | On main wrap `next_power_of_2` to unwrap
`tl.constexpr` before delegating |
| `vllm_ascend/patch/worker/patch_v2/patch_model_runner.py` |
[vllm#45635](vllm-project/vllm#45635) moved
routed-experts output to the AuxOutput connector (wired in
`GPUModelRunner.initialize_kv_cache`); the Ascend fork predates it, so
the worker emits no `aux_output_connector_output` and the scheduler
raises `AssertionError: auxiliary output worker output is missing`.
[vllm#56723](vllm-project/vllm#56723) added
`dcp_sharded` and dropped `attn_cg_support` | Build
`get_aux_output_connector` when enabled (main); collect/forward
per-group `dcp_sharded`; drop `attn_cg_support` on main |
| `vllm_ascend/platform.py` |
[vllm#45635](vllm-project/vllm#45635) requires
Model Runner V2 for AuxOutput; Ascend is out-of-tree, so the upstream
guard is skipped and an MRV1 run fails with the same missing-aux-output
assertion | Add `_validate_aux_output_config`: reject
`aux_output_config.enabled` under Model Runner V1 |
| `vllm_ascend/worker/v2/aclgraph_utils.py` |
[vllm#57980](vllm-project/vllm#57980) renamed
`maybe_prepare_dcp_local_seq_lens` to `prepare_dcp_local_seq_lens` and
moved the `cp_size > 1` guard to callers;
[vllm#57632](vllm-project/vllm#57632) reaches
model methods through `ModelWithContext` during capture | Alias both DCP
helpers and guard `cp_size > 1`; add `ModelWithContext.__getattr__`
forwarding to the wrapped model on main |
| `vllm_ascend/worker/v2/block_table.py` |
[vllm#56723](vllm-project/vllm#56723) passes a
per-group `dcp_sharded` list to `BlockTables.__init__`, so engine
startup fails with `TypeError: AscendBlockTables.__init__() got an
unexpected keyword argument 'dcp_sharded'` | Version-split `__init__`
accepting and forwarding `dcp_sharded` on main |
| `vllm_ascend/worker/v2/input_batch.py` |
[vllm#57270](vllm-project/vllm#57270) added
`is_padding` to `InputBatch.make_dummy` to route profiling dummy tokens
to MoE experts | `make_dummy` accepts and forwards `is_padding` on main
|
| `vllm_ascend/worker/v2/model_runner.py` |
[vllm#56456](vllm-project/vllm#56456) added
`num_active_loras`;
[vllm#57980](vllm-project/vllm#57980) dropped
the module-level `maybe_partition_pcp_batch` and folded the aux-hidden
restore into `restore_for_sampling`, so the replicated-PCP fast path
leaves `aux_hidden_states` in the PCP-local layout and the draft copy
fails (`self [5, 4096] vs src [3, 4096]`) | Split
`prepare_inputs`/`_prepare_inputs_impl` with `num_active_loras` on main;
call `pcp_manager.partition_batch(batch, desc)`; restore PCP-local
`aux_hidden_states` on main |
| `vllm_ascend/worker/v2/pcp_manager.py` |
[vllm#57980](vllm-project/vllm#57980) replaced
`padded_num_tokens` with a `BatchExecutionDescriptor` and threads
`aux_hidden_states` through `restore_for_sampling`;
[vllm#56456](vllm-project/vllm#56456) forwards
`padded_num_reqs` | Version-split `partition_batch` (descriptor) and
`restore_for_sampling` (`aux_hidden_states`); forward `padded_num_reqs`
|
| `vllm_ascend/worker/v2/spec_decode/autoregressive/aclgraph.py` |
[vllm#58275](vllm-project/vllm#58275) makes
draft capture pass `max_query_len`; the Ascend override left it
unbounded (`num_tokens`), diverging from upstream for mixed FULL graphs
| Forward `max_query_len=desc.max_query_len or desc.uniform_token_count`
on main |
| `vllm_ascend/worker/v2/spec_decode/dflash/aclgraph.py` |
[vllm#57632](vllm-project/vllm#57632) added a
trailing `precompute_context_kv` to `DFlashCudaGraphManager.capture`, so
the Ascend override's positional `super().capture()` call shifts |
Version-split `capture`, accepting and forwarding
`precompute_context_kv` on main (passed by keyword) |
> **Notes**
> - `hidden_out` is an accidental empty file introduced by a shell
redirect in `fe6d042a0`; remove it before merging.
> - The branch commits `cacf5b7d5` (`model_runner_v1.py` routed-experts)
and `f763bc65e` (workflow edits) were reverted later in the branch, so
they do not appear in the net PR diff and are omitted.
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
- vLLM main:
vllm-project/vllm@ced6857
---------
Signed-off-by: hfadzxy <starmoon_zhang@163.com>
Signed-off-by: wxsIcey <1790571317@qq.com>
Co-authored-by: wxsIcey <1790571317@qq.com>
michael-gpu
pushed a commit
to practical-inference/vllm-ampere-extended
that referenced
this pull request
Oct 20, 2026
β¦ofiling (vllm-project#57270) Signed-off-by: Robert Shaw <robertgshaw2@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
tangdafu
pushed a commit
to tangdafu/vllm-ascend
that referenced
this pull request
Oct 20, 2026
### What this PR does / why we need it?
The PR advances the main2main lane from vLLM v0.30.0 (tag commit
`ced6857afa0ea7b2e3f0846a62e1394e90f15607`) to vLLM main
`8cc9aa5ad350f6f80cf3bebb298d410803ff75a9` (installed as `0.30.0.dev`),
adapting vllm-ascend to every upstream change landed after the v0.30.0
release tag. The v0.30.0 lane stays supported: each upstream divergence
is selected with `vllm_version_is("0.30.0")`, so the release keeps the
legacy API and main takes the new one.
| Files | Upstream vLLM change (why it breaks vllm-ascend) | vllm-ascend
adaptation |
|-------|--------------------------------------------------|------------------------|
| `.github/vllm-main-verified.commit` | β (main-lane pin only) |
Verified main commit bumped `ced6857` (v0.30.0) -> `8cc9aa5` |
| `hidden_out` | β (stray artifact) | Accidental empty file created by a
shell redirect in `fe6d042a0`; no functional content (should be removed)
|
| `tests/e2e/pull_request/four_card/test_kimi_k3.py` |
[vllm#54222](vllm-project/vllm#54222) makes the
decode worker report the prefill worker's prefix-cache hits via
`kv_transfer_params["remote_prefill_cached_tokens"]` instead of its own
~100% transferred-KV hit rate, so the existing `cached_tokens > 0`
assertion fails on a fresh 129-token prompt | On main assert the P-side
hit count propagates to the decode output; keep `cached_tokens > 0` only
on v0.30.0 |
| `tests/e2e/pull_request/one_card/test_model_runner_v1_with_device.py`
| [vllm#45635](vllm-project/vllm#45635) moved
`enable_return_routed_experts` from `ModelConfig` to
`VllmConfig.aux_output_config`;
`test_stateful_handoff_preserves_decode_graph` mocks only
`model_config`, so `_sync_metadata_across_dp` raises for the dp_size=4
cases | Add `aux_output_config` to the mock `VllmConfig` on main |
| `tests/e2e/pull_request/one_card/test_thinking_budget.py` |
[vllm#56497](vllm-project/vllm#56497) changed
`ThinkingBudgetState.apply` from six positional args to `(logits, ctx:
LogitsContext)`, so the helper fails with a signature/TypeError | Build
`LogitsContext` and call `apply(logits, ctx)` on main; keep the six-arg
call on v0.30.0 |
| `tests/e2e/pull_request/two_card/spec_decode/test_spec_decode.py` |
[vllm#57934](vllm-project/vllm#57934) added a
`VllmConfig` validation rejecting DFlash candidate-head drafts
(`DFlash2DraftModel`/`LiLiCorrDraftModel`) under Model Runner V1;
`test_dflash2_acceptance` runs the V1 path, so config creation fails |
Skip the V1 variant on main (V2 covered by
`test_dflash2_v2_acceptance`); v0.30.0 still runs it |
| `tests/ut/_310p/test_model_runner_v2_310p.py` |
[vllm#56456](vllm-project/vllm#56456) added the
trailing `num_active_loras` to `prepare_inputs`;
[vllm#56497](vllm-project/vllm#56497) dropped
`prompt_len` from `Sampler.add_request` | Version-aware `_add_request`
helper (no `prompt_len` on main) and `prepare_inputs` args
(`num_active_loras` on main) |
| `tests/ut/attention/test_mla_cp.py` | vLLM main resolves the DCP group
through `get_dcp_world_size_and_rank` and computes LSE capability inside
`__new__`, so patching `get_dcp_group` no longer intercepts it | Patch
`get_dcp_world_size_and_rank` on main; keep `get_dcp_group` on v0.30.0 |
| `tests/ut/core/test_recompute_scheduler_short_request_first.py` | vLLM
main reads `ModelConfig.runner_type` in `supports_multimodal_inputs`,
but the patched `__post_init__` no longer initializes it | Set
`model_config.runner_type = "generate"` |
| `tests/ut/distributed/eplb/test_state.py` | vLLM main renamed
`EplbState.cuda_device_index` to `device_index` and `add_model` passes
`device_index=...`, so the old attribute is never set | Assert
`cuda_device_index` on v0.30.0 / `device_index` on main |
|
`tests/ut/distributed/kv_transfer/sparse_kv_offload/test_sparse_kv_offload_manager.py`
| [vllm#56723](vllm-project/vllm#56723) made
`UniformTypeKVCacheSpecs` read `dcp_sharded` from each member spec | Add
`dcp_sharded = False` to `_FakeKVCacheSpec` |
| `tests/ut/kv_offload/test_mooncake_layerwise_connector.py` | Same
[vllm#56723](vllm-project/vllm#56723) per-spec
`dcp_sharded` read | Add `dcp_sharded=False` to the
`UniformTypeKVCacheSpecs` member spec |
| `tests/ut/kv_offload/test_preempt_offload_connector.py` | vLLM main
tracks prefix-replay bookkeeping on the scheduler
(`prefix_replay_tokens`, `request.num_tokens`), which the mock scheduler
does not provide | Initialize `scheduler.prefix_replay_tokens` (and
`request.num_tokens`) on main |
| `tests/ut/models/test_deepseek_v41_release_config.py` |
[vllm#56554](vllm-project/vllm#56554) moved the
mm-prefix decision to the model-arch config converter, so the flattened
released config no longer carries
`is_mm_prefix_lm`/`mm_prefix_clamp_sliding_window` | Version-gate those
assertions (present on v0.30.0, absent on main) and normalize the config
|
| `tests/ut/models/test_kimi_k3_adapter.py` |
[vllm#50592](vllm-project/vllm#50592) /
[vllm#50593](vllm-project/vllm#50593) reworked
the Kimi-K3 AttnResidual API (prefix_delta threading, fused norms) |
Adjust adapter expectations to the `prefix_delta` AttnResidual form on
main |
| `tests/ut/ops/test_gdn_attn_builder.py` | vLLM main reads
`use_v2_model_runner` from the `VllmConfig` built in the test | Add
`use_v2_model_runner=False` to the mock config |
| `tests/ut/patch/platform/test_patch_engram_config.py` | vLLM main
resolves the Engram `dp_shared_memory` default to `True` when the caller
leaves it unset (v0.30.0 keeps it `False`) | Assert the
version-dependent default |
| `tests/ut/patch/platform/test_patch_kv_cache_coordinator.py` |
Upstream `KVCacheCoordinator.__init__` sets `group_block_sizes` and
`SimpleCPUOffloadScheduler` reads it; `AscendHybridKVCacheCoordinator`
builds managers itself, so the attribute is missing (`AttributeError`) |
Cover the new `AscendHybridKVCacheCoordinator.group_block_sizes`
exposure |
| `tests/ut/patch/platform/test_patch_mamba_block_aligned_split.py` |
vLLM main added the `mamba_shared_prefix_checkpoint` scheduler kwarg
read by the patched path | Add `mamba_shared_prefix_checkpoint=False` to
the scheduler mock |
| `tests/ut/spec_decode/test_eagle_proposer.py` | vLLM main removed
`MultiModalRegistry.supports_multimodal_inputs` and reads
`ModelConfig.supports_multimodal_inputs` instead, so patching the
removed method fails | `_supports_multimodal_inputs_patch` helper: patch
the registry method on v0.30.0, set `ModelConfig` flags on main |
| `tests/ut/spec_decode/test_mla_dspark.py` |
[vllm#57632](vllm-project/vllm#57632) inserted
`precompute_context_kv` before `progress_bar_desc` in the DFlash capture
path | Version-aware DFlash `capture` kwargs |
| `tests/ut/test_platform.py` |
[vllm#45635](vllm-project/vllm#45635) introduces
`VllmConfig.aux_output_config`, read by the Ascend platform validator |
Add `aux_output_config` (`None` on v0.30.0, disabled mock on main) to
the mocked `VllmConfig` |
| `tests/ut/worker/test_attn_utils_v2.py` |
[vllm#58149](vllm-project/vllm#58149) made
`max_model_len` a read-only property backed by `model_config`, so
assigning the instance attribute raises `AttributeError` | Set
`model_config.max_model_len` instead of the instance attribute on main |
| `tests/ut/worker/test_dcp_speculator_metadata_v2.py` |
[vllm#56723](vllm-project/vllm#56723) reads
`speculator.dcp_size` and `builder.supports_update_block_table`, and
slices `is_prefilling` to the padded request count | Fixture sets
`spec.dcp_size`/`supports_update_block_table`; version-aware
`is_prefilling` expectation |
| `tests/ut/worker/test_model_runner_v2.py` |
[vllm#58149](vllm-project/vllm#58149)
`max_model_len` property;
[vllm#56456](vllm-project/vllm#56456) added
`num_active_loras` | `max_model_len` workaround; pass the trailing
`num_active_loras` on main; aux-hidden-state restore assertions |
| `tests/ut/worker/test_model_runner_v2_kv_cache.py` |
[vllm#45635](vllm-project/vllm#45635) adds an
aux-output branch; `MagicMock` makes `aux_output_config.enabled` truthy
| Disable `aux_output_config.enabled` so the KV-connector path is
exercised |
| `tests/ut/worker/test_model_runner_v2_mamba.py` | vLLM main
split/reorganized `prepare_inputs` so the Ascend override is now
`_prepare_inputs_impl` | AST test now looks up `_prepare_inputs_impl` |
| `tests/ut/worker/test_pcp_manager_v2.py` |
[vllm#57980](vllm-project/vllm#57980) replaced
`padded_num_tokens`/`padded_num_reqs` with a `BatchExecutionDescriptor`
and dropped `routed_experts`; vLLM main renamed the DCP helper |
`_partition_batch` helper using `BatchExecutionDescriptor`; drop
`routed_experts`; `_prepare_dcp_local_seq_lens` rename |
| `tests/ut/worker/v2/test_aclgraph.py` |
[vllm#58275](vllm-project/vllm#58275) reads
`max_query_len`/`uniform_token_count` off the descriptor when preparing
capture inputs | Version-aware descriptor and `capture` kwargs |
| `vllm_ascend/_310p/attention/attention_v1.py` |
[vllm#53175](vllm-project/vllm#53175) added an
optional `kv_cache_spec` to `get_supported_kernel_block_sizes`, so the
zero-arg Ascend override raises `TypeError` when loading the MTP drafter
| Apply the `@supports_kernel_block_spec` decorator |
| `vllm_ascend/_310p/worker/v2/block_table.py` |
[vllm#56723](vllm-project/vllm#56723) passes a
per-group `dcp_sharded` to `BlockTables.__init__` (unexpected kwarg);
[vllm#56734](vllm-project/vllm#56734) sets
`idx_mapping == -1` for dummy draft steps, so the native 310P path
addresses block-table row `-1` | Version-split `__init__` accepting
`dcp_sharded`; skip negative `req_idx` in the 310P native slot-mapping
path |
| `vllm_ascend/_310p/worker/v2/model_runner.py` |
[vllm#56456](vllm-project/vllm#56456) added the
trailing `num_active_loras` positional to
`GPUModelRunner.prepare_inputs`, so the 310P override no longer matches
| Version-split `prepare_inputs`, accepting `num_active_loras` on main |
| `vllm_ascend/_310p/worker/v2/sampler.py` |
[vllm#56497](vllm-project/vllm#56497) dropped
`prompt_len` from `Sampler.add_request`, so
`GPUModelRunner.add_requests` fails with a missing/extra positional |
Version-split `add_request`; shared body moved to `_add_request_impl` |
| `vllm_ascend/attention/attention_v1.py` |
[vllm#53175](vllm-project/vllm#53175)
`kv_cache_spec` signature break; and on main the speculative-decode
request metadata stays at the real request extent, so a padded
FULL-graph decode makes FIA reject the TND replay (`queryT !=
last(actualSequenceLengthQ)`, error 561002) |
`@supports_kernel_block_spec`; on main append the padded tail to
`actual_seq_lengths_q` for V2 multi-token decode, whole block behind
`vllm_version_is("0.30.0")` |
| `vllm_ascend/attention/dsa_v1.py` |
[vllm#53175](vllm-project/vllm#53175)
`get_supported_kernel_block_sizes(kv_cache_spec)` signature break |
Apply the decorator to the 6 DSA backends |
| `vllm_ascend/attention/fa3_v1.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/indexer.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/indexer_kpool.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator to both indexer backends |
| `vllm_ascend/attention/mla_v1.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/sfa_v1.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator |
| `vllm_ascend/attention/utils.py` |
[vllm#53175](vllm-project/vllm#53175) made
`get_supported_kernel_block_sizes` accept `kv_cache_spec` and made
`_largest_kernel_block_within` pass it; Ascend's zero-arg staticmethods
raise `TypeError` | New `supports_kernel_block_spec` decorator that
accepts/ignores `kv_cache_spec` on main and keeps the zero-arg static
method on v0.30.0 |
| `vllm_ascend/distributed/eplb/state.py` | vLLM main renamed
`EplbState.cuda_device_index` to `device_index`, so
`AscendEPLBController.prepare_load` raises `AttributeError:
'AscendEplbState' object has no attribute 'cuda_device_index'` | Set
`cuda_device_index` on v0.30.0 / `device_index` on main |
| `vllm_ascend/lora/punica_npu.py` |
[vllm#53555](vllm-project/vllm#53555) added the
abstract `apply_lora_full_linear` (sequence classification), so
`PunicaWrapperNPU` can no longer be instantiated (`TypeError: Can't
instantiate abstract class`) | Implement the per-adapter einsum fallback
for the classification head (skips the half/bf16-only BGMV shrink
kernel) |
| `vllm_ascend/models/kimi_k3.py` |
[vllm#50592](vllm-project/vllm#50592) /
[vllm#50593](vllm-project/vllm#50593):
`KimiDecoderLayer.forward` threads `prefix_delta`,
`forward_attn_residual` returns a 3-tuple and the fused norm path is
used, so `AscendKimiDecoderLayer.forward_attn_residual` fails with a
signature/unpack error | Version-gate AttnResidual: fused-norm
`_apply_ascend_attn_res`, `forward_attn_residual` threading
`prefix_delta` and returning the 3-tuple on main; v0.30.0 keeps the
2-tuple |
| `vllm_ascend/models/minimax_m3/msa_m3.py` |
[vllm#53175](vllm-project/vllm#53175) signature
break | Apply the decorator to the MiniMax-M3 indexer/sparse backends |
| `vllm_ascend/ops/fused_moe/gate_linear.py` |
[vllm#58234](vllm-project/vllm#58234) extended
`GateLinear.__init__` with `skip_bias_add`/`quant_config`/`return_bias`
and routed qwen3_moe (and others) through it, so loading Qwen3 MoE fails
with `Gate AscendGateLinear.__init__` (unexpected kwargs) |
Version-split `AscendGateLinear.__init__` (main forwards the new args,
still forcing FP32) and `forward` returns the single output so
`return_bias` is honored |
| `vllm_ascend/ops/fused_moe/router/grouped_topk_router.py` |
[vllm#58880](vllm-project/vllm#58880) removed
`routed_scaling_factor` from the fused MiniMax2 routing config, so
passing it raises an unexpected-kwarg error on main | Pass
`routed_scaling_factor` only on v0.30.0 |
| `vllm_ascend/ops/triton/v2/block_table/compute_slot_mappings.py` |
[vllm#56734](vllm-project/vllm#56734) marks
dummy draft decode runs with `idx_mapping == -1` and skips the
block-table read; the forked Ascend kernel used the raw index and
aborted with an invalid GM address (`error code 507035`) | Main-only
guarded kernel: skip block-table reads and emit `PAD_SLOT_ID` for
`idx_mapping == -1`; v0.30.0 keeps the original kernel |
| `vllm_ascend/patch/platform/patch_kv_cache_coordinator.py` | Upstream
`KVCacheCoordinator.__init__` sets `group_block_sizes`, which
`SimpleCPUOffloadScheduler` reads; the Ascend subclass constructs
managers itself and never sets it, so startup fails with
`AttributeError: 'AscendHybridKVCacheCoordinator' object has no
attribute 'group_block_sizes'` | Expose `group_block_sizes` after
building the managers (fixes vllm-project#17831) |
| `vllm_ascend/patch/platform/patch_kv_cache_utils.py` |
[vllm#55390](vllm-project/vllm#55390) renamed
`_annotate_eagle_groups`'s positional-fallback param from
`use_deepseek_v4_fallback` to `use_trailing_layer_fallback`, so the
Ascend packed-KV-cache-group patch fails with an unexpected-keyword
`TypeError` | Pass the correct param per version |
| `vllm_ascend/patch/worker/patch_step3p5.py` | vLLM main replaced
`FP32ReplicatedLinear` with `GateLinear` inside `step3p5.FusedMoEBlock`,
so the gate import/construction no longer exists on main | Version-gate
the import and `_patched_fused_moe_block_init` gate construction
(`FP32ReplicatedLinear` vs `GateLinear`) |
| `vllm_ascend/patch/worker/patch_triton.py` |
[vllm#58651](vllm-project/vllm#58651) added
`packed_qk_rope.py`, whose kernel calls
`triton.next_power_of_2(rotary_dim)` with a `tl.constexpr`; the injected
host helper calls `(n-1).bit_length()`, so the Kimi vision tower's
`profile_run` aborts with `AttributeError('constexpr' object has no
attribute 'bit_length')` | On main wrap `next_power_of_2` to unwrap
`tl.constexpr` before delegating |
| `vllm_ascend/patch/worker/patch_v2/patch_model_runner.py` |
[vllm#45635](vllm-project/vllm#45635) moved
routed-experts output to the AuxOutput connector (wired in
`GPUModelRunner.initialize_kv_cache`); the Ascend fork predates it, so
the worker emits no `aux_output_connector_output` and the scheduler
raises `AssertionError: auxiliary output worker output is missing`.
[vllm#56723](vllm-project/vllm#56723) added
`dcp_sharded` and dropped `attn_cg_support` | Build
`get_aux_output_connector` when enabled (main); collect/forward
per-group `dcp_sharded`; drop `attn_cg_support` on main |
| `vllm_ascend/platform.py` |
[vllm#45635](vllm-project/vllm#45635) requires
Model Runner V2 for AuxOutput; Ascend is out-of-tree, so the upstream
guard is skipped and an MRV1 run fails with the same missing-aux-output
assertion | Add `_validate_aux_output_config`: reject
`aux_output_config.enabled` under Model Runner V1 |
| `vllm_ascend/worker/v2/aclgraph_utils.py` |
[vllm#57980](vllm-project/vllm#57980) renamed
`maybe_prepare_dcp_local_seq_lens` to `prepare_dcp_local_seq_lens` and
moved the `cp_size > 1` guard to callers;
[vllm#57632](vllm-project/vllm#57632) reaches
model methods through `ModelWithContext` during capture | Alias both DCP
helpers and guard `cp_size > 1`; add `ModelWithContext.__getattr__`
forwarding to the wrapped model on main |
| `vllm_ascend/worker/v2/block_table.py` |
[vllm#56723](vllm-project/vllm#56723) passes a
per-group `dcp_sharded` list to `BlockTables.__init__`, so engine
startup fails with `TypeError: AscendBlockTables.__init__() got an
unexpected keyword argument 'dcp_sharded'` | Version-split `__init__`
accepting and forwarding `dcp_sharded` on main |
| `vllm_ascend/worker/v2/input_batch.py` |
[vllm#57270](vllm-project/vllm#57270) added
`is_padding` to `InputBatch.make_dummy` to route profiling dummy tokens
to MoE experts | `make_dummy` accepts and forwards `is_padding` on main
|
| `vllm_ascend/worker/v2/model_runner.py` |
[vllm#56456](vllm-project/vllm#56456) added
`num_active_loras`;
[vllm#57980](vllm-project/vllm#57980) dropped
the module-level `maybe_partition_pcp_batch` and folded the aux-hidden
restore into `restore_for_sampling`, so the replicated-PCP fast path
leaves `aux_hidden_states` in the PCP-local layout and the draft copy
fails (`self [5, 4096] vs src [3, 4096]`) | Split
`prepare_inputs`/`_prepare_inputs_impl` with `num_active_loras` on main;
call `pcp_manager.partition_batch(batch, desc)`; restore PCP-local
`aux_hidden_states` on main |
| `vllm_ascend/worker/v2/pcp_manager.py` |
[vllm#57980](vllm-project/vllm#57980) replaced
`padded_num_tokens` with a `BatchExecutionDescriptor` and threads
`aux_hidden_states` through `restore_for_sampling`;
[vllm#56456](vllm-project/vllm#56456) forwards
`padded_num_reqs` | Version-split `partition_batch` (descriptor) and
`restore_for_sampling` (`aux_hidden_states`); forward `padded_num_reqs`
|
| `vllm_ascend/worker/v2/spec_decode/autoregressive/aclgraph.py` |
[vllm#58275](vllm-project/vllm#58275) makes
draft capture pass `max_query_len`; the Ascend override left it
unbounded (`num_tokens`), diverging from upstream for mixed FULL graphs
| Forward `max_query_len=desc.max_query_len or desc.uniform_token_count`
on main |
| `vllm_ascend/worker/v2/spec_decode/dflash/aclgraph.py` |
[vllm#57632](vllm-project/vllm#57632) added a
trailing `precompute_context_kv` to `DFlashCudaGraphManager.capture`, so
the Ascend override's positional `super().capture()` call shifts |
Version-split `capture`, accepting and forwarding
`precompute_context_kv` on main (passed by keyword) |
> **Notes**
> - `hidden_out` is an accidental empty file introduced by a shell
redirect in `fe6d042a0`; remove it before merging.
> - The branch commits `cacf5b7d5` (`model_runner_v1.py` routed-experts)
and `f763bc65e` (workflow edits) were reverted later in the branch, so
they do not appear in the net PR diff and are omitted.
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
- vLLM main:
vllm-project/vllm@ced6857
---------
Signed-off-by: hfadzxy <starmoon_zhang@163.com>
Signed-off-by: wxsIcey <1790571317@qq.com>
Co-authored-by: wxsIcey <1790571317@qq.com>
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.
Purpose
With Model Runner V2, the memory profile run never sends a token to the MoE experts, so MoE memory (workspace, all2all receive tensors, expert activations) is not counted when the KV cache is sized. For WideEP Deployments, e.g. EP32, this can easily cause OOMs during runtime or during DeepGEMM warmup as the size of the MoE buffers and intermediate activations grows with EP size (num_dp_groups * max_tokens)
InputBatch.make_dummymarks every dummy token as padding. WithVLLM_MOE_SKIP_PADDING=1(the default, from #46428), the router then sets every top-k id to-1. That is intended for idle DP ranks, butprofile_runand the otheris_profile=Truewarmups use the same dummy batch.Fix:
make_dummytakes anis_paddingargument (defaultTrue), and the V2 runner passesis_padding=not is_profile. Idle-DP dummy runs still skip padding.Example
Rank 0 startup output, with the log prefixes trimmed:
main: the MoE workspace is only allocated after the KV cache is sized.
this PR: the profile run allocates the workspace, and the KV cache accounts for it.
What main skipped: about 0.9 GiB per rank in this setup.
On main, that memory is allocated later, once the KV cache has already taken it. DeepEP HT never locks the workspace, so it keeps growing while serving; a skewed batch grew it to 384 MB here. The amount skipped grows with hidden size, top-k and DP size.
** NOTE : this is a relatively small amount of RAM in this simple case, but this becomes 5-6GB for an EP32 deployment, which is common for large models like KimiK3 and GLM5.3 **
Test Plan
Plus the example above, run on H200 against
mainand this PR.Test Result
test_make_dummy_padding_controls_moe_routingruns the real top-k kernel: dummy tokens marked as padding get-1, the others are routed.Duplicate-work check: no open PR changes MRv2 profile-run padding. #55231 and #57036 handle the
-1sentinel in specific kernels, which is a different problem.AI assistance: this PR was written with AI assistance (Claude Code). The human submitter has reviewed the changes and is responsible for them.
π€ Generated with Claude Code