Repository navigation
Studio: extend the pinned Blackwell GPU fallback to CUDA 13.0 drivers - #5920
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
b9360cuda-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_FLOORwas(13, 1)._pinned_windows_cuda_fallback()returnsNonewhendriver < 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_FLOORto(13, 0).This is safe because the pin is a specific, hash-pinned, immutable artifact we can reason about:
b9360's binary is nativesm_120aSASS (no PTX), so it needs no JIT and no newer toolkit at runtime.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
tests/studio/install/test_selection_logic.py:test_pin_offered_for_driver_13_0now asserts the pin fires on a 13.0 Blackwell host (was assertingNone); the below-floor case moved to 12.9.Refs #5887.