Skip to content

Exclude Torch companion packages and nvidia-cutlass-dsl from CUDA constraints - #312

Merged
abhishekraok merged 4 commits into
mainfrom
fix/cuda-constraints-companion-packages
Aug 27, 2026
Merged

abhishekraok merged 4 commits into
mainfrom
fix/cuda-constraints-companion-packages

Conversation

@abhishekraok

@abhishekraok abhishekraok commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

/tmp/cuda-constraints.txt froze everything matching ^(torch|nvidia-), which also catches torchvision/torchaudio and nvidia-cutlass-dsl — pinning them to the base image and breaking any provider release that swaps torch at runtime (OLMoE3/KDA plugin stack: failed to remove .../torchgen). Now only torch itself (torch== / torch @ ) and nvidia-* are constrained.

The first two commits are @AkshitaB's, cherry-picked from #303, which targets jacksonp/ladder and so cannot reach main; launcher.py here is byte-identical to it. The third adds a regression test that fails against the old pattern.

Validated on the OLMoE3-KDA MoE: Beaker 01M0R4PSF4QZCJQ4T8NH7DH4A4 — torch 2.10.0+cu128 swap completed, plugin registered, no torchgen failure. That run predates the cherry-pick rework, which left the emitted install command byte-identical.

@abhishekraok

Copy link
Copy Markdown
Collaborator Author

Validated against a real plugin-stack model (Beaker 01M0R4PSF4QZCJQ4T8NH7DH4A4, run by the cross-architecture SFT eval session): OLMoE3 latent-KDA MoE (Olmo3MoeForCausalLM, 18.5B total / 1.3B active) on image akshitab/olmo-core-tch2110cu128-rma-2026-08-04 with OLMO_EVAL_RUNTIME_TORCH_VERSION=2.10.0+cu128, installing vllm 0.19.1 + flash-linear-attention 0.4.1 + ai2-olmo-core over the constraints file. The runtime torch swap completed (+ torch==2.10.0+cu128) and the plugin registered (Registered Olmo3MoeForCausalLM with the OLMoE3 vLLM plugin) — no failed to remove .../torchgen, which is exactly the failure the old ^(torch|nvidia-) pattern caused. First run of this path on anything other than the dangling original commit, confirming the reimplementation is behaviorally equivalent for the case the fix exists for.

(If you see flash-attn 99.0.0 in that job's logs: a deliberate stub wheel on their side to evict the image's torch-2.11-built flash-attn; vLLM falls back cleanly. Unrelated to this PR.)

🤖 Generated with Claude Code

@undfined

Copy link
Copy Markdown
Contributor

Can you confirm whether this is a partial duplicate of: #303

AkshitaB and others added 3 commits August 25, 2026 17:39
(cherry picked from commit 3f9d764)
Covers the behavior of the preceding two commits: torch itself and the
nvidia-* CUDA packages are pinned to the base image, while torchvision,
torchaudio and nvidia-cutlass-dsl stay replaceable. Fails against the
previous '^(torch|nvidia-)' pattern.

Adapted from the assertions in #303, where the same launcher fix targets
the jacksonp/ladder branch rather than main.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
@abhishekraok

abhishekraok commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

@undfined Confirmed — byte-identical to #303's hunk, not just partial.

My provenance claim was wrong: 97166c2 is not dangling. @AkshitaB's fix is alive in #303 as 3f9d764 + c1fd424; it just hasn't reached main because #303 targets jacksonp/ladder. Apologies for the mischaracterization.

This branch now cherry-picks Akshita's two commits with -x instead of reimplementing them, so launcher.py matches #303 byte-for-byte, plus one commit adding a regression test. Happy to close in favor of her splitting the hunk out of #303 — the only cost is the MoE staying blocked on main until then.

@abhishekraok abhishekraok changed the title Exclude Torch companion packages and nvidia-cutlass-dsl from CUDA constraints [dup of #303] Exclude Torch companion packages and nvidia-cutlass-dsl from CUDA constraints Aug 25, 2026
@abhishekraok
abhishekraok force-pushed the fix/cuda-constraints-companion-packages branch from 89fb959 to b81b202 Compare August 25, 2026 17:48
@abhishekraok abhishekraok changed the title [dup of #303] Exclude Torch companion packages and nvidia-cutlass-dsl from CUDA constraints Exclude Torch companion packages and nvidia-cutlass-dsl from CUDA constraints Aug 27, 2026
@abhishekraok

Copy link
Copy Markdown
Collaborator Author

I'm going to merge this in to unblock many of my evals.

@abhishekraok
abhishekraok merged commit 0e357f4 into main Aug 27, 2026
10 checks passed
@abhishekraok
abhishekraok deleted the fix/cuda-constraints-companion-packages branch August 27, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants