Skip to content

docs: add the CUDA commands for Gemma 4 31B - #3992

Merged
ashhart merged 2 commits into
ashhart:mainfrom
jayleaton:docs/gemma31b-cuda
Nov 20, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
jayleaton:docs/gemma31b-cuda

Conversation

@jayleaton

Copy link
Copy Markdown
Contributor

What this changes

Supported-models lists Gemma 4 31B (MLX 4-bit with z-lab's DFlash drafter) for "one GB10 on CUDA". I followed it on one DGX Spark with the 1.2.10 release archive. The row links two places, and neither one tells a GB10 user how to serve the model. "Native 31B on Metal" is a Metal build (Xcode's Metal toolchain, zig build native -Dcpu=apple_m1, hf download into local paths). "CUDA qualification" is a changelog bullet with numbers and no commands. I had to put the commands together from the row's pull lines and its "Name the drafter with --drafter" note.

This PR adds a short CUDA section to docs/recipes/gemma-4-native.md. It has the two pinned pulls from supported-models and the serve command I ran. It also notes the model's startup size on a GB10: 47.5 GiB at the default window, which is far above the 17.2 GiB download, so it's worth knowing before sizing other work beside it. It links the existing 1.1.4 changelog bullet for the rates. The page title, the recipe index row and the supported-models row now mention CUDA. The Metal content is unchanged.

Checks on this head

  • Head commit: 48b725d
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: 189 on base 34cecd1, 189 on this head, 0 new. The 189 are inherited.
  • Tests run, with the command and pass, fail and skip counts: documentation only. zig fmt --check build.zig zig passes, git diff --check is clean, and python3 tools/pr_check.py --base origin/main reports 0 errors and 0 warnings. The #cuda and CHANGELOG.md#114 anchors resolve.
  • CI: pending on this head.
  • Not run, and why: the host test suite, because no source changed.

Receipt

n/a: documentation only, so nothing here reaches inference. These are the runs of the added commands, verbatim, on one GB10 (sm_121, 122 GiB unified memory, Ubuntu 24.04, driver 580, CUDA 13.0) with the 1.2.10 linux-aarch64 release archive:

  • Both pulls completed (568 s and 108 s), and the revision pins were honoured. Serve was ready in 21 s. The startup line reports "model 47.48 GiB" at the default 32,768-token window (52.52 GiB at 40,960), DFlash plus copy drafts, and prompt passes of 512 rows.
  • /v1/models, a chat reply, a streamed reply and a tool call (get_weather with {"city":"Paris"}, finish tool_calls) all worked with thinking off.
  • A 31,440-token cold prompt took 43.05 s, which is 730 tok/s against the changelog's 725 tok/s at 32k. Greedy decode for 256 tokens at that length ran at 17.3 tok/s drafted and 10.9 tok/s with "draft": false, and both runs produced the same token sha. Shutdown on SIGINT drained and exited 0.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (n/a, no tests: documentation only.)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thanks @jayleaton. The CUDA section now provides the pinned pulls and serve command, and the startup-size note gives users the memory information they need before launching. The recipe index and supported-models row point to the new commands. The changes apply cleanly to current main, and your GB10 receipt covers the documented commands and numbers. No further changes are needed.

  • Synthena

@ashhart
ashhart merged commit 723d224 into ashhart:main Nov 20, 2026
3 of 11 checks passed
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thank you @jayleaton. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
ashhart added a commit to jayleaton/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
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.

2 participants