Skip to content

Studio: extend the pinned Blackwell GPU fallback to CUDA 13.0 drivers - #5920

Merged
danielhanchen merged 1 commit into
mainfrom
studio-blackwell-driver-floor-13-0
Jun 1, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-blackwell-driver-floor-13-0

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

A Blackwell host (sm_120) on the mainstream r580 driver, which reports CUDA 13.0, installed Studio's prebuilt llama.cpp on CPU instead of the GPU. The pinned b9360 cuda-13.1 GPU fallback that exists for exactly this situation only fired when the driver advertised CUDA >= 13.1, so the 13.0 branch fell through it, was gated off the in-release 13.3 build, and dropped to the CPU-only cuda-12.4 build.

Root cause

_PINNED_BLACKWELL_DRIVER_FLOOR was (13, 1). _pinned_windows_cuda_fallback() returns None when driver < floor, so a host reporting (13, 0) got no pin.

Upstream stopped publishing a sub-13.3 Windows cuda13 build after b9360, and cuda-12.4 predates Blackwell (ggml compiles sm_120 only at toolkit >= 12.8), so on a 13.0 driver the only remaining GPU-capable option was the pin, which was switched off.

Fix

Lower _PINNED_BLACKWELL_DRIVER_FLOOR to (13, 0).

This is safe because the pin is a specific, hash-pinned, immutable artifact we can reason about:

  • b9360's binary is native sm_120a SASS (no PTX), so it needs no JIT and no newer toolkit at runtime.
  • Its bundled runtime is cuda-13.1 cudart.
  • Both run on a CUDA 13.0 r580+ driver under NVIDIA's CUDA minor-version compatibility.

The generic published-runtime gate is deliberately left untouched: an arbitrary, unverified in-release 13.1 build is still gated off a 13.0 driver. Only the specific SASS-verified b9360 pin is extended to 13.0.

Tests

  • Updated tests/studio/install/test_selection_logic.py: test_pin_offered_for_driver_13_0 now asserts the pin fires on a 13.0 Blackwell host (was asserting None); the below-floor case moved to 12.9.
  • Full install suite: 590 passed, 1 skipped.

Refs #5887.

The pinned b9360 cuda-13.1 Windows fallback for Blackwell (sm_120) only fired
when the driver advertised CUDA >= 13.1. The mainstream Blackwell branch ships
the r580 driver that reports CUDA 13.0, so those hosts missed the pin, were
gated off the in-release 13.3 build, and dropped to the CPU-only cuda-12.4
build.

b9360's binary is native sm_120a SASS (no PTX, so no JIT) and its bundled
runtime is cuda-13.1 cudart; both run on a 13.0 r580+ driver under CUDA
minor-version compatibility. Lower _PINNED_BLACKWELL_DRIVER_FLOOR to (13, 0) so
the pin covers the 13.0 branch too. The generic published-runtime gate stays
conservative (an unverified in-release 13.1 build is still gated off 13.0); only
the specific, hash-pinned, SASS-verified b9360 build is extended.

Refs #5887.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request lowers the CUDA driver floor for the pinned Blackwell fallback build from 13.1 to 13.0 in studio/install_llama_prebuilt.py. This change enables Blackwell hosts running on CUDA 13.0 drivers to utilize the pinned CUDA 13.1 fallback build via CUDA minor-version compatibility. Corresponding unit tests in tests/studio/install/test_selection_logic.py have been updated to verify this behavior. There are no review comments, so I have no feedback to provide.

@danielhanchen
danielhanchen merged commit f695fbd into main Jun 1, 2026
40 checks passed
@danielhanchen
danielhanchen deleted the studio-blackwell-driver-floor-13-0 branch June 1, 2026 13:35
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.

1 participant