Skip to content

[WS1][CUDA][Qwen3-Next] TP distributed logprob parity: fixed reduction order, selected-token logprob exact across NCCL settings (RFC #428 stack 9/11) - #549

Merged
Flink-ddd merged 32 commits into
RL-Align:test-qwennextfrom
fusheng-ji:feat/ws1-qwen3-next-distributed-logprob-tp
Nov 19, 2026
Merged

Flink-ddd merged 32 commits into
RL-Align:test-qwennextfrom
fusheng-ji:feat/ws1-qwen3-next-distributed-logprob-tp

Conversation

@fusheng-ji

@fusheng-ji fusheng-ji commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #466 (merged) → #467 → #468 → #469 → #503 → #507 → #543 → #544 → this PR → #557 → benchmarks (#551), base test-qwennext; merges after #544. This PR's own diff. RFC #428 row distributed_logprob_parity, CUDA, TP part (EP = 1); expert parallelism is the next PR (#557).

What

  • Contract (docs/operators/qwen3-next-distributed-logprob.md): every TP4 point where ranks combine values -- embedding, row-parallel GDN/attention/MoE outputs, column-parallel input gradients, the vocabulary-parallel selected logprob / LSE / entropy, sampling logits -- with its operation, order, dtype and transport (NCCL all-gather for bytes only; RL-Kernel's fixed-order collective cuda_ipc_fixed_tree for sums).
  • Parity runner (tools/validation/models/qwen3_next/qwen3_next_logprob_parity.py, 4 GPUs, real weights): SHA-256 of every point's output and gradient per rank, a TP1 reference, and a raw-NCCL negative control; qwen3_next_logprob_parity_compare.py checks one digest per rank across NCCL settings.
  • CI guard (tests/models/qwen3_next/test_qwen3_next_tp_reductions.py): no raw torch.distributed reduction in Qwen3-Next model, engine or VIME modules; the TP reduction must use the fixed-order collective.
  • Evidence publisher with the chain publisher's redaction rules.
  • Layout as reviewed on this PR: validation code and JSON under rl_engine/validation/models/qwen3_next/, scripts under tools/validation/models/qwen3_next/, comparison benchmarks and plots in the benchmark PR ([WS1][CUDA][Qwen3-Next] Comparison benchmarks and plots for the Qwen3-Next stack: MoE, attention, logprob, EP (RFC #428 stack 11/11) #551), raw JSON as release ZIPs with summaries in reports/experiments/qwen3_next/. The earlier PRs of the stack now follow the same layout themselves.

Prior art & reuse decision

Same official-LM-head logits for every measured candidate (TP4 shards are slices of one full-vocabulary product), 1024 tokens:

Library Implementation TP4 == TP1 Invariant over 13 NCCL settings Batch invariant Max abs vs FP64 TP4 latency Verdict
RL-Kernel WS2 shared_logprob (both engines here) yes yes yes 7.8e-7 2.55 ms
vLLM 0.30.0 sampler: all-gather + log_softmax yes yes yes 8.1e-7 1.51 ms exact, but rollout only
SGLang 0.5.21 logits processor: all-gather + log_softmax (srt/layers/logits_processor.py) — — — — — same structure as vLLM (source); rollout only
Megatron-core 0.16 vocab_parallel_cross_entropy no no (2 results) yes 8.1e-7 0.57 ms NCCL all-reduce of max and sum-exp
Vime 0.3.2 default calculate_log_probs_and_entropy no no (2 results) yes 8.1e-7 0.56 ms as Megatron
Miles (radixark/miles@23d3d38) fused_log_probs_and_entropy, imported unmodified no no (2 results) yes 8.1e-7 0.33 ms NCCL all-reduce of max and sums; repeat-stable at a fixed setting; backward store-only, reproducible and batch invariant
verl (volcengine/verl@e5a627c) linear_cross_entropy, imported unmodified (fuses the LM-head GEMM; own logits, FP64 reference of its own product) no no (2 results) yes 1.2e-5 0.63 ms NCCL all-reduce; forward repeat-stable (its forward atomic_add runs only for reduction sum/mean); backward d_hidden/d_weight use tl.atomic_add but are repeat-stable (20/20), not batch invariant (probe rows 1/10 cells)
CUTLASS / FlashInfer / FlashAttention — N/A: no vocabulary-parallel logprob

The measured implementations differ from each other by up to 9.5e-7 (Megatron and VIME agree with each other). vLLM's path is exact for rollout, but the training side has no counterpart that reproduces it; Megatron/VIME, Miles and verl (all measured) reduce max and sum-exp with NCCL all-reduce, so they move with NCCL settings. Decision: both engines keep RL-Kernel's WS2 provider -- the only measured way to equal bits on both sides. Its cost is latency (4.5× Megatron at this shape); a faster tile-stats kernel can keep the same merge order and is follow-up work.

Results (4 × B200, official checkpoint)

Qwen3-Next distributed logprob parity

Top: digest of every TP4 point under each NCCL setting vs NCCL defaults; the last row is the raw-NCCL negative control. Bottom: prior-art invariance, largest pairwise difference, latency.

Check Result
17 TP4 points × 4 ranks × 13 NCCL settings (defaults; Ring, all-reduce Tree × LL / LL128 / Simple × 1 / default channels) one digest per point and rank
TP4 vs TP1 on the same logits selected logprob and LSE bitwise equal; entropy differs (documented)
negative control: real o_proj partials, NCCL all_reduce 5 different results
full-vocabulary GEMM vs gathered TP4 logits bitwise equal
end to end (#543): vLLM rollout vs VIME recompute selected logprobs 16 cases × 4 weight versions bitwise

NCCL 2.29 has no Tree all-gather, so the Tree settings restrict all-reduce only (NCCL_ALGO=allreduce:tree). Summary, tested commits and commands: reports/experiments/qwen3_next/qwen3-next-distributed-logprob-b200.md; raw reports ZIP (SHA-256 a48bf29d…2cd9), parity measured at 04db726, prior art at 33495ad. Post-review GPU rerun at b10b6616 (ZIP): all 233 mandatory operator cases and four norm gates passed; all 17 points invariant across the 13 settings; selected logprob / LSE equal TP1; the negative control again gave five digests per rank.

Status

History

Tests

python -m pytest -q tests/models/qwen3_next/test_qwen3_next_tp_reductions.py
NCCL_ALGO=<algo> NCCL_PROTO=<proto> [NCCL_MAX_NCHANNELS=1] torchrun --nproc-per-node 4 \
    tools/validation/models/qwen3_next/qwen3_next_logprob_parity.py --checkpoint <ckpt> --output <dir>/<setting>
python tools/validation/models/qwen3_next/qwen3_next_logprob_parity_compare.py --runs <dir>/* --out report.json
Check Result
Qwen3-Next CPU list in ci.yml + digest tests 439 passed (99 CUDA-only skips)
CI guard: a planted raw all_reduce / reduce_scatter_tensor is reported passed
evidence redaction test, pre-commit on all files, layout check clean
remote CI (lint, unit tests, docs, DCO) passed at the current head (0b88a839)

Scope

CUDA, TP4 × EP1 × CP1, one node of four B200. Expert parallelism is #557; ROCm is a separate claim.

Results (H100 / Hopper, 4 GPUs, official checkpoint)

Run at this PR's head 8e88cd82. 4 × NVIDIA H100 80GB, torch 2.13.0+cu130, vLLM 0.30.0, NCCL 2.29.7, checkpoint revision 9c7f2fbe. Raw data: hopper-qwen3-next/pr549.

Check Result
tests/models/qwen3_next/test_*.py + check_*.py (4 GPUs) 787 passed
adapter, TP4 attention, TP4 GDN, TP4 head, TP4 MoE gates all passed
TP4 logprob parity over 13 NCCL settings (default; Ring, all-reduce Tree × LL / LL128 / Simple × 1 / default channels), 1024 tokens passed
  • All 18 recorded TP4 points × 4 ranks give one digest per point and rank across the 13 settings (deterministic_points_invariant: true).
  • TP4 equals TP1 for the selected logprob and LSE bitwise (tp4_equals_tp1: true); entropy differs between TP4 and TP1 as documented (entropy_tp4_equals_tp1: false).
  • The control behaves as on B200: the NCCL all_reduce of the o_proj partials gives 8 distinct results over the 13 settings, the fixed-order collective gives 1.
  • The full logits match the gathered logits.

Logprob prior-art on H100 (1024 tokens, TP4 vs TP1, 10 repeats; runner at 77d59a59):

Candidate TP4 == TP1 batch bitwise
rl_kernel_ws2 yes yes
vllm_gather yes yes
megatron_ce no yes
vime_default no yes
miles_fused, verl_fused not available in env –

Report: pr549_logprob/report.json (also parity/report.json for the gate parity).

…s NCCL settings

qwen3_next_logprob_parity.py records, on real weights, SHA-256 digests at the
vocabulary-parallel embedding, the row-parallel outputs and input gradients of
GDN layer 0, full-attention layer 3 and the layer-0 MoE block, the TP4
selected-token logprob/LSE/entropy and its logits gradient, the gathered
sampling logits and the TP1 logprob over the same logits; plus a negative
control reducing real o_proj partials with NCCL all_reduce.
qwen3_next_logprob_parity_compare.py checks one digest per rank across NCCL
algorithm, protocol and channel settings, and TP4 == TP1.

Signed-off-by: Wenbo Ji <[email protected]>
The WS2 provider merges per-tile logprob statistics in global tile order, so
selected logprob and LSE do not depend on the TP degree; entropy is summed per
shard in rank order and is outside the selected-logprob contract. The run
records whether entropy matches TP1 instead of failing on it.

Signed-off-by: Wenbo Ji <[email protected]>
…n logprob

Runs RL-Kernel's WS2 provider, vLLM's gather + log_softmax sampler path,
Megatron-core vocab_parallel_cross_entropy and VIME's default logprob on the
same official-LM-head logits at TP4 and TP1, and records TP-degree and NCCL
setting invariance, batch invariance, error against FP64, pairwise differences
and latency.

Signed-off-by: Wenbo Ji <[email protected]>
…rward paths

NCCL changes its summation order with the algorithm, protocol and channel
count. Scan the Qwen3-Next model, engine and VIME modules for raw reductions;
all_gather (data movement) and an integer MAX of flags are allowed, and the TP
reduction must go through RL-Kernel's fixed-order collective.

Signed-off-by: Wenbo Ji <[email protected]>
Document every TP4 cross-rank point of Qwen3-Next (embedding, row-parallel
projections, MoE combine, column-parallel input gradients, the vocabulary-
parallel selected logprob/LSE/entropy and the sampling logits): which ones move
bytes with NCCL all-gather and which ones sum with RL-Kernel's fixed-order
collective, with orders and dtypes, the reuse decision against vLLM, Megatron
and VIME, and the known entropy TP-degree dependence. Add the figure script.

Signed-off-by: Wenbo Ji <[email protected]>
Copies the per-setting rank reports, the comparison report and the prior-art
reports into the repository with the chain publisher's redaction rules,
refuses anything a forbidden pattern still matches, and writes redaction.json
and SHA256SUMS.

Signed-off-by: Wenbo Ji <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1299bf11-650e-4aa0-8f42-c0aec7bdb0ac

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Flink-ddd Flink-ddd 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.

Please trim this PR down or split it into two: one for the TP logprob checks and CI tests, and another for the comparison benchmarks and plotting code. Upload the raw JSON results as an attachment and follow the repository layout guide for file placement.

``qwen3_next_bi_manifest.json``.
"""

from __future__ import annotations

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.

Please group the Qwen3-Next validation code and JSON resources under rl_engine/validation/models/qwen3_next/, and the validation scripts under tools/validation/models/qwen3_next/. Follow the repository layout guide and update imports, resource paths and CI commands together.

@fusheng-ji fusheng-ji Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in b10b661. Qwen3-Next validation modules and JSON resources now live under rl_engine/validation/models/qwen3_next/, and the validation scripts under tools/validation/models/qwen3_next/. Imports, repository-root/resource lookups, CI launch commands, affected tests, and reproduction commands were updated together.

The relocated code has now been rerun on four B200 GPUs from clean commit b10b6616, with vLLM 0.30.0, torch 2.13.0+cu130, Triton 3.7.1 and NCCL 2.29.7:

  • Full operator-case collection passed; all 233 mandatory operator cases and all four norm forward/gradient gates passed without skips. The TP reduction guard also passed.
  • Vocabulary-parallel logprob tests: 31 passed, with four ROCm-only cases skipped.
  • Across all 13 NCCL settings, all 17 deterministic points had one digest per rank. TP4 selected-token logprob and LSE matched TP1 bitwise; the raw-NCCL negative control produced five distinct digests per rank.

In the pinned vLLM/Megatron environment, all 423 related CPU tests also passed without skips. The Python 3.10 artifact-hashing fix in 3927fad7 adds four passing regression tests; remote unit tests, lint, docs and DCO passed for that fix. GPU results are explicitly pinned to b10b6616; full-model L2 and the 97-cell batch-invariance sweep were not repeated.

New raw GPU reports, logs and provenance (ZIP) · Result summary and reproduction commands. All 153 internal checksums and the public ZIP download hash were verified.

# Copyright (c) 2026 RL-Kernel Contributors

"""Prior art for the Qwen3-Next vocabulary-parallel selected-token logprob.

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.

Please move the comparison benchmarks and plotting code to a separate PR under benchmarks/models/qwen3_next/, keeping this PR focused on the TP logprob checks and CI tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Split into #551. The comparison candidates, measurement/merge runner, and plotting script now live under benchmarks/models/qwen3_next/ in that separate draft PR. They have been removed from #549, along with the comparison-specific discussion, leaving this PR's TP work focused on parity checks, the reduction contract, and CI guards.

#551 is stacked on this PR and remains draft until this lands; its own change is five files: benchmark-only diff. The relocated merge runner reproduces the archived comparison report exactly, and the plotting CLI renders successfully.

```bash
python tools/validation/models/qwen3_next_run.py --stage all --until l2 \
--runs-root <runs> --checkpoint <checkpoint> --cuda-home <cuda-13.0> --python <venv>/bin/python
python tools/validation/models/qwen3_next_run.py --stage bi --bi-suite full --previous <runs>/<...-l2-...> \

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.

Please upload the raw JSON results as a ZIP attachment. Keep a brief summary under reports/experiments/qwen3_next/, with the download link, tested commit and commands to reproduce the results.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Uploaded both raw-result ZIPs as release attachments and removed the corresponding committed evidence directories. Brief summaries now live under reports/experiments/qwen3_next/:

Each summary includes the download link, ZIP SHA-256, tested commit, and reproduction commands. The archives preserve the original published evidence bytes and SHA256SUMS; every checksum was verified, and the public downloads match the local ZIP hashes. The relocated parity comparator also reproduces the archived report exactly.

@fusheng-ji
fusheng-ji force-pushed the feat/ws1-qwen3-next-distributed-logprob-tp branch from 4da4647 to b10b661 Compare October 12, 2026 11:03
…xt gate scripts

The scripts moved from ci/ to ci/scripts/ with the repository refactor but
still resolved the root one directory up, so the preflight operator gates
looked for the runner under ci/.

Signed-off-by: Wenbo Ji <[email protected]>
Brings in the stdlib-only artifact hashing of the evidence runtime: the
launcher imports it as a script, where rl_engine (and torch) are not on the
path, so the TP PR's launcher could not start. The digest test now loads the
runtime from its tools/validation/models/qwen3_next/ location.

Signed-off-by: Wenbo Ji <[email protected]>
The earlier PRs now carry the reviewed layout themselves, so the
inherited prior-art runners and plots leave this branch too (they move to
the Qwen3-Next benchmark PR), as do the inherited committed evidence
directories; their summaries live in reports/experiments/qwen3_next/.

Signed-off-by: Wenbo Ji <[email protected]>
@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview · rl_engine/backends/cuda/norm/rmsnorm.py (L365-L368): _require_cuda_gated reuses the module-wide _RMSNORM_API_VERSION that guards the already-shipped ungated RMSNorm surface.

Not changed. The plain and gated bindings ship in the same .so with one rmsnorm_api_version attribute, so any bump covers both. The gated symbols exist only in builds of this code, _require_cuda_gated checks both symbols and the version, and a signature change would also raise a pybind TypeError.

@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview · rl_engine/backends/cuda/norm/rmsnorm.py (L280-L285): The forward saves only x, weight, gate, rstd, but backward calls rstd.reshape(x.shape[:-1]) and dgate uses rstd.reshape(x.shape[:-1]).unsqueeze(-1).

Same point as 503-S7, 549-S2, 557-I4383087967; not changed. RMSNormGatedCuda.forward and the binding both require a 2-D x, so backward always sees a [T] rstd; the op flattens N-D input first, and the harness passes 2-D x. test_cuda_gated_parameter_vjp_contributions_match_the_fold covers N-D x for the hook.

@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview · rl_engine/backends/cuda/norm/rmsnorm.py (L389-L390): parameter_vjp_contributions_fp32 returns unreduced per-row contributions (rows), not the folded dweight, unlike the plain RMSNormCudaOp.parameter_vjp_contributions_fp32 which does the same.

Same point as 469-S4, 507-S1, 544-S4; not changed. Both hooks return per-row contributions on purpose: the C4 harness keys them per logical token, checks the row count and folds them itself in fixed fp32 order. It always passes 2-D x; an N-D row count would raise, not pass. The plain hook is covered for (2, 3, 2048) and the gated one for N-D x.

@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview · rl_engine/backends/cuda/norm/rmsnorm.py (L404-L408): _gate_activation_fp32 computes act(gate) with torch.nn.functional.silu/torch.sigmoid in fp32, while the CUDA kernel's gate_activation is 1/(1+expf(-z)) (and z*sigma for silu).

Same point as 507-S3, 507-S2; not changed. The hook and the backward share _gate_activation_fp32, so their dweight rows agree bit for bit (checked by the fold test); the kernel's activation only feeds y and dx, and it uses expf, not __expf.

@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview · pyproject.toml (L21-L21): The base dependency was loosened to transformers>=5.13.1,<=5.17.0, while the new qwen3-next extra pins transformers==5.17.0.

Same point as 549-S3, 543-S3; not changed. pip merges the base and extra specifiers, so .[qwen3-next] installs exactly transformers 5.17.0, and the preflight enforces the audited runtime.

@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview · pyproject.toml (L37-L40): torch==2.13.0 / vllm==0.30.0 / triton==3.7.1 are hard-pinned, but the pre-existing vllm = ["vllm>=0.6.0"] extra still allows an unbounded vllm version.

Same point as 543-S4; not changed. >=0.6.0 and ==0.30.0 intersect at 0.30.0, so requesting both extras resolves to the audited version.

fusheng-ji added a commit to fusheng-ji/RL-Kernel that referenced this pull request Nov 13, 2026
@fusheng-ji

Copy link
Copy Markdown
Contributor Author

One OpenCodeReview summary item:

  1. run_qwen3_next_chain_gate.sh L26, unreadable report path: fixed in 4e2c33af, which reaches this PR through the merge 30c0e5a7; a missing or unreadable file now exits 2 with invalid chain report: cannot read .... No other change in this PR.

fusheng-ji added a commit to fusheng-ji/RL-Kernel that referenced this pull request Nov 14, 2026
Provider job, chain preflight (failed at rollout-smoke), logprob prior art over
13 NCCL settings, EP matrix at 2c699e3, RL-Align#557 gates at f935bf3, RL-Align#549 parity
at 30c0e5a, RL-Align#543/RL-Align#544 preflight at their own heads. Redacted.

Signed-off-by: Wenbo Ji <[email protected]>
Comment thread .github/workflows/ci.yml
tests/models/qwen3_next/test_qwen3_next_failure.py \
tests/models/qwen3_next/test_qwen3_next_imported_binary.py \
tests/models/qwen3_next/test_qwen3_next_installed_provider_identity.py \
tests/models/qwen3_next/test_qwen3_next_l2.py \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · high
This 28-module qwen3_next block was appended to the "Run Mocked Hardware Discovery Tests" step, which does not build the rl_engine._C extension and is CPU-only. Several of the newly listed modules (e.g. test_qwen3_next_imported_binary.py, test_qwen3_next_installed_provider_identity.py, test_qwen3_next_storage.py, test_qwen3_next_training_checkpoint.py, test_qwen3_next_l2.py) exercise compiled-extension, vLLM-import or on-disk binary/provider evidence paths. Any module that imports those at module scope without pytest.importorskip/skip markers will fail collection here, turning the required CI job red instead of skipping. Please confirm each newly added module is import-safe on a runner without the extension/vLLM (or split these into their own step with the appropriate skip guard).

@Flink-ddd Flink-ddd 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.

LGTM, Thank for you push it. also cc @inaniloquentee

Comment on lines +207 to +212
passed = (
first is None
and all(matrix["status"] == "passed" for matrix in matrices.values())
and all(item.passed for item in invariance)
and (bi_matrix is None or bi_matrix["status"] == "passed")
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · high
passed omits the train_infer and per-cell decode_prefill verdicts that are computed above. The shared reference gate (rl_engine/validation/models/chain_gate.py:674-690) folds both train_infer.passed and all(verdict.passed for _case_id, verdict in decode_prefill) into the top-level passed. Here, a chunked-prefill vs full-prefill divergence beyond the contract tolerance (which is not covered by the bitwise invariance check, since those cells are different computations) still yields passed=True. The CLI then exits 0 and run_qwen3_next_chain_gate.sh reports success for a real numerical failure.

Suggestion:

Suggested change
passed = (
first is None
and all(matrix["status"] == "passed" for matrix in matrices.values())
and all(item.passed for item in invariance)
and (bi_matrix is None or bi_matrix["status"] == "passed")
)
passed = (
first is None
and all(matrix["status"] == "passed" for matrix in matrices.values())
and all(item.passed for item in invariance)
and (bi_matrix is None or bi_matrix["status"] == "passed")
and train_infer.passed
and all(verdict.passed for _case_id, verdict in decode_prefill)
)

…in the provider job, RL-Align#503 bias grad gate) into RL-Align#549

Signed-off-by: Wenbo Ji <[email protected]>
@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview (summary item, run of 2026-11-17) · .github/workflows/qwen3-next-provider-gpu.yml (L159-L159): This module is test_-prefixed, not check_-prefixed, yet it imports vLLM at module import time (from vllm.v1.attention.backend import ... in rl_engine/integrations/engines/rollout/vllm/qwen3_next_vllm_attention.py).

Fixed in a5673dcb on #543, merged into this PR in 14ef4bda.

  • The module is renamed to tests/models/qwen3_next/check_qwen3_next_vllm_attention_metadata.py, and the provider step lists it under that name.
  • docs/usage/qwen3-next-chain.md no longer lists it among the files that need the training environment.
  • A default pytest tests/ run no longer collects it.

@fusheng-ji

Copy link
Copy Markdown
Contributor Author

OpenCodeReview (summary item, run of 2026-11-17) · .github/workflows/qwen3-next-provider-gpu.yml (L28-L28): This PR adds new GPU-only check modules that no job or script ever invokes: check_qwen3_next_multigpu.py, check_qwen3_next_native_rollout.py, check_qwen3_next_vllm_model_contract.py and check_qwen3_next_engine_metadata.py (grep finds no reference to them anywhere in the repo).

Fixed in a5673dcb on #543, merged into this PR in 14ef4bda. The provider step now also runs check_qwen3_next_native_rollout.py, check_qwen3_next_engine_metadata.py and check_qwen3_next_vllm_model_contract.py, under the same no-skip check as the other vLLM modules. Locally with vLLM 0.30.0, the three modules gave 65 passed. In #557, check_qwen3_next_vllm_model_contract.py stays only in its four-GPU step, so it does not run twice there. check_qwen3_next_multigpu.py was already run by preflight and is unchanged.

@Flink-ddd
Flink-ddd merged commit 95013b1 into RL-Align:test-qwennext Nov 19, 2026
9 checks passed
Flink-ddd pushed a commit that referenced this pull request Nov 19, 2026
Flink-ddd pushed a commit that referenced this pull request Nov 19, 2026
Flink-ddd pushed a commit that referenced this pull request Nov 19, 2026
…rovider job, #503 bias grad gate) into #557

check_qwen3_next_vllm_model_contract.py stays only in this PR's four-GPU step, which already runs it.

Signed-off-by: Wenbo Ji <[email protected]>
fusheng-ji added a commit to fusheng-ji/RL-Kernel that referenced this pull request Nov 28, 2026
Provider job, chain preflight (failed at rollout-smoke), logprob prior art over
13 NCCL settings, EP matrix at 2c699e3, RL-Align#557 gates at f935bf3, RL-Align#549 parity
at 30c0e5a, RL-Align#543/RL-Align#544 preflight at their own heads. Redacted.

Signed-off-by: Wenbo Ji <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-model platform: cuda Specific optimizations or bugs in NVIDIA graphics cards (such as FlashInfer, TMA optimizations) qwen WS1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants