Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ 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.



- 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.
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
10 changes: 7 additions & 3 deletions docs/recipes/qwen3.5-2b-native.md
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -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;
Expand All @@ -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.
Expand Down
Loading