Repository navigation
[WS1][CUDA][Qwen3-Next] Follow-up to the RFC #428 stack: CI skip guard, case outcomes, worker attributes, user-site guard, CUDA_DEVICE_MAX_CONNECTIONS - #740
Conversation
…pped The step only asserted four visible GPUs. A missing vLLM, kernel or dtype support makes these modules skip, and pytest exits 0 for an all-skipped run, so the job reported a real-model pass that never ran. Apply the provider step's guard: tee the log, fail on any skip and require at least one pass. Signed-off-by: Wenbo Ji <[email protected]>
The case recorder wrote "skipped" for every report with wasxfail, so a non-strict xpass of a mandatory case showed up as a skip. Record xfail and xpass as themselves. The verdict is unchanged: xfail counts as a skip and xpass as a failure, and either fails the run. Signed-off-by: Wenbo Ji <[email protected]>
…constructor SharedQwenWorker assigned shared_l2_trace and the execution mode after Worker.__init__. vLLM 0.30.0's constructor calls no model method, so nothing read them early, but an override reached from a later vLLM's constructor would raise AttributeError. Assign both first; the contract test checks they exist when the native constructor runs. Signed-off-by: Wenbo Ji <[email protected]>
…ckages On an H100 host every rollout smoke aborted while FlashInfer loaded (__ffi_repr__ already registered): apache-tvm-ffi 0.1.16 in the user site-packages was imported ahead of the environment's own copy. The user site comes first on sys.path, so a package there replaces the environment's copy, and the environment identity listed both without flagging it. current_identity() now raises environment_mismatch when a distribution in the user site also exists in another installation root, and names the packages and PYTHONNOUSERSITE=1. Packages only in the user site are still recorded as before. The chain usage doc says so. Signed-off-by: Wenbo Ji <[email protected]>
On four H100s the l2 recompute failed in Megatron's validate_args, which requires CUDA_DEVICE_MAX_CONNECTIONS=1 with tensor parallelism. The B200 runs did not hit the check. The dense launcher already sets it; the Qwen3-Next stage environment did not. Set it next to the thread limits, outside provider_config.runtime_env, so the run manifest does not change. It limits the hardware work queues and does not change any kernel's arithmetic. The B200 chain has not been rerun with it. Signed-off-by: Wenbo Ji <[email protected]>
…20261119 Signed-off-by: Wenbo Ji <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
🔍 OpenCodeReview found 1 issue(s) in this PR.
📄
|
|
@fusheng-ji The automated OCR review has completed. Please review and address all automated review bot findings, then push your updates. Maintainers will begin manual review after the bot findings have been addressed. |
probe_environment ran qwen3_next_runtime.py --json with check_output, so a refusal in the child (environment_mismatch for a shadowing user site) reached the launcher as a bare 'returned non-zero exit status 1'. It now captures the child's stderr and raises a ProcessFailure with its tail and failure_kind. New test with a refusing stand-in interpreter (fails on the old code). Signed-off-by: Wenbo Ji <[email protected]>
Any pip install --user leaves pip (and often wheel) in the user site next to the environment's copies, and the guard refused every run on such a machine although no stage imports them. They are now exempt. setuptools stays in the check: torch.utils.cpp_extension imports it for the JIT builds the stages allow. New test. Signed-off-by: Wenbo Ji <[email protected]>
Signed-off-by: Wenbo Ji <[email protected]>
|
Reply to the OpenCodeReview finding routed to the summary (run on
Two details of the finding do not hold:
The related finding raised on #745 (installers in the user site) is fixed here too, in |
|
Reply to the OpenCodeReview finding routed to the summary (run on
|
…e constructor The existing check builds the worker without a config, so the mode it sees is None. The new check passes a config with an identity and asserts that the mode activated for it is already set when vLLM's Worker.__init__ runs; it fails if the worker drops the mode. Signed-off-by: Wenbo Ji <[email protected]>
Signed-off-by: Wenbo Ji <[email protected]>
…rker check Signed-off-by: Wenbo Ji <[email protected]>
…s a failure The worker execution-mode test also checks that the activator gets the configured identity itself, so a dropped or different identity fails it. A strict xpass gets its own case in the plugin test: pytest reports it as "failed" without wasxfail, and the report counts it under failures. Signed-off-by: Wenbo Ji <[email protected]>
Signed-off-by: Wenbo Ji <[email protected]>
Signed-off-by: Wenbo Ji <[email protected]>
|
Replies to the two OpenCodeReview findings routed to the summary (run on Both (L190 and L198, the activator stub ignores which identity it gets) are fixed in
|
…_assets The release ZIPs were re-uploaded with the B200 PCI bus IDs masked, and pr_assets was rewritten to remove host and user identifiers. The merged batch-invariance, chain and EP4 logprob reports cite the ZIPs' new SHA-256, and the two RMSNorm docs link pr_assets c44f3f1 (was 692c408), which holds the same files. Signed-off-by: Wenbo Ji <[email protected]>
Signed-off-by: Wenbo Ji <[email protected]>
What
.github/workflows/qwen3-next-provider-gpu.yml,ecd28a81).check_qwen3_next_vllm_model_contract.pyandcheck_qwen3_next_vllm_real_model.pyskip, and pytest exits 0 for an all-skipped run.set -o pipefail, a tee'd log, fail on any skip, and require at least one pass. (finding on #557)rl_engine/validation/models/pytest_case_manifest.py,qwen3_next_cases.py,add156f5).skippedfor both.SharedQwenWorkersets its trace attributes beforeWorker.__init__(qwen3_next_vllm_worker.py,e863c090). vLLM 0.30.0's constructor calls no model method, so nothing read them early; this guards against a later vLLM that does. (finding on #543)tools/validation/models/qwen3_next/qwen3_next_runtime.py,55928823).__ffi_repr__ already registered).apache-tvm-ffi0.1.16 in the user site-packages was imported ahead of the environment's copy.current_identity()now raisesenvironment_mismatchwhen a distribution in the user site also exists in another installation root, naming the packages andPYTHONNOUSERSITE=1.docs/usage/qwen3-next-chain.mdsays so.CUDA_DEVICE_MAX_CONNECTIONS=1(tools/validation/models/qwen3_next/qwen3_next_run.py,8284ce2b).l2recompute failed in Megatron'svalidate_args, which requires this setting with tensor parallelism. The B200 runs did not hit the check, and the dense launcher already sets it.provider_config.runtime_env, so the run manifest does not change.ecd28a81add156f5e863c090559288238284ce2bCUDA_DEVICE_MAX_CONNECTIONS=1for every chain stagebe9b0285test-qwennext12d50412(#622, strict-provider files only; no overlap)6dbfcfc27e4c504cpipandwheeldo not count as shadowinga20cb71541f79bbecfeadffdpr_assetsPrior art & reuse decision
No item changes arithmetic, so batch invariance does not apply; the question for each is whether an existing mechanism already covers the case.
set -o pipefail, tee'd log, fail on any skip, require a pass)outcomeisskippedfor an xfail andpassedfor a non-strict xpass, both withwasxfailsetwasxfailwith the outcomeWorker.__init__super().__init__()PYTHONNOUSERSITE=1/python -sremove the user site;pip checkchecks requirements, not which copy is importedcurrent_identity()overimportlib.metadata; the error namesPYTHONNOUSERSITE=1as the remedyCUDA_DEVICE_MAX_CONNECTIONS1with tensor parallelism; the dense launcher (vime/experiments/dense/run_arm.py) sets itDecision: reuse pytest's outcomes, the provider step's guard and the dense launcher's setting; the only new check is item 4, which no existing tool provides.
Results (B200 / Blackwell)
All at
8284ce2b, on 4 × B200.b200/tp4-chain/A)apache-tvm-ffiplanted, the identity probe and the preflight both fail withenvironment_mismatch: the user site-packages shadows apache-tvm-ffi. Clean, the probe exits 0b200/tp4-chain/B)preflight,layers,l2andbipassed, each withsource_commit8284ce2b.bi-matrix.json: 97 of 97 cells passed. Chain reportpassed=True, 16 cells, no first drift. Gate: 17 passed, rc 0 (run with the environment's python; the node'spython3had no pytest)b200/ep4-chain)preflight,layersandl2passed, TP4 EP4b200/ci-steps-and-cpu-suite/D)_Cbuilt in the checkouttests/models/qwen3_next/test_qwen3_next_training_checkpoint.pywithAssertionError: Invalid device idin the training environment: its fixture patchestorch.cuda.device_countto 0 before FlashInfer's first import. The file passes in the repository's reference environment, and this PR touches neither it nor the import pathResults (H100 / Hopper)
All at
8284ce2bon 4 × H100 (driver 580.173.02, torch 2.13.0+cu130, vLLM 0.30.0, FlashInfer 0.6.18.post1, TE 2.18.0, megatron-core 0.16.0rc0). The tester'sSUMMARY.mdhas one row per step.PYTHONNOUSERSITE, the identity and the preflight exit 1 withenvironment_mismatch, namingapache-tvm-ffiand the other shadowed packages. The preflight stops before using a GPU. WithPYTHONNOUSERSITE=1the identity exits 0bifullpreflight,layers,l2andbipassed at8284ce2b.l2passed withoutCUDA_DEVICE_MAX_CONNECTIONSexported by the caller: the stage environment sets it (item 5).bi-matrix.json: 97 of 97. Chain reportpassed=True, 16 cells. Gate rc 0preflight,layersandl2passed::errorInvalid device idtests as on B200The first attempts of B and C ran on a node where another job held GPU memory:
l2reportedgpu_memory_not_released, and the preflight found fewer than four usable GPUs. They are kept innot-green-attempts/, and their reruns on an idle node are the rows above.Status
cfeadffd: the five commits onbcc549bf, a merge oftest-qwennext12d50412([ROCm] Add provider lock and execution checks #622's strict-provider files only, which these changes do not touch), two fixes from the bot round, two tests, and one docs commit for the re-uploaded evidence (cfeadffd). Every commit is signed off.8284ce2bon both GPUs (Results). The two later fixes change only the environment probe's error path and the user-site check, which the CPU tests cover.History
8284ce2b./tmpduring the build, so the job's own_Cwas not built. The rerun with a job-private temporary directory is the evidence.test-qwennext12d50412([ROCm] Add provider lock and execution checks #622); the follow-up's and [ROCm] Add provider lock and execution checks #622's tests pass on the merge.6dbfcfc2: a refusal in the environment probe (for example a shadowing user site) now reaches the launcher asenvironment_mismatchwith the child's message, not a bare exit status.7e4c504c(raised on [WS1][CUDA][Qwen3-Next] End-to-end speed test: strict path against stock vLLM and stock VIME (RFC #428 §7) #745): user-sitepipandwheelno longer count as shadowing;setuptoolsstill does, because torch's JIT extension builds import it.xpassliteral) needed no change: the case recorder writes it itself.a20cb715(raised on [WS1][CUDA][Qwen3-Next] Strict GDN recurrence in one launch per layer #744): a new test passes the worker a config with an identity. It checks that the activated execution mode is already set when vLLM'sWorker.__init__runs, and fails if the worker drops it.site.getusersitepackages()call.a20cb715:41f79bbe. The worker test pins the identity the activator receives. A strict xpass, raised again on [WS1][CUDA][Qwen3-Next] End-to-end speed test: strict path against stock vLLM and stock VIME (RFC #428 §7) #745, gets its own case in the plugin test: pytest reports it asfailedand the recorder counts a failure. Each finding has a reply.Tests
pyteston the follow-up's test files (test_qwen3_next_case_manifest.py,test_qwen3_next_operator_gates.py,test_qwen3_next_environment_identity.py,test_qwen3_next_run.py) and #622's (test_strict_provider.py×3,test_strict_provider_manifest_cli.py,test_strict_provider_observer.py,test_provider_identity.py)be9b0285pytest tests/models/qwen3_next/8284ce2bInvalid device idgroup of the training environment; see Results)8284ce2bpytest check_qwen3_next_vllm_model_contract.py -k spawn_worker41f79bbea20cb715the new test failed when the worker set the mode toNonepytest test_qwen3_next_case_manifest.py41f79bbemypy --ignore-missing-imports rl_engine/be9b0285test-qwennext, in two other files)pre-commit run --from-ref 12d50412 --to-ref HEADScope / Known limitations
No model, kernel or published number changes.
The 15
Invalid device idfailures oftest_qwen3_next_training_checkpoint.pycome from the training environment (its FlashInfer import with a patched device count), not from this PR, and are not fixed here.Not part of this PR:
Both follow as their own PRs on top of this one.
Two other post-merge findings on [WS1][CUDA][Qwen3-Next] Batch-invariance matrix for the full model, 97/97 cells bitwise (RFC #428 stack 8/11) #544 are not bugs and get replies instead: the exact provider pins in the provider job are intentional, and
CudaVocabParallelLogprobOpinheritsapply_with_entropy.