Repository navigation
GPU prebuilts: add a cuda12-legacy bundle for Maxwell/Pascal GPUs - #34
Merged
Merged
Conversation
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Member
Author
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.
Problem
Pre-Volta NVIDIA GPUs (Maxwell/Pascal, e.g. the GTX 10-series) cannot update llama.cpp in Studio. Updates fail with
approved checksum asset did not contain the selected prebuilt archive(s): llama-<tag>-bin-win-cuda-12.4-x64.zipand revert to the installed build. Reported in unslothai/unsloth#7127.Root cause
Our CUDA bundles only target sm_70+, so these GPUs fall through to the upstream
cuda-12.4archive, which the installer uses only if its checksum is in our manifest.assemble_metadata.pyrecords that passthrough checksum only for vanilla releases, and every current release is a-mix-build, so the hash is never present.Fix
Add a
cuda12-legacybundle (Linux + Windows x64) built from the merged tree, covering Maxwell and Pascal via two PTX floors (50-virtual 61-virtual), the same targets upstream ships for these cards. It gets a manifest checksum like anyapp-*bundle and slots into the existing coverage-class selection, so sm_50 to sm_61 hosts pick it up automatically.This is the complete fix. The Studio installer needs no companion change: selection is metadata-driven off the bundle's
supported_sms, so it routes Pascal to this bundle on its own once the release ships it.Boundaries: cuda12 only (CUDA 13 dropped these archs); below sm_50 (Kepler) and Jetson/Tegra out of scope. It's a required bundle like every other profile, so a compile failure blocks the release rather than silently shipping a coverage hole.
Verification
Built and exercised live (run). Both legacy jobs compiled the merged tree for sm_50/61. Both bundles carry only
compute_50/compute_61PTX (no SASS), the mix-PR binaries, and the Unsloth stamp. The Linux bundle'sllama-serverran on a GGUF with GPU offload: it JITs the PTX floor onto the local card (an Ada here; a Pascal card JITs the same PTX natively) and served correct/v1/chat/completionsand/completionresponses.Selection is also confirmed against a manifest carrying the bundle: sm_61 routes to
cuda12-legacy, sm_86 stays oncuda12-older, and an unknown-capability host is not served it, so Studio picks it up with no change.