Skip to content

Studio Windows: Blackwell on a sub-13.3 driver has no GPU-capable prebuilt (ggml cuda-12.4 predates sm_120) #5887

Closed

Description

@danielhanchen

Context

Follow-up to #5879 (driver-version gating of the Windows CUDA prebuilt selector).

On Windows, ggml-org currently publishes only cuda-12.4 and cuda-13.3. With the gating from #5879, a Blackwell GPU (sm_120) on a driver advertising < 13.3 (13.0 / 13.1 / 13.2) is gated out of cuda-13.3 and falls back to cuda-12.4. But cuda-12.4 predates Blackwell (native sm_120 support landed in CUDA 12.8), so it cannot offload on sm_120 and runs CPU only.

This is not a regression from #5879: before it, the same box requested the hardcoded 13.1, missed, and fell to cuda-12.4 too. It is a gap in the available ggml-org Windows assets.

Empirical confirmation

Validated on an RTX PRO 6000 Blackwell (sm_120), driver 580.82.07 (nvidia-smi "CUDA Version: 13.0"), Ubuntu 22.04:

  • A cuda12 build compiled for archs 700-890 only (the analog of ggml cuda-12.4) produces no kernel image for sm_120, so it does not offload (empty output / stalled warmup).
  • A cuda12 build compiled with 12.8 (archs incl. 1200) offloads to the GPU and generates coherently.
  • Linux is unaffected: unsloth's own cuda12-newer bundle is built with 12.8 and covers sm_120.

Options

  1. Land the GPU-offload smoke test (Studio: never silently run GGUF on CPU when a GPU is present (validate offload, recover via source build) #5858), then for a Blackwell host gated out of cuda13, attempt the highest published cuda13 build and keep it only if validate_server confirms real GPU offload, falling back to cuda-12.4 otherwise. Recovers GPU for the minor-version-compatible subset without shipping a silently CPU-only build.
  2. Publish a cuda-12.8 (or cuda-13.0) Windows build so there is a sub-13.3 asset that covers Blackwell.

Refs #5879, #5858, #5807.

Activity

  1. danielhanchen commented on May 31, 2026

    @danielhanchen
    MemberAuthor

    Bisected ggml-org/llama.cpp releases to pin when the Windows Blackwell path actually broke.

    Boundary (UTC, both on 2026-05-27):

    • b9360 13:13 - last release shipping llama-bin-win-cuda-13.1 (the last non-13.3 Blackwell-capable Windows build).
    • b9365 17:05 - first release shipping llama-bin-win-cuda-13.3. ggml skipped 13.2; the cuda13 minor went straight 13.1 -> 13.3.

    ggml shipped 12.4 + 13.1 continuously before this (250 of the last ~300 releases carried 13.1). So the gap is created entirely by ggml's b9365 bump, not by anything on our side.

    Why 12.4 cannot cover the gap (confirmed in ggml/src/ggml-cuda/CMakeLists.txt): the build appends 120a-real (sm_120) only when CUDAToolkit_VERSION >= 12.8, and 121a-real only at >= 12.9. So:

    • cuda-12.4 build: no sm_120, never offloads on Blackwell.
    • cuda-13.1 and cuda-13.3 builds: include 120a-real/121a-real, do offload on Blackwell.

    So until b9360 a Blackwell box on a 13.1/13.2 driver got GPU on Windows (it could run the 13.1 build, which covers sm_120). After b9365 that build is gone, the box is gated off 13.3, and the only sub-13.3 Windows asset is 12.4 (CPU).

    Cleanest restore is ggml publishing a sub-13.3 Blackwell asset (a cuda-12.8 or cuda-13.0 Windows build) so option 2 here is the low-risk path. Option 1 (try gated 13.3, keep only if #5858's offload check passes) recovers the MVC-capable subset in the meantime.

  2. danielhanchen commented on May 31, 2026

    @danielhanchen
    MemberAuthor

    Addressed the 13.1/13.2-driver case in #5879 (commit dd3bed8). The selector now deterministically pins b9360's cuda-13.1 build as a GPU fallback: on the upstream install path, when a Blackwell (sm_120/sm_121) host is gated off the in-release 13.3 build but its driver can run 13.1, the pin is inserted ahead of cuda-12.4, with verified sha256 for both the llama and cudart archives. It self-disables the moment a release publishes a driver-runnable cuda13 build, so it is not a permanent hardcode.

    Resulting order for a 13.1/13.2 Blackwell host: [b9360 cuda-13.1, cuda-12.4, windows-cpu] (GPU first, graceful CPU degradation preserved).

    Residual (still open): a Blackwell host on a 13.0 or 12.x driver stays CPU-only, since b9360 ships 13.1 which those drivers cannot run and no older sub-13.1 win-cuda-13 build exists. That sliver is a driver-update matter, or is closed by option 2 here (ggml-org publishing a cuda-12.8 / cuda-13.0 Windows build).

  3. danielhanchen commented on May 31, 2026

    @danielhanchen
    MemberAuthor

    Landed in #5879 (merged as 5076837). The 13.1/13.2-driver Blackwell case now gets the pinned b9360 cuda-13.1 GPU build on both install paths. Leaving this open for the residual 13.0/12.x-driver sliver, which closes via a driver update, ggml-org shipping a sub-13.3 Windows build, or the GPU-offload check in #5858.

  4. danielhanchen commented on Jun 17, 2026

    @danielhanchen
    MemberAuthor

    This issue should be fixed now - sorry on the delay - reinstall the latest - Linux / WSL / Mac curl -fsSL https://unsloth.ai/install.sh | sh or Windows irm https://unsloth.ai/install.ps1 | iex - if the issue is still there, please open another issue - appreciate it again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions