Skip to content

GPU prebuilts: add a cuda12-legacy bundle for Maxwell/Pascal GPUs - #34

Merged
oobabooga merged 2 commits into
unslothai:masterfrom
oobabooga:cuda12-legacy
Jul 16, 2026
Merged

oobabooga merged 2 commits into
unslothai:masterfrom
oobabooga:cuda12-legacy

Conversation

@oobabooga

@oobabooga oobabooga commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

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.zip and 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.4 archive, which the installer uses only if its checksum is in our manifest. assemble_metadata.py records 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-legacy bundle (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 any app-* 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_61 PTX (no SASS), the mix-PR binaries, and the Unsloth stamp. The Linux bundle's llama-server ran 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/completions and /completion responses.

Selection is also confirmed against a manifest carrying the bundle: sm_61 routes to cuda12-legacy, sm_86 stays on cuda12-older, and an unknown-capability host is not served it, so Studio picks it up with no change.

@oobabooga

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 583d88d6a6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@oobabooga

Copy link
Copy Markdown
Member Author

cc @danielhanchen

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