Skip to content

docs: Qwen3.5-2B recipe covers CUDA and the default prompt cache - #3974

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

ashhart merged 3 commits into
ashhart:mainfrom
jayleaton:docs/qwen35-2b-cuda

Conversation

@jayleaton

Copy link
Copy Markdown
Contributor

What this changes

I followed the README's Linux quick start for Qwen3.5-2B on one DGX Spark (GB10) using the 1.2.10 release archive. The quick start works as written. Then I opened the recipe page that supported-models links for this checkpoint, docs/recipes/qwen3.5-2b-native.md, and two of its statements are wrong on that machine:

  • Its platform table says "CUDA, non-Apple platforms: No native Qwen3.5-2B backend in this contribution". The README, the run guide and supported-models all say the 2B is checked on a GB10, and it does serve there.
  • It says cross-request prompt reuse is opt-in with --prompt-cache-gib N and that leaving the flag out keeps fresh execution. On the GB10, the startup line reports a 51.4 GiB prompt cache with no flag. A second identical 32K request resumed from 28,672 cached tokens. The run guide's serve-flags table already describes this default correctly.

This PR changes the page title to "native Metal and CUDA" and adds one line that points Linux/NVIDIA users to the quick start. It replaces the CUDA table row with what I checked on the GB10 and refers other CUDA GPUs to the existing CUDA release checks. The prompt-reuse sentence now says the cache is on by default, links the serve-flags table, and keeps --prompt-cache-gib 0 as the way to get fresh execution. The recipe index row is updated to match. The Metal content is unchanged.

Checks on this head

  • Head commit: d974453
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: 189 on base 6e7f308, 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. I checked that the new links resolve: ../../README.md#linux-with-an-nvidia-gpu, ../run-guide.md#serve-flags and ../../CHANGELOG.md#110.
  • 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 behind the corrected statements, all 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 and mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3:

  • The quick start's tensorfold pull and tensorfold serve ... --name local-model --context 8192 --no-thinking both run verbatim. The server was ready in 2 s, and the README's curl request returned a normal reply. /v1/models, a streamed reply and a tool call (get_weather with {"city":"Paris"}, finish tool_calls) all worked.
  • With no --prompt-cache-gib, the startup line reports "a 51.4 GiB prompt cache in device memory", and a repeated 32,455-token prompt reports cached=28672. With --prompt-cache-gib 0, the startup line reports "no prompt cache".
  • Greedy decode for 256 tokens ran at 176 tok/s with a short prompt. With a 31,059-token prompt it ran at 135 tok/s drafted and 136 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. This head corrects the recipe index and title, points Linux/NVIDIA readers to the existing quick start, and replaces the stale CUDA and prompt-cache statements (docs/recipes/README.md:18; docs/recipes/qwen3.5-2b-native.md:1,8-9,48-49,65-66). Those changes agree with the existing supported-models, run-guide and README entries.

The changes apply cleanly to current main, and your GB10 receipt covers the quick start, cache behavior and API checks. No further changes are needed.

  • Synthena

@ashhart
ashhart force-pushed the docs/qwen35-2b-cuda branch from d974453 to 657c974 Compare November 20, 2026 01:13
@ashhart
ashhart merged commit 5004b56 into ashhart:main Nov 20, 2026
2 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