Repository navigation
bloomery 0.3.15
bloomery 0.3.15 serves Tencent's Hy4-flash (220B total, 11B active) on one RTX 5090 and host RAM, and the
maintainer's workstation is now one RTX 5090 32 GB: this release's numbers are that card's. DeepSeek-V4.1-Flash
now defaults to a Q3_K_M file our own tools wrote with an importance matrix the engine collected, and the dense
Qwen3.8-27B drafts with its own MTP layer. Every number below names its machine.
At a glance
- Hy4-flash
Q4_K_M(168 GB) on one RTX 5090 32 GB + host RAM: prompt 429.41 tok/s at 512 tokens and 451.18 at 4,096,
decode 48.67 tok/s at depth 512 and 41.38 at depth 4,096 (the release sitting, below). Chat, image input with itsmmproj, thinking on and
off, and tool calls in its own call format. - The workstation's cards are one RTX 5090 (sm_120a): use the
linux-x86_64-cuda-sm120aarchive on a 5090. The
sm86archive still runs on any card of compute capability 8.6 or newer. - DeepSeek-V4.1-Flash defaults to
midagedev/DeepSeek-V4.1-Flash-1017-GGUF:bq3km,
the Q3_K_M layout quantized bybloomery-quantizewith an importance matrix from the engine's own prompt pass
(ppl_ds41 --imatrix). On the shipped path it holds the old default file's prompt and decode speed. - Qwen3.8-27B (dense) drafts with its in-file MTP layer in
bloomery-serve: decode +39.4 % at depth 512 and
+33.0 % at depth 4,096 (RTX A6000, depth-serve under the timing lease, 4 rounds, draft off against on, same binary). - Unsloth Dynamic V3.1 files of DeepSeek-V4.1-Flash-1017 and Qwen3.8-Flash-Next load and serve, and Ornith-1.5-122B
serves on theqwen3seat.
Hy4-flash
-
The file. Tencent's
Hy4-flash-Q4_K_MGGUF, two shards, 168 GB.bloomery-serve --model hy4 -m Hy4-flash-Q4_K_M-00001-of-00002.gguf -
Where it runs. At the unset context (1,048,576 positions) the plan on a 32 GB RTX 5090 holds the dense trunk, the
K/V and 4,416 of the 20,992 routed experts on the card (18.8 GB) and serves the other 16,576 (70.7 GB) from host RAM;
a load takes 12 s with the file in the page cache (the release sitting's warm rows). -
What it does. 42 layers (12 with DeepSeek-style sparse attention, 30 with a 512-token sliding window), 512
experts with 16 picked per token, engram lookups at four layers.reasoning_effort: "none"(or the template's own
no_think) turns thinking off. Tool calls come back in the OpenAI shape. -
The prompt pass. A placed load runs its prompt as a batch pass: the card's experts on the grouped GEMM, the host's
streamed to the card behind the pass, and the experts each prompt uses most kept resident on the card. -
Images.
--mmprojwith the Hy4 vision file (a 27-block SigLIP tower, 1,152 wide, merged 2×2 into the trunk)
takes image input in the OpenAI shape. -
How it is checked. A fixture cut from the real file (five layers) carries its gates: the tokenizer against
llama.cpp's tokenizer for the model (112 cases), the attention, indexer, router and engram kernels, the card body
end to end, the prompt batch and the serve gate.
One RTX 5090 (the release sitting)
The 0.3.15 release sitting (tools/release/sitting.sh --binary portable on the sm120a tarball built at 363103b), one
fresh server per row, every lever unset, --ctx-size unset, 128 tokens generated per request,
temperature 0, two rounds, on our workstation (RTX 5090 32 GB at 600 W, Threadripper PRO 5975WX, 8-channel DDR4-3200,
251 GiB of RAM, the files on a PCIe 4 NVMe).
| Model | Where it runs | Prompt, 512 tokens | Prompt, 4,096 tokens | Decode at depth 512 | Decode at depth 4,096 |
|---|---|---|---|---|---|
DeepSeek-V4.1-Flash bq3km + r8 |
card + CPU | 247.95 | 395.22 | 30.28 | 30.00 |
Qwen3.8-Flash-Next UD-Q4_K_XL |
card + CPU | 774.60 | 1,318.58 | 115.33 | 112.52 |
Hy4-flash Q4_K_M |
card + CPU | 429.41 | 451.18 | 48.67 | 41.38 |
GLM-5.3-Flash UD-Q4_K_XL |
card + CPU | 185.99 | 207.02 | 29.45 | 26.72 |
Nemotron 3.5 Bolt 24GB |
the whole model on the card | 4,924.73 | 7,133.50 | 182.55 | 181.20 |
Each cell is the mean of its warm rows; a row whose file was read from disk during the run (another model's load had
evicted it from the page cache) is left out. Qwen3.8's decode is with the file's MTP draft, on by default
(BLOOMERY_DRAFT=off serves without it); its prompt at 512 read 668.28 and 880.91 in the two rounds. Every Hy4-flash
row of the five-cell sitting read cold, so its cell was re-run alone on the same binary with its file in the page cache;
its row is that run's warm round. The first-request checks passed on every cell: a short and a 5,850-token prompt, and
a replay of the first request gave the same reply.
DGX Spark (GB10)
The linux-aarch64-cuda-sm121a archive's bloomery-serve, on an NVIDIA DGX Spark (GB10, 128 GB unified memory, driver
580.178.04), the release sitting with every lever unset, --ctx-size unset, 128 tokens generated, temperature 0. GB10's
card and host share one memory, so the plan holds every routed expert in it and no host tier runs.
| Model | Prompt, 512 tokens | Prompt, 4,096 tokens | Decode at depth 512 | Decode at depth 4,096 |
|---|---|---|---|---|
| Qwen3.8-Flash-Next FP4-Local | 1,171.94 | 2,616.36 | 45.34 | 46.33 |
Qwen3.8-Flash-Next UD-Q4_K_XL |
861.95 | 1,761.89 | 29.62 | 28.78 |
Hy4-flash Q4_K_M |
272.33 | 245.78 | 17.70 | 17.63 |
Qwen3.8 decodes with its MTP draft. Its rows are the sitting's quieter round; the other read the FP4 file's prompt at
839.91 and 1,404.15 while the machine reclaimed page cache, and its decode within 4 %. Hy4-flash's rows are its warm
round (the first read cold: 68.20 and 96.03). Hy4-flash decodes below what GB10's memory bandwidth allows; that gap is
open.
Serving
- With
--ctx-sizeunset, a Qwen3.8 or Kimi K3.1 server whose default context's K/V pages do not fit the host
room steps the context down instead of refusing; a set context that does not fit is refused as "does not fit" (exit 80)
with the bytes it needs. - The host's K/V cache past its floor grows by giving back host experts in the plan's paging order (Qwen3.8,
Kimi K3.1), so a default start pages only for the context it holds; a room that cannot hold the floor is refused by
name. - The tokenizer's end-of-sequence token is always a stop token, so a folder with no
generation_config.jsonno longer
writes<|im_end|>as text. A 501 names only flags the running server takes (@yulmucoffee, #865). - A DeepSeek-V4.1 server picks its expert residency and checks it at the load against one reading of the host's
free memory, so a default start near the host's room no longer refuses a pick the planner admitted. - An expert stream's ring takes only the bytes its plan counts (none when the plan holds no ring), so an image
request on a tight card no longer passes the plan at its first prompt (Hy4-flash, Mistral Large 4, MiniMax M3). - A card another process holds is refused with each holder's process name and whether it is still alive.
- The CUDA driver's launch queue is set to 2× when unset, so a prompt batch's host thread does not wait on a full
queue.
Mac
bloomery-serve-metaldrafts with a model's MTP layer (--draft mtp --mtp SIDECAR) and keeps the draft across a
context cut.- A hidden size that is not a multiple of 256 (Qwen2.5-0.5B's 896) now writes its last embedding values in every 32- or
64-value block format, so such a model no longer turns to noise after its first token (@yulmucoffee, #869). - An mlx-community folder that bundles an MTP head (
Qwen3.5-0.8B-OptiQ-4bit'smtp_fileand its six sibling keys)
opens; the keys are read as ignored, each with its reason (#869).
Quantize
bloomery-quantizewrites Q3_K (step for step with ggml's reference), has a DeepSeek-V4.1 Q3_K_M rule set, and
--fitpicks a per-unit type mix for a byte budget from a measured sensitivity table.
Verification
- Every model family is checked on a fixture cut from its file (a few layers, real tensors) instead of the whole
file, and the kernels on unit tests; only the five headline files above stay on the workstation. The V4.1
comparison with ik_llama.cpp runs on its fixture sets (ik cannot read the bq3km file's engram keys).
Known limits
- Hy4-flash takes
reasoning_effort: "none"to turn thinking off;chat_template_kwargs: {"enable_thinking": false}
is not read for it in 0.3.15 (its template has no such switch). - With
--ctx-sizeunset, Hy4-flash and DeepSeek-V4.1-Flash plan 1,048,576 positions, and the K/V they reserve on the
card leaves fewer routed experts there; a smaller--ctx-sizekeeps more. - The README's "Known limits (0.3.15)" hold.
Thank you. @yulmucoffee ran small mlx-community folders and OpenAI-compatible clients against
bloomery-serve-metal on an M5 Pro and reported each result with its commands (#865, #869). The stop-token, 501, embedding
and OptiQ fixes above come from those reports.
AI help: this release's code, gates and notes were written with Claude (Claude Code) under the maintainer's review.
Known issue (added after release)
On an RTX 50 series card or a DGX Spark (GB10) with a driver older than CUDA 13.1, such as the R580 branch, some kernels can end with "an illegal memory access was encountered". The cause is a bug in the driver's PTX compiler. Use a driver of CUDA 13.1 or later; the next release fixes it on any driver. Details: #1203.