From a5f50848cbfb8860bcaa1a03ce502bc0458b64dd Mon Sep 17 00:00:00 2001 From: ashhart <71890694+ashhart@users.noreply.github.com> Date: Thu, 19 Nov 2026 23:20:24 +0000 Subject: [PATCH 1/3] changelog: #3972 under Unreleased --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c99b328695..2de938551e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel - Docs: the XPU guide gives the size of a Qwen3.8-27B prompt-cache state with the DFlash2 drafter and bf16 K/V (64 KiB a prompt token plus 187 MiB), so the 2 GiB default keeps nothing past about 29,700 tokens, the log line that says so, and that a larger budget needs a smaller `--context` on one card (#3972). Thanks to @SergiioB. + + - HIP: prompt attention's permlane16 fetches inactive lanes (#4080, fixes #3765). - Docs: on unified memory, `MemAvailable` can settle a little above the reserve after start-up and the pool's page count can differ by a few tens between launches with the same settings, because the room is read once while the host is still settling (#4079, fixes #3940). Thanks to @Bizuayeu. From 4fe2abddad5d21389eef897dfeb7d93f687dc487 Mon Sep 17 00:00:00 2001 From: Jay Leaton <58495321+jayleaton@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:31:09 +0700 Subject: [PATCH 2/3] docs: Qwen3.5-2B serves on CUDA and keeps a prompt cache by default --- docs/recipes/README.md | 2 +- docs/recipes/qwen3.5-2b-native.md | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/recipes/README.md b/docs/recipes/README.md index 4e4018831e8..ea7c0de03d3 100644 --- a/docs/recipes/README.md +++ b/docs/recipes/README.md @@ -15,7 +15,7 @@ For agent-assisted contributions, read the [TensorFold contributor skill](SKILL. | Nemotron 3.5 Super VL | [Native CUDA on one or two GB10s, images](nemotron-3.5-super-vl.md) | | Qwen3.8-27B | [MLX, quantization and CUDA](qwen3.8-27b.md) | | Qwen3-Embedding | [Native Metal](qwen3-embedding-metal.md), [HIP](qwen3-embedding-hip.md) | -| Qwen3.5-2B | [Native Metal preview, tied affine 4-bit](qwen3.5-2b-native.md) | +| Qwen3.5-2B | [Native Metal preview and CUDA, tied affine 4-bit](qwen3.5-2b-native.md) | | Qwen3.8 Flash Next | [MLX prefill and CUDA](qwen3.8-flash-next.md), [native CUDA](flash-next-cuda.md), [CUDA images](flash-next-vision.md), [exact SSD residency on Metal](fluid-subgraph-residency.md) | | Qwen4 dense | [Native preparation, device qualification pending](qwen4-dense.md) | | Ternary Bonsai 2 27B | [MLX](ternary-bonsai-2.md) | diff --git a/docs/recipes/qwen3.5-2b-native.md b/docs/recipes/qwen3.5-2b-native.md index 26e053e5b2c..26bc3485be0 100644 --- a/docs/recipes/qwen3.5-2b-native.md +++ b/docs/recipes/qwen3.5-2b-native.md @@ -1,10 +1,12 @@ -# Qwen3.5-2B, native Metal preview +# Qwen3.5-2B, native Metal and CUDA This recipe covers text generation with [`mlx-community/Qwen3.5-2B-MLX-4bit`](https://huggingface.co/mlx-community/Qwen3.5-2B-MLX-4bit/tree/93760be4f1f69842a46bc13dbdc0f19e291392a3), revision `93760be4f1f69842a46bc13dbdc0f19e291392a3`. Build from `main` with Zig **0.17.0** and Xcode's Metal toolchain, as described in [the native preview](../zig-preview.md#build). Keep weights outside the source checkout. +On Linux with an NVIDIA GPU, the release archive serves it without a build: follow the +[quick start](../../README.md#linux-with-an-nvidia-gpu). ```bash hf download mlx-community/Qwen3.5-2B-MLX-4bit \ @@ -44,7 +46,8 @@ one-row rounds still go through the shared lane engine. GPU execution failures s The qualified path has up to 16 rows per stream and 32 rows per shared forward. Prompt chunks have up to 128 rows and follow the server's planned boundaries. `--no-drafts` supplies the plain reference. -Cross-request prompt reuse is opt-in with `--prompt-cache-gib N`; omitting it or passing zero keeps fresh execution. +Cross-request prompt reuse is on by default, sized as the [serve flags](../run-guide.md#serve-flags) describe; +`--prompt-cache-gib N` sets its budget and `--prompt-cache-gib 0` keeps fresh execution. The core prompt-cache store keeps committed recurrence, convolution tails, attention K/V and logits in host memory. It reuses only compatible prompt cuts on the 128-token grid or the request's explicit chunk boundaries, within the memory budget. The optional paged K/V path restores the same image into newly allocated pages. This is RAM retention; @@ -59,7 +62,8 @@ that length. `--context` controls request admission; KV buffers are sized for ea | Pinned affine 4-bit/group-64 checkpoint, M5 Max, macOS 27 | Native operation, forward, cache and server checks exercised; see the contribution's receipt for results and outstanding checks. | | M1, M2, M3, M4 | Untested for this model. Uses simdgroup matrix kernels without M5 tensor units; the local load check does not replace full hardware qualification. | | M5 on other macOS / runtime versions | Untested. Rerun the operation, fidelity and exactness checks. | -| CUDA, non-Apple platforms | No native Qwen3.5-2B backend in this contribution. | +| CUDA, GB10 (sm_121), release archive | Serves the pinned checkpoint: chat, streaming, tool calls and copy drafts. | +| Other CUDA GPUs and non-Apple platforms | Not covered here; see the [CUDA release checks](../../CHANGELOG.md#110). | | Other checkpoints, model sizes, quantizations, vision / video | Outside the qualified scope. | The preview's unresolved M1–M4 exactness qualification for existing families remains in force. From 657c974c92999a36673423b600a6d6c552fcbd8f Mon Sep 17 00:00:00 2001 From: ashhart <71890694+ashhart@users.noreply.github.com> Date: Thu, 19 Nov 2026 23:20:28 +0000 Subject: [PATCH 3/3] changelog: #3974 under Unreleased --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2de938551e2..cf2893b3d6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel ## Unreleased +- Docs: the Qwen3.5-2B recipe covers CUDA as checked on one GB10 and says the prompt cache is on by default, with `--prompt-cache-gib 0` for fresh execution (#3974). Thanks to @jayleaton. + - Docs: the XPU guide gives the size of a Qwen3.8-27B prompt-cache state with the DFlash2 drafter and bf16 K/V (64 KiB a prompt token plus 187 MiB), so the 2 GiB default keeps nothing past about 29,700 tokens, the log line that says so, and that a larger budget needs a smaller `--context` on one card (#3972). Thanks to @SergiioB.