Skip to content

Installer: never plan a non-sm_120 CUDA build on Blackwell, never plan CPU on an NVIDIA host - #6156

Merged
danielhanchen merged 2 commits into
mainfrom
installer-blackwell-cpu-hardening
Jun 10, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
installer-blackwell-cpu-hardening

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Two hardening fixes from the fleet-validation audit recorded on #5963. Both close edge cases rather than active bugs; both paths are otherwise hardware-validated.

1. Blackwell never falls to a non-sm_120 windows-cuda build

The b9360 pin already outranks the upstream cuda-12.4 build on Blackwell, but 12.4 stayed in the chain behind it, so one failed pin download left the host on a build with no sm_120 kernels. That build loads and passes the functional validator while running the model on a slow non-native path: the same RTX 5090 measured 7.1 tok/s on cuda-12.4 vs 551.2 tok/s on cuda-13.3 during validation. Blackwell hosts now drop windows-cuda attempts that cannot offload sm_120; windows-cpu and hip attempts pass through, so a host with no CUDA 13 anywhere still degrades to an honest CPU install.

The coverage check (_windows_cuda_attempt_covers_blackwell) now reads manifest SM metadata before falling back to the asset-name CUDA minor. The published cuda12 app bundles are toolkit-12.8 builds that include sm_120 (validated at 424.9 tok/s on a 5090), so they stay selectable on Blackwell and correctly make the pin go dormant.

2. NVIDIA Linux hosts never silently plan a CPU bundle

The fork-release Linux planner appended the linux-cpu bundle for any non-ROCm host, including NVIDIA hosts whose CUDA selection produced nothing. The cross-release walk-back that saved cuda12 hosts during the b9518 partial release only worked because that release shipped no CPU bundle; a future partial release that does would have been accepted silently, installing a CPU binary on a GPU host. The planner now raises for NVIDIA hosts with no usable CUDA line (mirroring the documented ROCm policy), so the caller walks back to an older release instead. CPU-only hosts keep taking the published CPU bundle.

Tests

Seven new cases in test_selection_logic.py (exclusion on Blackwell, manifest-SM bundles kept/dropped, non-Blackwell unfiltered, non-cuda pass-through, NVIDIA walk-back raise, CPU-host bundle kept), and the two existing attempt-order assertions updated to the new policy. Full tests/studio/install suite: 710 passed.

shimmyshimmer and others added 2 commits June 10, 2026 15:29
…n CPU on an NVIDIA host

Two hardening fixes from the fleet-validation audit.

Blackwell Windows hosts drop windows-cuda attempts that cannot offload
sm_120 instead of leaving them ranked behind the b9360 pin. A cuda-12.4
upstream build loads and passes the functional validator but runs the
model on a slow non-native path (an RTX 5090 measured 7.1 tok/s vs
551.2 on cuda-13.3), so one failed pin download away from that is too
close. The coverage check now also reads manifest SM metadata first, so
published cuda12 app bundles (toolkit 12.8, sm_120 included) stay
selectable and make the pin go dormant correctly.

The fork-release Linux planner no longer appends the linux-cpu bundle
for NVIDIA hosts whose CUDA selection produced nothing; it raises so
the caller walks back to an older release with a usable CUDA line,
mirroring the deliberate ROCm policy. Today's walk-back only works
because partial releases ship no CPU bundle; this keeps it working if
a future partial release does.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d7f9b56f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread studio/install_llama_prebuilt.py Outdated
Comment on lines +3364 to +3365
if attempt.install_kind != "windows-cuda"
or _windows_cuda_attempt_covers_blackwell(attempt)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve manifest SM metadata before filtering

When this filter runs on published Windows attempts, published_windows_cuda_attempts has built the AssetChoice without copying artifact.supported_sms/max_sm, so _windows_cuda_attempt_covers_blackwell() falls through to the legacy llama-...-bin-win-cuda-X.Y filename regex. Published app bundles such as app-...-windows-x64-cuda12-portable.zip do not match that regex, so a Blackwell host drops even the manifest-declared sm_120 cuda12 bundle instead of keeping it as intended.

Useful? React with 👍 / 👎.

@danielhanchen
danielhanchen merged commit c86872c into main Jun 10, 2026
34 of 39 checks passed
@danielhanchen
danielhanchen deleted the installer-blackwell-cpu-hardening branch June 10, 2026 15:40
danielhanchen pushed a commit to oobabooga/unsloth that referenced this pull request Jun 10, 2026
…ackwell/CPU hardening)

# Conflicts:
#	studio/install_llama_prebuilt.py
#	tests/studio/install/test_selection_logic.py
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.

2 participants