Skip to content

[Misc] Main2Main 1125 - #23156

Open
zhao-stack wants to merge 100 commits into
vllm-project:mainfrom
zhao-stack:codex/main2main-1124-full-ci
Open

zhao-stack wants to merge 100 commits into
vllm-project:mainfrom
zhao-stack:codex/main2main-1124-full-ci

Conversation

@zhao-stack

@zhao-stack zhao-stack commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it?

Latest rebase and dual-version CI

Rebased onto vllm-ascend main 24483219. Resolved the PP postprocessing fixture conflict by retaining Ascend #21430's early-copy coverage and providing the cache flag for both paired vLLM versions. The refreshed exact-range interface scan used c410543d..65ada0c4, the new Ascend base, and engine 9398ca5f. It reports 51 required roots, matching the previous baseline.

  • Mamba metadata fix reads the existing versioned flag on the MRV2 path. vLLM #63830 removed _align_mode on main. The first error in the affected Qwen and Kimi NPU jobs was the missing attribute.
  • Mamba test launch fixes keep the legacy mamba_cache_mode engine argument on v0.34.0. The A2 Mooncake pool leg uses aligned Mamba state and disables local prefix hits and writes in its main-only test scheduler, preserving the original pool-versus-local measurements. The failing shard rejected the removed argument.
  • GDN graph fixture fix reuses the compatibility spec and the shared GDN builder fixture. The failing shard passed num_speculative_blocks to the cache spec after vLLM #61452 moved allocation policy to the cache manager.

Local validation passed Ruff lint and format for 305 affected Python files. The extracted CPU PP tests passed 120 cases per version branch and 48 Kimi CPU postprocessing cases. Previous head 2ad43ee5 passed both CPU suites and finished 42 NPU shards. Both release failures are pending retest, 310P shared-expert FP16 validation and A2 sleep request timeout. Requested dual-version validation on db170009.

CI on db170009 passed pre-commit, then reported 37 Mamba metadata fixture failures on both versions and 3 bare-state padding fixture failures on main. Fixture follow-up `67257e2d sets the versioned flag on the metadata doubles and initializes both upstream flags for the bare Mamba state. The local source-extracted probe passed the 37 existing metadata cases and both padding flag paths. Requested dual-version validation on the fixture follow-up.

Final-head attempt 1 passed pre-commit. The release CPU runner disconnected in paths-filter before pytest. Main pytest passed 26,470 cases and hit the existing isolated expert-offload subprocess timeout. After both jobs finished, reran the failed jobs on the same SHA. Attempt 2 started both CPU lanes.

On attempt 2 at 67257e2d, release CPU passed 26,464 tests, main CPU passed 26,471 tests, and 40 of 42 NPU shards passed. The original release 310P FP16 check and /sleep timeout passed on retest. Main Kimi K3, Qwen3.5 PP+MTP, Qwen3.6 DFlash, Qwen3.8 LILICORR, and both Mooncake A/B scenarios executed and passed. The main A2 /sleep timeout prevented the subsequent GDN graph file from running in that lane.

EPLB placement-export test follow-up addresses the remaining upgrade-related E2E failure. vLLM #49700 moved workspace commit onto EplbModelState; the existing test now invokes the Ascend state override on main and the existing module wrapper on the release. The local source probe passed both upstream signatures through Ascend's actual wrapper. Requested the next dual-version run.

On ad19396f attempt 1, pre-commit and main CPU passed, and release hit the previously intermittent 30-second expert-offload subprocess timeout. Reran the failed jobs on the same SHA after the run finished. Attempt 2 passed both CPU lanes and started all 42 NPU shards.

On ad19396f attempt 2, 41 of 42 NPU shards passed. The EPLB placement export and GDN graph regression executed and passed on both pins, including the previously blocked main GDN cases. The only failed shard hit a 60-second HCCL /collective_rpc timeout; the same weight-transfer case passed on the prior head, and this follow-up changes only the EPLB test. After all shards and the gate finished, requested a same-SHA rerun. Attempt 3 is retrying the failed main A3 two-card shard.

ad19396f attempt 3 reached a ModelScope download read timeout for Qwen3-8B. Five other cases in the HCCL file passed. After completion, requested another same-SHA rerun.

Test closure on ad19396f. Attempt 4 passed the remaining main A3 two-card shard, including the HCCL weight-transfer file. Pre-commit, both full CPU suites, and all 42 NPU shards (21 on v0.34.0 and 21 on 65ada0c4) executed and passed on this SHA across the attempts. The CI gate reports one remaining requirement, CODEOWNERS approval. Ascend main advanced to 28f3077e during validation, and GitHub reports that the tested head merges cleanly.

Keep HiSparse Indexer mapping local to Ascend

Commit 59b6c3539 addresses Angazenn's mapper review. The Ascend runner excludes HiSparse Indexer groups from the groups passed to KV cache mapping because the Ascend backend has already prepared their tuple views. The Indexer tuples still bind to their layers, and the remaining groups use the native vLLM mapper. This removes the global mapper replacement. The outer mapper has the same behavior in the pinned v0.34.0 source and main source.

Ruff lint and format checks, Python syntax, and 32 simulated binding cases using both pinned upstream implementations passed locally. No test files changed. Full pytest and dual-version NPU validation remain pending. The local format.sh ci command stopped because pre-commit is unavailable.

Reject unsupported extensible KV cache

Commit c34eb2075 addresses Angazenn's review. The Ascend V2 runner keeps extensible=False and self.extensible_kv_cache = None, raises NotImplementedError immediately for extensible=True, and passes allocate=None to cache initialization. This follows the disabled Ascend allocation contract for vLLM #56492.

Ruff lint/format, Python syntax and diff checks passed. Test files are unchanged. Full pytest and NPU validation have not run for this commit.

Scheduler consistency audit

Commit eb82e5d9c removes the regression tests added in the three scheduler follow-ups. The existing tests and the scheduler fixes are preserved.

Reviewed the three copied scheduling loops (DyntraLB, Recompute and Balance), their seven combined classes, and the BatchJobAware/ShortRequestFirst delegation paths at head 79ca868.

Signed fix 79ca86864 synchronizes the pending-output cap check from upstream #64145. All three copied loops now use the native minimum in-flight output count on main, while preserving the v0.34.0 calculation. The verified old pin has the fixed-one-step calculation and the new pin has the depth-aware calculation. Initialization/stats renaming, encoder lookahead arguments, async KV lookahead suppression, release/main output statistics, and inherited encoder release/preemption handling were also checked across the implementations.

Ruff lint/format, syntax and 5,760 source-derived comparisons with the exact release/main guard expressions passed; those comparisons also reproduce the old extra-scheduling case in each copied loop and verify release behavior is unchanged. These are source checks, not pytest execution. Local full pytest remains unavailable (no pytest/torch/vLLM); format.sh ci stops because pre-commit is absent. No new CI run was requested while the previously reported mypy prerequisite blocker remains unresolved.

Pre-existing differences remain and were not changed by this interval fix. They are present in base cedeae5: DyntraLB/Balance lack Recompute's two _reserve_prefill_lookahead calls; Balance lacks the native pending KV block-copy handoff and transferred-group zeroing exclusions, drains new-block IDs only when zeroing is enabled, and uses a different waiting-prefill cadence condition. All three copied loops also lack the native prefix-replay setup, so upstream #67879's replay-aware cadence change cannot be copied as an isolated condition. The three copied waiting loops also never drain async_kv_waiting, although inherited _enqueue_waiting_request routes async-load candidates into that queue when either max_num_inflight_kv_loads or max_async_kv_loads_per_step is configured. This routing and omission are already present at the old pin/base and can strand that queue; it needs separate validation. These findings prevent claiming overall scheduler equivalence; their affected feature combinations still need dedicated review and runtime validation.

Encoder prefill lookahead correction

DyntraLB and BalanceScheduler now pass self.num_prefill_lookahead to encoder scheduling for both waiting and running requests on both pins. v0.34.0 already uses that property upstream; its multi-module MTP config can return the number of speculative tokens, so deriving a 0/1 shift from use_eagle can leave required encoder inputs unscheduled.

Signed fix 447b7bf2e updates four calls. Recompute already forwards the configured value. v0.34.0 caller and multi-module MTP configuration.

Ruff lint/format, syntax checks and 72 source-derived parameter checks passed. Source-derived checks reproduce the previous release shift of 1 with a configured value of 3 at all four changed calls. Full pytest has not run locally. The previous CI prerequisite failure in the baseline qwen3_dflash2.py import remains unresolved.

Async KV-load lookahead correction

When BalanceScheduler loads remote KV asynchronously, it now defers speculative lookahead allocation for every drafting method. The v0.34.0 path previously checked target hidden-state usage and could allocate extra blocks for an independent draft model during reception. Both pinned upstream schedulers use num_lookahead_tokens > 0. DyntraLB and Recompute already use that condition.

Signed fix bcb8100fe updates the async KV-load lookahead check in BalanceScheduler. v0.34.0 upstream and main upstream.

Ruff lint/format, Python syntax and 48 source-derived condition checks passed locally. The condition check reproduces the original release mismatch. The local Windows runtime lacks pytest and vLLM. CI on bcb8100fe passed pre-commit hooks, then mypy for Python 3.10/3.11/3.12 failed at vllm_ascend/models/qwen3_dflash2.py:16 because vllm.model_executor.models.qwen2 is absent from the pinned main source. That file is byte-identical in the target base cedeae55, the pre-fix head and this fix. The CPU UT and NPU/E2E jobs were skipped at the prerequisite gate.

November 30 follow-up rebase

Rebased onto Ascend main ce44721713f01bcca3edc7a0cc4c7768d05d048f at 62435406. Retained the vLLM main pin 65ada0c40e18d1100deee9c3deb351326a309e82 and release v0.34.0. The conflict resolutions preserve QSA per-backend page selection from Ascend #23022 and AscendStore RecoverSSM behavior from Ascend #23463.

Downstream change Upstream contract Validation
QSA page fixtures provide a native KVCacheGroup to metadata initialization on main vLLM #61452 Ruff and source-based checks for both block selection paths passed locally
NPU platform config hooks and stair policy construction vLLM #49700 Existing EPLB UT extended for main
Safe EPLB worker shutdown vLLM #67589 Existing UT exercises both stop entry points
DFlash2 uses the shared Qwen3MLP export on both lanes vLLM #66821 removed qwen2.py The pinned release alias and the main implementation match. First pre-commit failure

The exact-contract scan used Ascend baseline ce447217, pinned vLLM range c410543d..65ada0c4, and engine 9398ca5f (2.34.1). Against the pre-adaptation tree it reported 253 introduced relation findings across 51 root causes, 138 compatibility warnings, 170 preexisting findings, and 1,181 unresolved relations. The DFlash2 import finding was confirmed against both source pins and fixed in d64457eb.

  • The second full run passed pre-commit. Main CPU UT stopped during collection because the new Ascend encoder-only attention check imported a KV-cache spec removed by vLLM #61452. Release CPU UT passed 26,431 tests with 160 skipped and encountered six errors in the DFlash2 fixture, which still patched the old MLP symbol.
  • Mooncake pull and SFA and the encoder-only attention path now use the shared legacy-spec bridge. The DFlash2 fixture now patches the same MLP export as production.
  • Third full run passed pre-commit and release CPU UT. Main CPU UT passed 26,406 and reported 43 failures and one collection error. The three follow-up commits update existing KV-cache and Mamba fixtures for vLLM #61452, initialize the resolved MTP capability for vLLM #68798, and follow the failed weight-update cleanup contract in vLLM #68041.
  • The fourth full run passed release CPU UT. Main CPU UT passed 26,453 cases and exposed one static EPLB configuration fixture failure. The fifth full run confirmed that static logging was using dynamic STAIR statistics after the eager policy construction change in vLLM #49700. Static logging now explicitly selects the base policy on main. The same run hit a one-off timeout in an expert-offload subprocess test and the next full run will re-execute it with its existing timeout.
  • Rebased again onto Ascend main 78eb4cfc after Ascend #23422 overlapped the HiSparse PCP adapter. Retained the new connector lookup and the version-specific resident/hot group classification for vLLM #61452. Ruff passed on all 302 changed Python files. Requested the full dual-version run on f869bb332beacf94954075f468f57481eb1af3ae.

November 30 rebase

Rebased onto Ascend main cedeae55d2d92c8ed6086da65bcc0c435354e2fb. The updated head is 6d4dbe4c9.

Resolved the overlapping encoder-attention imports, HiSparse host-pool planning, static EPLB handling and model-test imports while retaining the existing dual-version adaptation. The two newly added pool tests now pass mamba_cache_mode only to v0.34.0, following the existing adaptation for vLLM #63830. Main remains pinned to 65ada0c40e18d1100deee9c3deb351326a309e82, and release remains v0.34.0.

Local Python syntax and Ruff lint/format checks passed for 402 affected Python files. Source-extracted checks exercised EPLB disabled/enabled and static modes, host-pool planning on both version branches including allocation errors, and both new pool-test argument branches. The full format.sh ci run stopped while installing the actionlint environment. Hardware validation on this head is pending.

Ascend main includes the A3 DCP nightly signature fix from #23750. The previous three GDN nightly assertions still require follow-up. The previous A3 PD run failed during repository checkout before model startup.

This PR owns the November 24 upgrade and full CI for both supported vLLM versions. Its source is the fixed November 24 snapshot from #22176. The November 25 increment is carried over from #22176.

Lane Required source
vLLM main 65ada0c40e18d1100deee9c3deb351326a309e82
vLLM release v0.34.0 at 62d4bc3c7e33b1b6c906e233e6af2d3506c482ca

The November 24 repair interval is 4dbd382be7e2f482fb117bbf59de006b4d2d8e11 through 28fb1365a90e9929e4596a72906e309dd7ac701f. Ascend #22198 already supplies the release version on the target branch. The temporary vLLM #61452 bridge remains in its single signed adaptation commit.

November 25 increment

The November 26 pre-rebase head a889f7901c025873ec3d8cdccc520fd25cb5fb11 carries the two signed commits from #22176. The main pin advances from 28fb1365a90e9929e4596a72906e309dd7ac701f to 65ada0c40e18d1100deee9c3deb351326a309e82. The release lane uses v0.34.0 at 62d4bc3c7e33b1b6c906e233e6af2d3506c482ca. Upstream comparison

Change Source and validation
Advance the main pin Source commit selects the November 25 revision before the old-Torch cleanup.
Preserve the NPU classifier input rank vLLM #69196 bypasses the reshape wrapper for linear classification heads. The Ascend path reuses the upstream wrapper, retains two-dimensional logits, and gates the integration by vllm_version_is("0.34.0"). Source fix · Source classification pass

The exact-contract scan of the 62-commit interval used the clean November 24 head d1caca7a3b8ddd9c739fd0aaebbd26c2959ecd1c and engine 9398ca5f084659fd78a0f71c07813733980d2b88. It reported 0 introduced static breaks, 163 preexisting findings and 886 unresolved relations. The runtime classification failure is a scan miss. A local PyTorch check exercised both branches, including that release skips the main-only import, and Ruff passed.

The November 24 verification below records results on the source snapshot. See the November 26 rebase and CI section for current validation.

Does this PR introduce any user-facing change?

This updates the verified vLLM main revision and adapts existing Ascend behavior to its upstream contracts. The release lane stays at v0.34.0.

How was this patch tested?

Both CPU lanes and all 22 selected main NPU jobs passed on the source snapshot under ready-precise. Full CPU and NPU/E2E validation for both versions is pending on this PR. CODEOWNERS approval is tracked separately. Snapshot run, attempt 2

November 26 rebase and CI

Rebased the branch onto Ascend main at 5da436cf7. The rebase carries the upstream dense-draft EP cleanup and preserves the DSpark validation for both vLLM pins. Ascend #23075

  • The first pre-commit job passed its hooks and failed mypy in HiSparse admission. Static analysis now resolves the native resident spec, and runtime v0.34.0 still uses its release registry. The next two pre-commit jobs passed mypy for Python 3.10, 3.11, and 3.12. Original failure · Verification at b929d5d4f
  • The first run after the mypy fix reached pytest and recorded 110 main failures and two release failures. After adapting packed HCCL, checkpoint replay, and cache fixtures, release CPU UT passed and main reported three failures. Both runs skipped NPU jobs at the CPU gate. First CPU run · Follow-up CPU run
  • The current head detects native HiSparse host groups before pool sizing and checks the pinned checkpoint and host-import completion contracts. Local CPU tests with the pinned upstream sources exercised mixed dtype and split-tensor packing, coordinator lookups, checkpoint publication, and the unsized-pool error.
  • The current run uses the normal failure policy and all-test selection under main2main. Pre-commit and mypy passed. Main CPU UT passed 23,758 tests with 131 skipped, including all three previous failures. Release CPU UT passed 23,753 tests with 136 skipped. The CPU gate opened and dispatched 42 hardware shards. Current E2E run at 01f5cefcc · Main CPU UT · Release CPU UT

Ascend main synchronization and full CI

Merged Ascend 22eb59993f67b8dd812c26c9c84a115216d3b279 into the fixed snapshot in d6bfb7dc. The merged tree retains the signed #61452 bridge and both vLLM version pins. The PR advances the main marker. The release marker matches Ascend main.

The first full diagnosis ran on 84c7dd334ebbd8a5cc1eb77a7955a6f900921ee9. Its temporary signed commit continues each NPU shard across test-file failures and retains a nonzero result. Final verification will use the normal failure policy. Under the current workflow, main2main selects all configured Ascend PR NPU groups for both versions, with A5 gated separately and the upstream-recommended suite gated by ready-precise.

Exact-contract scan after synchronization

Recreated the pre-November 24 downstream baseline by merging the same Ascend main into 40fe6aae4cd35ee8203d0907c5c55baeef6090a2. The clean scan checkout was 9b3d72db930cca5a332109fad0bd89bc64428aca, tree 97ee606176f92ef8aa9829de45701953682f3d35. The fixed 427-commit vLLM range and pinned engine 9398ca5f084659fd78a0f71c07813733980d2b88 (2.34.1, package SHA-256 e484c2f7842b8e1477136a7f7d039b79eb6e29af00c3ef83cb25affce399cc41) passed input validation. The main2main exact-contract scan used no external source roots. It reproduced all 32 relation findings across the same 12 required roots. The report separately tracked 65 compatibility warnings, 167 preexisting findings and 954 unresolved relations.

The live test-selection log confirms main2main and --all-tests. GitHub selected 21 NPU shards per version: four 310P, seven A2 and ten A3. The matching CPU jobs each target tests/ut.

Full diagnosis results and follow-up

The diagnostic run ended on 84c7dd334ebbd8a5cc1eb77a7955a6f900921ee9. Main CPU UT passed 22,930 tests and release CPU UT passed 22,925. Main NPU shards passed 17 of 21 and release passed 16 of 21. The diagnostic change was reverted in its own signed commit.

Downstream adaptation Upstream cause Why it is needed Verification
Preserve wo_a storage in AscendUnquantizedLinearMethod.process_weights_after_loading vLLM #68041 at 5020556c enables direct reload by default for the IPC server used by the case. Direct begin writes checkpoint layout into the existing allocation. The old Ascend 3D conversion allocated a replacement and left the captured graph reading checkpoint layout. Use replace_parameter to retain the allocation on main. The v0.34.0 branch uses the original layout conversion. Main diagnostic assertion and release pass. The local PyTorch storage check and Ruff passed. Main and release ran the existing unpacked case successfully on aa8beba822817e8403771cef3a9089e03aeade66. The existing packed case was skipped by its case configuration.
  • The diagnostic A2 shards hit offline model cache misses for the W8A8 model tests, iLama adapter and EAGLE tests. The vLLM model resolver is byte-identical across all three upstream snapshots and the affected test inputs and cache inventory are inherited from Ascend main. Main A2 · Release A2
  • One release A3 shard failed during path filtering with a connection timeout. Another A3 shard on each version reached the job limit after CANN could not initialize the NPU and only started four test files. Final full CI recreates these jobs on the new head. Path filtering · Main A3 · Release A3
  • CODEOWNERS approvals were outstanding in the diagnostic gate. Gate logs

November 24 full dual-version verification

The November 24 head d1caca7a3b8ddd9c739fd0aaebbd26c2959ecd1c merges Ascend main 8679c7665fe150f7b191bdc1179e3ed53ee774f2, preserves both vLLM pins and retains the signed DeepSeek fix. The normal runner failure policy was restored before the main2main label started full selection. Completed full run

Lane CPU UT Ascend NPU/E2E
Main at 28fb1365a90e9929e4596a72906e309dd7ac701f 22,977 passed, 131 skipped 21/21 shards passed, all 205 selected test-file invocations executed
Release v0.34.0 at 62d4bc3c7e33b1b6c906e233e6af2d3506c482ca 22,972 passed, 136 skipped 21/21 shards passed, all 205 selected test-file invocations executed

The DeepSeek unpacked IPC regression passed on this head in both full-suite lanes. Main · Release

The first /rerun recovered the release A3 four-card shard after a HCCL resource error. The second recovered the release A3 two-card shard after a CANN initialization failure and a separate startup timeout. Its 17 selected files all ran and passed with the original test settings. Four-card · Two-card

This is the current main2main full selection for 310P, A2 and A3. A5 and the ready-precise upstream recommendation jobs have separate label conditions. Individual test skips follow the existing test configurations.

After the final Ascend synchronization, the pinned engine reproduced the 12 roots and 32 relations on pre-adaptation baseline a05be84c09c4d2af9b32c1bb879d8b3f32779424 (tree 51e0dadda45f2a5cf02ba8d853c0bf0c50e7962c). The scan recorded 65 compatibility warnings, 167 preexisting findings and 954 unresolved relations.

CODEOWNERS approvals remain outstanding. The final gate reports CPU UT and NPU E2E as successful and fails on approval. Gate log

Rebase status The branch is based on Ascend main f5f84bcce at head 6bc3b8936. The rebase reconciles the MRV2-only PP/MTP path, AscendStore cache planning and lookup, and the NPU packed IPC contract for the existing vLLM pins. Ruff, Python compilation and Git diff checks passed locally. Dual-version E2E results are pending for this head.

Source snapshot history and root-cause evidence

What the source PR does

Advance the vLLM main pin to the November 24 target. The first stage uses a temporary Ascend compatibility bridge for vLLM #61452. The single signed adaptation commit follows the maintainer's compatibility approach and uses Angazenn's implementation as a reference. The compatibility code can be reverted when the native Ascend adaptation lands.

Version Source
Ascend main base 9b8c54e0d189f34259ab5112f2378ccf558a4e18
Predecessors Ascend #21469 and #22471 are merged into the base.
First-stage vLLM range c410543d9ffff03f5f6c4a8c0ae1d3ad082c4a15 → 43c1db8c9f30526fe0342c700e99d2c2648d92e4
Release CI lane v0.34.0, inherited from Ascend #22198
First-stage Ascend head a890c59500c6ca5890bb15f0b48ed2f7817f4a16
Second-stage vLLM range 43c1db8c9f30526fe0342c700e99d2c2648d92e4 → 4dbd382be7e2f482fb117bbf59de006b4d2d8e11
November 24 vLLM range 4dbd382b → 28fb1365
PR head 75530eb887b57342196c42357df37775792ddb50

Each pin bump is a separate signed commit. The current validation scope prioritizes the vLLM main pin. The current release lane follows the merged Ascend v0.34.0 baseline.

Release baseline rebase

Ascend #22198 landed while the previous head was in CI. The source PR now inherits v0.34.0 at vLLM 62d4bc3c7e33b1b6c906e233e6af2d3506c482ca from Ascend main. The main pin stays 28fb1365; the release marker has no PR diff. The release source still uses the legacy KV cache specs and already supports the shared graph-capture and ReplaySSM APIs. The compatibility commit keeps the version split for the native cache group contract introduced by vLLM #61452. The release rebase also drops the stale import of the removed release SWA patch.

On the previous head, the GLM cache fixture passed its original FP8, BF16 and alignment cases on main CPU and release CPU. Main NPU passed 21 of the 22 selected jobs. The sparse KV lifecycle subprocess timed out before completing startup on two runners. The new /run started E2E on 75530eb8 under ready-precise. Lint and both CPU lanes passed. The original GLM cases ran and passed in both lanes. The sparse KV lifecycle test passed in 105.39 seconds. The first attempt passed 21 of 22 selected main NPU jobs. The A3 four-card retry passed on the same head, including all nine context-parallel accuracy cases. Attempt 2 records all 22 selected main NPU jobs and both CPU lanes passing. A5 and coverage publication were skipped by the configured workflow. The only failed check is the CODEOWNERS approval gate. GitHub reports no merge conflict.

Earlier November 25 Ascend rebase

The branch was rebased onto Ascend 66f6ef2113d73cbd6584431b04cc5a909e15b909 without changing either vLLM pin. Ascend #22201 standardizes Mamba state copies on persistent request slots in both verified vLLM versions. The single signed #61452 compatibility commit now leaves the new Mamba kernels in place and initializes the shared cache once, before collecting the main-only replay trackers. The remaining replayed patches retain their content. This rebase does not add test cases to the PR diff.

Before the rebase, E2E attempt 3 on 8584a852 passed both CPU lanes and all 22 selected main NPU jobs. The gate reported outstanding CODEOWNERS approval. A fresh /run started E2E on the rebased head.

On d5e50256, release CPU passed and main CPU failed while collecting the existing GLM layerwise cache test. Ascend #22742 added the test against the old pin. Its fixture now uses the bridge's registry, layer descriptors, and layout access for the contracts changed by vLLM #61452. The same cases and assertions run in both CPU lanes. A new /run started E2E on e7841912.

November 24 upstream pin and compatibility

The upgrade analyzes the 427 vLLM commits from 4dbd382be7e2f482fb117bbf59de006b4d2d8e11 to 28fb1365a90e9929e4596a72906e309dd7ac701f against the pre-upgrade Ascend snapshot, tree 3df3a5777523800888eed5f82a5ee5adca512fae. The repeated exact-contract scan used engine 9398ca5f084659fd78a0f71c07813733980d2b88 and found the same 12 required roots across 32 relations. It also reported 65 compatibility warnings, 167 preexisting findings, and 955 statically unresolved relations. The update touches all 10 predicted downstream files and preserves the inventory and parametrization of the existing tests. The previous head is preserved on the backup branch.

Upstream change Ascend adaptation
vLLM #63830 Read the native Mamba prefix-caching configuration in cache managers, model state, GDN metadata and existing engine fixtures.
vLLM #66234 Use lookahead hashes and native replay boundaries for KV reuse across coordinator, scheduler, offload and AscendStore paths. Preserve the release lookup policy.
vLLM #68798 Dispatch using the resolved speculator configuration and its target hidden-state capability.
vLLM #68674 Wire the native collect_stats constructor option and stats consumers.
vLLM #68770 Forward the optional residual through the routed MoE projection.
vLLM #68043 Pair the existing NPU packed IPC framing with an NPU-owned importer and weight reload lifecycle.

The pin bump is signed and separate from the compatibility commits. Existing test fixtures follow the changed contracts, and the test function inventory is unchanged. Ruff and Python syntax checks passed locally. GitHub CI uses ready-precise and /run for both CPU lanes and the selected vLLM main NPU tests.

The linear rebase resolves the Ascend #20758 AttentionGroup integration and includes the current C++ build workflow changes. V2 keeps public block tables at manager granularity and maps backend metadata to kernel blocks. The rebase preserves both vLLM pins. Run 45318332830 confirmed lint passed and that the workflow replays PR commits linearly before CPU UT. The current series was verified with the same rebase locally.

Run 45317451116 stopped at mypy on version-specific arguments in four existing fixtures. The follow-up types those arguments and retains the same constructor values.

November 24 CPU follow-up

Run 45321710138 passed the linear source rebase, pre-commit, test selection and C++ cache checks. Both CPU lanes executed and reported failures. The follow-up restores the upstream scheduler signature, updates existing isolation fixtures, preserves partial AscendStore hits, and keeps the 310P metadata mapping compatible with slotted AttentionGroups. It also covers schedule-time encoder reference cleanup, the native structured-output backend map, and masked tokens in lmhead TP. No test functions were added.

November 24 NPU follow-up

Both CPU lanes passed on 8671edfe, with the AscendStore private-state and hash-lookahead boundaries restored. Run 45328288940 then exercised the selected vLLM-main NPU matrix.

  • vLLM #63830 removed the Mamba mode argument. Kimi K3 smoke launchers and the Qwen PP alignment probe now use the appropriate version's prefix-cache setting.
  • vLLM #68790 introduced a test cleanup hook absent from the NPU image's PyTorch 2.10. The upstream test runner guards this hook by availability and continues to run the selected test files.
  • vLLM #68006 passes FULL during graph capture. Ascend records the draft decode steps directly and uses replay only for a completed graph.
  • vLLM #68770 introduces the routed transform's residual capability. The compiled MoE forward branches on that capability without a Dynamo-disabled version check.
  • vLLM #68296 adds M-RoPE delta propagation. The 310P state applies the transferred delta to text-only prompts and reports it through the upstream getter.

The sparse KV offload lifecycle test timed out on A3 in this run. Its cause is pending verification. The existing test inventory is retained.

Run 45336047969 found the old capture-mode assertion in both CPU lanes and the old weight-update retry contract in the new Ascend #22447 fixture on main. The fixtures now assert the recorded draft forward contract and the fresh-update recovery introduced by vLLM #68041. The series was rebased onto Ascend 19454f91 and verified to replay cleanly onto Ascend f4778729.

Run 45338327577 passed the release CPU lane. The main lane's only error was during collection of the Ascend #22917 offload configuration test, which imported cache-spec classes removed by vLLM #61452. After rebasing onto Ascend d0f7218d, the fixture uses the existing layout bridge and retains the misaligned/reconciled chunk assertions. The import adaptation is folded into the single #61452 bridge commit.

Scope check and timeout investigation

The temporary #61452 compatibility commit contains the offload fixture import and the MLA layer's draft flag adaptation. vLLM moved the flag from the physical spec to KVCacheLayerConfig.is_draft. Reordering this patch leaves the full branch tree identical to the previous tested tree before the following diagnostic.

The November 24 increment includes the HiSparse PCP fixture update for vLLM #59209, which moved the prefill staging call to the cache handle. The upstream test runner change follows vLLM #68790. Both selected upstream test files ran and passed on job 138275160293.

Run 45342673925 passed both CPU lanes and 20 selected NPU jobs. A3 4-card part 3 could not initialize the HCCL communicator. A3 2-card part 2 reached the existing 600-second sparse KV offload timeout without a usable Python stack. A separate signed diagnostic collects the worker stack ahead of that timeout. The timeout, test inputs and assertions stay in place.

Run 45357970776 passed pre-commit, both CPU lanes, and all 22 selected main NPU jobs. The sparse KV offload test passed in 96.41 seconds and the HCCL-blocked DeepSeek tests passed on retry. The run's aggregate gate reported pending CODEOWNERS approvals. The temporary stack collection was removed with a signed revert before final validation.

Compatibility changes

Area Ascend code Why CI lanes vLLM #61452 evidence
Legacy layout bridge core/kv_cache_compat.py, attention and model owners Restore the layouts that existing Ascend consumers read. Native layers continue to return their allocation policy through KVCacheLayerConfig. Main and release Upstream source
KV cache planning core/kv_cache_config_builder.py, model planners including Step5 Feed native layer configs and groups to vLLM and retain Ascend's existing physical layout planners, using the block count resolved by Core. Main and release Upstream source
Coordinator and state cache managers patch_kv_cache_coordinator.py, Mamba and 310P patches Use group-level allocation and replay policy with the new manager contracts. Main and release Upstream source
Worker, connector and sparse cache consumers worker/v2, distributed/kv_transfer, HiSparse and offload Read the per-layer allocation geometry from the new group representation and preserve the release entry points. Main and release Upstream source
Existing tests Existing imports, fixtures and mocks Use the interfaces available in each lane. Existing case names and parameter combinations are preserved. Main and release Upstream source

The exact first-stage scan covers c410543d to 43c1db8c against Ascend d196654f with analyzer 2.34.1 at 9398ca5f084659fd78a0f71c07813733980d2b88. It reports 28 required roots (183 relationships), 30 strict roots including review items (186 relationships), 17 warnings, 158 preexisting findings, and 946 unresolved bindings. The additional root after the baseline sync is the restored GDN and RecoverSSM gather, which now receives the native speculative width.

November 18 main adaptation

Ascend change Upstream contract
Pass the layer name when customizing KV cache layouts. Ascend commit vLLM #62800 requires the name for layer-specific block constraints.
Forward resolved kernel block sizes to DFlash, DSpark, and target-dependent draft attention. Ascend commit vLLM #64777 requires the sizes used for allocation.
Forward the request length to native Mamba prefix lookups. Ascend commit vLLM #64109 passes the full request length to cache managers.
Export KDA prefill checkpoint states from the NPU recurrence. Ascend commit vLLM #67866 adds per-sequence checkpoint buffers.
Install EPLB workspace handling on the model-state class and handle the per-model policy stats. Ascend commit vLLM #49700 exposes model-state and policy extension points.
Skip draft MLA metadata reads during context-KV-only DSpark setup. Ascend commit vLLM #67291 leaves those groups without metadata builders.
Advance the main pin to the fixed November 18 target. Ascend commit vLLM commit 4dbd382b.

The exact second-stage scan covers 405 upstream commits against the first-stage Ascend head a890c595 with analyzer 2.34.1 at 9398ca5f084659fd78a0f71c07813733980d2b88. It reports 6 strict roots (11 relationships), 69 warnings, 165 preexisting findings, and 1,011 unresolved bindings. The required call-site list matches the preceding scan.

CI follow-up

Ascend change Upstream contract
Preserve platform and Ascend EPLB config validation. Ascend commit vLLM #49700 moves validation to the platform and the standalone EPLB config.
Keep the PP/MTP side channel on the release runner. Ascend commit vLLM #67297 makes ModelRunnerOutput slotted. Main's V2 runner uses the upstream protocol.
Initialize padded linear weights and bias for direct reload. Ascend commit vLLM #67563 initializes the padding at construction and marks padded parameters for refill.
Map legacy Step3.5 YaRN settings to the new RoPE field. Ascend commit vLLM #67533 reads rope_parameters. Latest-source and preceding-source smoke tests verified unchanged YaRN and sliding defaults.
Supply the fields required by the new interfaces in existing CPU fixtures. Ascend commit Includes slotted dataclasses #67297, draft EPLB #61395, Llama inner-model selection #66547, and offloading #59547 / #66583. Existing case names and parameter combinations are preserved.

Ascend #22530 is in the new base and supplies the dummy_inputs_embeds fix. Ruff lint and format passed for the rebased diff. CI at 4cecf34f passed release CPU with 21,465 tests. Main CPU stopped at EPLB validation before collection. CI at c105c354 passed pre-commit and release CPU. Main CPU recorded 20,848 passes, 675 failures, 131 skips, and one collection error. The main CPU result gated NPU. The collection fix for the new Mooncake KV-sharing test is in the single #61452 compatibility commit.

CI at f15442a6 passed pre-commit and release CPU. Main CPU recorded 21,570 passes, 131 skips, and 34 failures in three existing tests. The fixture updates cover the speculative_config read for sliding-window allocation from vLLM #64109 (Ascend commit), the KDA unpadded-weight assertion for #67563 (Ascend commit), and the device-generic adaptive verification stream and event mocks for #67724 (Ascend commit).

CI at 49f65915 passed pre-commit, main CPU with 21,635 passes, and release CPU with 21,574 passes. The test selector hit a rebase conflict in the V4.1 cache planner, which blocked main NPU. Selector log

The rebase preserves the uneven PP cache groups and per-stage slot placement from Ascend #19284 while keeping block-count ownership in vLLM main. Existing PP tests now use native groups on main and preserve their layer coverage and no-alias assertions. The worker also recognizes the DFlash/DSpark sliding-window manager subclass introduced by vLLM #64109 when dropping undersized padding for draft attention. Ascend commit

CI at 6151926d passed pre-commit, test selection, main CPU, and release CPU. Main NPU exposed these compatibility gaps.

  • Ascend's allocator already produces separate K/V and hybrid cache components in kernel-block layout. The compatibility bridge now sends only packed tensor views to vLLM's kernel-block mapper. Qwen 3.5 failure · Ascend commit
  • Qwen2 inner models now run through Qwen3 attention with QK norm disabled. The Ascend forward keeps RoPE and skips the norm and fused RMSNorm path in that configuration. vLLM #66821 · Ascend commit
  • Ascend MoE LoRA uses a slotted extension of the upstream context for EP and routing-index state. vLLM #67297 · Ascend commit

This rebase keeps the cache planner in AscendKVCacheConfigBuilder, as introduced by Ascend #21345. Local checks covered cache binding, Qwen attention without QK norm, and the upstream and Ascend fields in the MoE LoRA context. Existing test names and parameter combinations are preserved.

The completed NPU matrix also found two cache-group compatibility gaps. GLM-Next now recognizes homogeneous compressor-tail groups when the native group view carries a single layout. Whisper encoder sequence lengths now use the native KV cache groups on main and the existing attention groups on release. Both fixes are in the single #61452 compatibility commit. GLM-Next log · Whisper log

The NGram kernel tests passed on 6151926d. Four end-to-end greedy comparisons produced the same token difference on one prompt, across both eager and graph configurations. On main, the existing exact-match test now runs both arms with batch-invariant arithmetic to control the batch-shape differences. The Llama default backend changed in vLLM #66547. The four execution combinations and exact-match assertion remain in place. Ascend commit NGram log

CI at 8f3c32f5 passed pre-commit, test selection, and release CPU. Main CPU recorded 21,985 passes, 9 failures, and one collection error in existing Ascend planner fixtures. The paired-SFA, packed cache, and GLM-Next fixtures now exercise the lane-appropriate builder contracts. The main CPU failure blocked the selected NPU jobs.

Previous CI at b779dfb5 was started by /run with ready-precise. It passed pre-commit, test selection, main CPU with 21,995 passes, and release CPU with 21,926 passes. The selected main NPU matrix finished with generation, cache registration and NPU device failures. The NGram and Whisper shards passed.

November 23 rebase and CI

The branch was rebased onto Ascend main 29f19afb. The single temporary compatibility commit now restores the kernel-block sizes passed to Ascend's expanded block tables, uses the native group block size in the existing Kimi fixture, and registers the aligned backing storage for Mooncake hybrid caches. The rebase also preserves the GLM cache-offload planner and adapts HiSparse PCP to the native group layout. Local Ruff lint, formatting, diff checks and the existing test-name inventory passed.

CI at 0d5cc61f passed pre-commit, test selection and release CPU. Main CPU reported 16 collection errors and four failures from the HiSparse PCP import of removed spec classes, plus one DSpark physical-topology validation failure.

  • vLLM #61452 replaces HiSparse spec policy with native managers. The PCP connector and its existing fixture now use the hot and resident managers on main. This change is in the temporary adaptation commit.
  • vLLM #61395 revalidates the draft parallel config during EPLB overrides. The separate signed fix validates the physical topology and restores the replicated query view for model construction.

GitHub accepted /run under ready-precise. Previous CI at f76b9691 covers both CPU lanes and selected main NPU. Pre-commit and test selection passed. Main CPU passed 21,979 tests with 131 skips, and release CPU passed 21,900 tests with 155 skips. The selected main NPU matrix finished with 20 successful shards and two failures. The next run superseded the pending CODEOWNERS gate.

  • vLLM #49700 leaves the EPLB policy unset when load balancing is disabled. Commit 0fcefcbc is in the second upgrade range. The controller fix creates the policy only when EPLB is enabled. The existing fixture exercises the disabled configuration with policy=None. The previous A3-2 failure affected both DP2 MoE parameterizations.
  • In the previous GLM-5.3-Flash shard, all four cases without prefix caching passed. All four cases with prefix caching diverged at output token 5. The same eight cases passed at the earlier pin. A temporary trace records the prefix-hit boundary and output before and after resetting the cache. Existing case IDs and assertions are preserved. The trace was removed after collecting evidence.
  • Diagnostic CI at 2e151dde was triggered by /run under ready-precise, covering both CPU lanes and the selected main NPU matrix. Pre-commit and test selection passed. Main CPU passed 22,004 tests with 131 skips. Release CPU passed 21,925 tests with 155 skips. Main NPU finished with 21 successful shards and one failure. Both DP2 MoE parameters passed.

GLM-5.3-Flash speculative tail writes

  • vLLM #61452 moves the ring policy to CircularBufferManager, which disables ordinary per-token slot mapping. Ascend's speculative KPool metadata used the mapping to validate retained writes, so padding sentinels suppressed writes into the private ring. _build_keypool_metadata_kernel now derives valid retained positions from each request's scheduled rows. The fix is in the single signed #61452 bridge. Ruff and 40 local mask checks passed.

  • In the diagnostic job, the 2,321-token prompt replay hit 2,304 tokens. All four prefix-enabled cases diverged at the fifth output token even after resetting the cache. The temporary diagnostic is gone and the GLM test matches the main base byte for byte. No test cases or parametrizations were added.

  • The rebase on Ascend 77f53c5a preserves Step5 torch.compile support and resolves its import conflict with the native KV API. Both exact scans were repeated against the new pinned base and first-stage head. They returned the same required roots and relationship counts.

  • Previous CI at 90ba1223 was started with /run under ready-precise. It covers both CPU lanes and selected main NPU jobs. Release NPU remains deferred. Pre-commit and test selection passed. Release CPU passed 21,925 tests. Main CPU passed 22,003 tests and failed one pooling case, which gated NPU.

  • vLLM #67297 made the main ModelRunnerOutput slotted in ce72586f. The PP/MTP repeat-patch test modified the real main class, then the pooling test on the same pytest worker failed constructing it. The existing fixture now uses an isolated mutable release-style output. A local reproduction using the slotted upstream class confirmed its constructor remains intact after the fixture runs.

  • Previous CI at 9eeb1c1e was started with /run under ready-precise. It covers both CPU lanes and the selected main NPU matrix. Pre-commit, test selection and both CPU lanes passed. Main CPU passed 22,004 tests, and release CPU passed 21,925. Main NPU finished with 20 successes and two failures.

  • The single-card KPool test exercises a deliberately masked token. The updated bridge keeps the original per-token mask for callers with a slot mapping and validates native circular writes against the scheduled request rows. The two existing paths were checked against their expected addresses locally.

  • The four-card GLM test still diverged at the fifth output token in all four prefix-enabled cases. The temporary diagnostic records recurrent and convolution state fingerprints, block IDs and sampled tokens after an existing eager case fails. Existing test IDs, parametrizations and original assertions are preserved. This diagnostic was removed after evidence collection.

  • Previous CI at 3c00de4d was started with /run under ready-precise. It covers both CPU lanes and the selected main NPU jobs. Pre-commit and test selection passed. The main CPU and release CPU each failed the same three GLM PCP fixture combinations. NPU was gated.

  • The existing GLM PCP metadata fixtures instantiate the builder without running __init__. The same signed bridge now resolves the cached vLLM version when passing the tail slot-mapping option. The original test fixtures and assertions are preserved.

  • Diagnostic CI at c9f21cbd passed pre-commit, main CPU with 22,169 tests, and release CPU with 22,090 tests. It passed 21 main NPU jobs, including the A2 KPool mask case. The GLM A3 cases still diverged at their fifth generated token. The trace showed divergence even across two uncached requests and after rejecting all three drafts in each step before the divergence.

  • The #61452 bridge now uses persistent request-slot rows for both Mamba align state copies when main eagerly initializes the native KV model state. The Ascend pre-copy and postprocess kernels previously indexed batch rows even after that initialization changed their input table. The release lane keeps the existing gathered-table convention. A source-derived check exercised nonidentity request slots through both kernel expressions. Upstream request-slot contract · Native initialization at the first pin · Related Ascend repair

  • The temporary trace was reverted. The GLM-5.3-Flash test matches the Ascend base byte for byte.

  • CI at 18635fa7 passed pre-commit. Main CPU, release CPU, and test selection stopped when integrating Ascend [Performance][KV Offload] Delayed batch D2H for sparse KV offload on Model Runner V2 #20289 in mla_v1.py. The tests never started on that revision.

  • The rebase incorporates Ascend #20289 and Ascend #21196. The #61452 bridge preserves the DSpark-specific device residency rule and reads the offload host group through the shared layout view. The fused Mamba gather takes the manager-owned speculative width on main and the existing spec field on release. Local checks covered the new gather wrapper, host-group inference, and the MLA residency flags. Existing test cases and parameter sets were preserved.

  • CI at f36a3dd8 passed pre-commit, test selection, and release CPU with 22,157 tests. Main CPU passed 22,235 tests and failed 12 configurations of the profiling fixture from Ascend [BugFix][PCP] Use rank-local target batches for DFlash and DSpark profiling #22656, which gated NPU.

  • vLLM #67545 introduced the max_model_len read in the Model Runner V2 dummy-run token bound. The signed fixture update initializes that field on the runner constructed by Ascend #22656. The original 12 configurations still test the same batch sizes and assertions.

  • /run was accepted on 8d260d35. Ascend [BugFix] Support batch-shared with adaptive verification #20796 then introduced a checkout conflict in patch_model_runner.py. This revision had no executed E2E jobs before the rebase.

  • Ascend #20796 now passes the batch-sharded adaptive-verification setting from the base. Both supported vLLM versions expose copy_admitted_drafts_to_host, so the rebase retains the upstream argument and removes the duplicate fixture field. The GLM test again matches its base exactly.

  • CI at db1c706d started with /run under ready-precise. Both CPU lanes and selected main NPU are in scope. Pre-commit and test selection passed. Main CPU passed 22,272 tests with 161 skips. Release CPU passed 22,182 tests with 186 skips. All 12 PCP profiling combinations passed in both lanes. The selected main NPU matrix finished with 17 passes and five failures. The A2 KPool metadata and tail-write case executed and passed. Two A3 throughput checks and three 310P shards failed.

DeepSeek V4 KV pool and selected main NPU validation

  • vLLM #61452 replaces KVCacheGroupSpec.kv_cache_spec with native group layouts. Ascend Store had used each layer's model compression setting when that field was absent. It classified uncompressed sliding-window and compressor-state groups as compressed and bypassed the manager's reachable-block filters. The same signed bridge now reads the native group's whole-group distinct_specs. Pipeline projections use the same classification, including stages with zero local layers. The v0.33.0 path still uses the legacy field.
  • The DSpark PP2 and DeepSeek V4 TP4 pool cases passed accuracy and hit checks but failed throughput at db1c706d. Both passed on the previous vLLM pin for PP2 and for TP4. Local checks exercised the native and release families plus vLLM's sliding-window filter. The original test cases, assertions, and pool sizes are preserved.
  • On 7d290700, the DeepSeek V4 PP2 pool and GLM shard passed. PP2 retained the 16,384-token pool hit and recovered throughput to 94,687.2 tokens/s versus 89,038.4 locally, a 6.34% gain. The Mooncake log recorded zero insufficient-space warnings. The same shard ran and passed all eight GLM-5.3-Flash combinations. The TP4 pool case passed with 63,627.7 tokens/s versus 66,122.7 locally, a 3.77% difference against the existing 15% limit. It also retained the 16,384-token hit. The A2 KPool tail-write file passed all eight cases.
  • The 310P jobs fail when the fused Mamba gather added by Ascend #21196 invokes Triton on a runner that deliberately uninstalls it. Ascend #22924 tracks the separate baseline revert. Its 310P four-card Qwen3.5 MoE and single-card Qwen3.5 Dense tests passed the same cases that still fail on 7d290700 with the fused kernel.
  • CI at 7d290700 was started with /run under ready-precise. Pre-commit and test selection passed. Main CPU passed 22,296 tests with 161 skips. The first release CPU job stopped before test execution when Kubernetes could not mount the runner volume. The same-head retry passed release CPU with 22,206 tests and 186 skips after /rerun. The selected main NPU matrix completed all 22 jobs with 19 passes and three failures. All three failures reproduced the 310P Mamba Triton error. The gate also reported outstanding CODEOWNERS approvals. The current revert CI passed both CPU lanes, all 21 selected main NPU jobs, and the CI gate on 6528fcef.

Ascend #22924 baseline sync

  • Ascend #22924 merged as d196654f after its CI passed. The rebase retains the upstream Mamba gather in GDN and GLM RecoverSSM. Both vLLM versions take the existing PyTorch gather path on non-CUDA tensors. Main passes the speculative width explicitly from its native configuration, and v0.33.0 keeps its original four-argument call.
  • The rebase also preserves the Ascend Store CPU event and save-ID fixes from #22514 and #22621. Local Ruff lint, formatting, and Python parsing passed for all 227 changed Python files. The inventory kept the existing test identifiers in 127 touched test files. Source-based checks reproduced the existing GDN and RecoverSSM fixture outputs on both gather signatures.
  • CI at fbcbb6c1 started with /run under ready-precise. Pre-commit and test selection passed. Main CPU passed 22,351 tests with 131 skips, and release CPU passed 22,261 tests with 156 skips. Both lanes executed and passed the restored GDN alignment assertions and all four RecoverSSM alignment cases. All 22 selected main NPU jobs passed. This includes the previously failing 310P MoE, LoRA, and Dense cases, all eight GLM-5.3-Flash combinations, all eight A2 KPool cases, and both DeepSeek V4 pool checks. PP2 achieved 94,957.2 tokens/s versus 86,612.5 locally, and TP4 achieved 62,169.7 tokens/s versus 65,738.6 locally. Both retained the 16,384-token hit. The remaining CI gate failed solely on CODEOWNERS approvals. The PR remains a draft.

First-stage validation

  • #21469's release CPU run at 5e107080 recorded 21,206 passed and verified all four DFlash PP embedding parameters. Its main CPU lane also passed. #22380 carries the same fixture fix on the target base, so the stack does not contain a duplicate change.

  • Ruff check and format passed for all 174 files changed by the temporary adaptation. Focused Linux-target mypy passed for the six runtime files changed by this follow-up with --check-untyped-defs under Python 3.10, 3.11, and 3.12. All 102 touched test files retain their existing case names and parametrizations. Zero test cases added.

  • The previous attempt found mypy errors in draft pool construction. The new implementation binds the superclass method directly and explicitly types the cache tensor collection.

  • Previous full CI at 599b1cd9 passed pre-commit. Main CPU reported 21,262 passed and 48 failed. Release CPU reported 21,260 passed and four shared KV alias failures. All four DFlash combinations passed on release. NPU was gated by the CPU results.

  • Next full CI at 486792f0 passed pre-commit. Main CPU reported 21,304 passed and six failed. Release CPU reported 21,263 passed and one failed. The shared KV alias and DSpark group ownership failures were resolved. NPU was gated by the CPU results.

  • CI at fdf70ffd stopped at a mypy error in the existing Mooncake routing fixture, before either CPU job ran. Its typed state geometry now passes focused mypy on Python 3.10, 3.11, and 3.12.

  • An earlier revision updated five existing test files for the remaining failures. The GLM5 prefix test verifies the native per-state alignment constraint on main and keeps the existing release expectation. Test IDs and parameter combinations remain the same. Dual-version CI at 9fbde43d ran on that revision.

  • The first two attempts on the rebased head failed at GitHub Actions problem matcher registration before mypy or either CPU test job ran. Attempt 1 and attempt 2 show missing runner temp files. Another PR reported the same runner problem at the same time. A same-head retry was requested.

  • The third attempt at 9fbde43d passed pre-commit. Release CPU passed all 21,258 tests that ran. Main CPU reported 21,310 passed, one import failure, and four MegaMoE setup errors. The import now reads FullAttentionSpec from Ascend's compatibility module. The MegaMoE fixture was added in Ascend [BugFix] Preserve target MegaMoE state after DFlash draft loading #22108. Its get_pp_group mocks target symbols removed by vLLM #66063, which predates both ends of the source PR's upgrade range. Ascend [BugFix][Test] Keep draft-loading UT compatible with vLLM main #22471 repairs those setups on the base. Previous dual-version CI at b94b038c is blocked at the runner's problem matcher registration. Attempt 1, attempt 2, and attempt 3 all terminated before CPU tests could start. The same runner failure affected other PRs. The latest CPU/NPU results cannot be inferred from preceding heads.

  • Ascend #22471 merged as 32e53c66 after its dual-version CPU and selected NPU CI passed. [Misc] main2main upgrade to the November 30 vLLM pin #22176 now uses that Ascend base. Only the temporary adaptation and pin bump are in its diff. Current dual-version CI at 162f6ea1 passed pre-commit. Main CPU passed 21,320 tests and release CPU passed 21,263. The four MegaMoE draft-loading cases and the Mooncake routing case passed in both lanes. The NPU matrix finished with 20 main failures, 18 release successes, one release failure, and three cancelled shards. The main failures shared two startup causes.

  • The NPU run identified two main-runtime compatibility gaps. The 310P worker must pass layer declarations to the new planner. The Ascend block table must accept and forward the native group sliding-window reach. The two fixes are included in the signed temporary adaptation commit. The release HiSparse prolog shard reported pytest exit 5 with zero collected tests. The baseline test added in Ascend #22062 skips the whole file when HiSparse is unavailable on v0.33.0.

  • Rebased on Ascend main ee741e7f. The temporary patch preserves the new Mooncake SWA handoff by using native group policy on main. The nightly QFA case removed by the base stays out of the source PR's diff. Existing test identifiers and parametrizations were checked against this base. Dual-version CI at bae58db7 passed pre-commit and release CPU. Main CPU passed 21,556 cases and failed two existing Mooncake fixture setups because the test doubles lacked the group policy initialized by the real scheduler. Both existing fixtures now pass the lane-appropriate group declarations. The previous run did not reach NPU.

  • Dual-version CI at 9f520dd7 passed pre-commit, main CPU with 21,558 passes, and release CPU with 21,501 passes. The Mooncake handoff assertions passed in both lanes. The 310P Qwen3 dense test passed after the cache planner fix.

  • The adaptation uses the existing compatibility getters for the Qwen4 group-member layout probe and the V4.1 graph dummy-ring setup. Both previously read KVCacheGroup.kv_cache_spec, which is absent in the native group introduced by vLLM #61452. Focused lint, typing, and CPU checks passed for the two updates. The sparse KV offload lifecycle test ran and passed on main and release at 8859ef85. The four-card DeepSeek V4 validation passed all four cases on main and release, including adaptive DSpark.

  • The previous full run also exposed two baseline dependencies. The dummy_inputs_embeds override from Ascend [BugFix] Fix fine-grained embedding TP hangs with idle DP ranks #22200 mismatches the upstream caller on both ends of the upgrade range. Ascend #21945 and #22350 each include a fix. The HiSparse tests from Ascend [Feature] Add HiSparse KV Offloading Support for Ascend A2/A3  #22062 fail on v0.33.0 at test collection and at the resolver call with num_valid_rows. The baseline items are recorded for the relevant validation lanes.

  • At 4361a8ab, DSpark prompt-context replay, Mooncake, SFA P/D, Ascend Store, and preemption offload read cache groups through the same compatibility bridge. The scheduler and worker receive the new native group layout from vLLM. Ruff and native/legacy geometry smoke checks passed. A paired local mypy comparison found the same diagnostics with and without this follow-up across Python 3.10, 3.11, and 3.12. The Ascend Store accuracy test ran both layerwise and non-layerwise cases and passed on main and release at 4361a8ab.

  • Ascend #22062’s merge CI ran release CPU and main NPU. The four resolver combinations were skipped on main. The source PR’s full matrix exposes the release incompatibility.

  • The earlier full NPU run at 9f520dd7 ended with 21 main failures, 18 release shard successes, two release HiSparse failures, and one cancelled release A2 shard. GitHub recorded a failed test step for that shard before cancellation. Its job log and test artifact are unavailable, so the affected case needs confirmation in the next full run. The current validation plan runs selected main NPU and both CPU lanes. Release NPU validation is deferred.

@zhao-stack zhao-stack changed the title [Main2Main] Validate the November 24 vLLM upgrade on main and v0.34.0 [Misc] Main2Main November 24 vLLM upgrade and dual-version CI Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:‌‌

  • A PR should do only one thing, smaller PRs enable faster reviews.
  • Every PR should include unit tests and end-to-end tests ‌to ensure it works and is not broken by other future PRs.
  • Write the commit message by fulfilling the PR description to help reviewer and future developers understand.

If CI fails, you can run linting and testing checks locally according Contributing and Testing.

🤖 How to trigger CI

CI runs automatically when the PR is opened or reopened. Pushing a new commit no longer re-runs the E2E CI (to save NPU runner resources), so use the comment commands below when needed. They are available to the PR author and users with triage permission or above:

  • /run — run the full PR CI gate on the latest commit.
  • /rerun — re-run the failed CI jobs (e.g. after a flaky failure).
  • /e2e — run selected E2E tests instead of the full gate.
  • /nightly / /presmoke / /weekly — run the corresponding large-scale tests (triage permission or above; blocked during the nightly maintenance window).
  • /cancel — cancel a running CI on this PR.

Note

Until the CI gate has run on a commit, the required ci-gate check stays pending and the PR cannot merge — remember to comment /run after pushing.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Last updated: 2026-12-01 09:30 UTC+8 for commit ad19396.

ci-gate failed. Reason:

CODEOWNERS approval gate failed: at least one changed file has no approval from its owner(s). Open the 'CODEOWNERS' steps above to see which files are missing approvals and who can approve.

See the workflow run for full logs. This comment is updated in place on each new failure and marked as passed once the gate passes (it is kept for history, not deleted).

Missing owner approvals. Every changed file needs one approval from its CODEOWNERS owner(s):

Unclaimed modules touched (13 files). These files have no CODEOWNERS owner yet, so no approval is required for them; maintainers will handle claiming:

  • vllm_ascend/attention/attention_v1.py
  • vllm_ascend/attention/gdn_attn_builder.py
  • vllm_ascend/attention/gdn_recoverssm_metadata.py
  • vllm_ascend/attention/utils.py
  • vllm_ascend/hisparse/binding.py
  • vllm_ascend/hisparse/pcp.py
  • vllm_ascend/kv_trace/kv_trace_runner.py
  • vllm_ascend/kv_trace/kv_trace_runtime.py
  • vllm_ascend/models/layer/attention/layer.py
  • vllm_ascend/models/qwen3_dflash2.py
  • vllm_ascend/models/qwen4_exp/cache_config.py
  • vllm_ascend/models/qwen4_exp/cache_reuse.py
  • vllm_ascend/models/qwen_gdn_recoverssm.py

The Ascend HiSparse backend prepares Indexer cache tuples before vLLM binds attention layers. Exclude those groups at the runner call site and reuse the native mapper for the remaining HiSparse caches.

This removes the global mapper replacement introduced by the cache layout bridge. Verified the callback and binding behavior against both pinned upstream sources using stand-in cache objects, and ran Ruff and Python syntax checks.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Follow vLLM #49700 for platform defaults, provisional HIXL selection and policy instances. Keep the v0.34.0 config and policy registration path.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Follow vLLM #67589 using the same stop event on main. Preserve the worker handle on timeout and release HIXL resources only after a successful join.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
The rebased QSA page tests exercise per-backend kernel splitting. Supply the KVCacheGroup needed for block table sizing under the vLLM #61452 contract and retain the release call signature.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Ascend vllm-project#23439 uses Qwen2MLP, whose module vLLM #66821 removes. Import Qwen3MLP, which is the same implementation on verified main and an alias of Qwen2MLP on v0.34.0.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #61452 removes the direct legacy attention spec imports. The shared scheduler and worker already project their cache specs through the compatibility bridge, so use the same types in the pull and SFA consumers.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Ascend vllm-project#21582 checks the encoder-only marker for bidirectional attention. Import it from the existing dual-version bridge since vLLM #61452 removed the upstream encoder-only KV spec.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Keep the existing six MLA configuration cases against the symbol used on both vLLM lanes after #66821.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Follow vLLM #61452 and the subsequent native Mamba/cache planning contracts. Preserve retention, checkpoint, block-table, capacity, and layout assertions on both vLLM pins.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #68798 dispatches draft EPLB capability through SpeculatorConfig. Supply the actual main MTP config type to the existing controller cases.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #68041 ends the session after a failed finish on main. Preserve the release expectation for layerwise retry and check the receiver reset on main.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
The main policy factory introduced for vLLM #49700 reads STAIR parameters when AscendConfig is initialized. Supply the concrete EPLB subconfig in the existing worker stub.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #49700 constructs a policy during state initialization. Static load logging has no dynamic STAIR window, so explicitly select the same default logging policy as v0.34.0.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
Ascend vllm-project#23422 checks source groups for PCP sharding. Match the host-resident group on both pins because the native layout under vLLM #61452 no longer marks it with HISPARSE_SOURCE.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #63830 replaced _align_mode with prefix_caching. Reuse the existing MRV2 property when preparing aligned GDN state indices.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #63830 removed mamba_cache_mode. Use the legacy argument on v0.34.0, and keep main aligned for the A2 pool leg while disabling local hits and stores in the test scheduler. Retain both A/B legs and all measurements.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>
vLLM #61452 moved the speculative block count out of the cache spec, and #63830 removed the align flag on main. Use the existing cache spec projection and common builder fixture, and stub the versioned flag to keep the same graph reuse coverage.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/run
[Bot]: run command accepted. E2E has been queued on the latest commit db1700098b8833f972439401056b7cd492348c12 of this PR, with whatever test-scope labels the PR currently carries. Track progress in PR checks.

The vLLM #63830 follow-up uses the versioned flag in the MRV2 metadata path. Update the existing doubles to reflect that contract and initialize both upstream flags in the bare Mamba instance used by padding tests.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/run
[Bot]: run command accepted. E2E has been queued on the latest commit 67257e2d9c8e378b67bde5b66724d29300fa4202 of this PR, with whatever test-scope labels the PR currently carries. Track progress in PR checks.

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

vLLM #49700 moved async workspace commit onto EplbModelState. Exercise the Ascend model-state override on main and the module-level wrapper on v0.34.0 with the existing transfer and export assertions.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/run
[Bot]: run command accepted. E2E has been queued on the latest commit ad19396f01a40a4b4fde36ebff99526f6b2fb0fc of this PR, with whatever test-scope labels the PR currently carries. Track progress in PR checks.

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

2 similar comments

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

zhao-stack commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

@Tflowers-0129 Tflowers-0129 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 310P MRV2 sampling path needs the masked-token handling below.

logits = self.model.compute_logits(hidden_states[sample_indices])
logits = logits[:num_logits]
if not vllm_version_is("0.34.0") and self.masked_token_ids is not None:
logits.index_fill_(-1, self.masked_token_ids, float("-inf"))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

310P MRV2 overrides sample() in _310p/worker/v2/model_runner.py. It sends the logits straight to the normal sampler or the MTP rejection sampler, so --masked-token-ids has no effect there. In a CPU probe using the 310P method, greedy sampling still picked the masked token when it had the highest score. Could we apply the same mask before grammar filtering in the 310P path and cover both sampler calls?

vLLM #68976 masks target logits before grammar filtering. Apply the same version-gated mask in the 310P runner, which overrides sampling for both ordinary decoding and MTP.

The CPU regression reproduces both main-path failures before the fix and passes both sampler branches with the main and v0.34.0 guards after it. Ruff and git diff --check also pass.

Signed-off-by: zhao-stack <80399320+zhao-stack@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.