Skip to content

bloomery v0.4.2 — Qwen4-35B-A3B Day-0 (CUDA, DGX Spark, Metal)

Choose a tag to compare

@midagedev midagedev released this 04 Dec 08:16
· 48 commits to main since this release

bloomery v0.4.2 — Qwen4-35B-A3B Day-0 Support (CUDA, DGX Spark, Apple Silicon Metal)

Highlights

  • Qwen4-35B-A3B (qwen4exp) Day-0 Support:
    • Full CUDA support for both GGUF (unsloth/Qwen4-35B-A3B-GGUF, including UD-Q4_K_XL with Q4_K / Q5_K / Q6_K routed experts) and native NVFP4 checkpoint folders (RadixArk/Qwen4-35B-A3B-NVFP4, no conversion needed, with automatic load-time BF16→Q8_0 dense weight quantization for ~2× lower dense bandwidth; BLOOMERY_QWEN38_DENSE=bf16 restores BF16).
    • Causal DFlash2 Speculative Decoding (RadixArk/Qwen4-35B-A3B-Dflash2, BLOOMERY_DRAFT=dspark BLOOMERY_DSPARK_MODEL=<dflash2.gguf>) working on both GGUF and NVFP4 checkpoint folders, with adaptive width control and full multi-turn KV cache (f16 / q8_0) + host spill support.
    • Apple Silicon Metal (bloomery-serve-metal / generate_metal): native Metal kernels for Qwen4's 4-stream Gated Hyper-Connections, host-resident Per-Layer Embeddings (PLE), GDN (KdaFullGate), and Query-Sparse Attention (QSA) with batched prefill and multi-turn KV/recurrent/PLE checkpoint reuse.
    • DGX Spark (GB10, sm_121a): pre-packed sm_121a cubins with native FP4 + Causal DFlash2.
  • Common GPU Kernel Optimizations (benefiting all models):
    • Hoisted dequantization & scale multiplication in blocks_gemv_mcol_staged (Q8_0 and MXFP8 m=4..=8).
    • Zero-SMEM, coalesced 128-bit (U32x4) 4-warp BF16 GEMV kernels (bf16_gemv_1col_vec, bf16_gemv_mcol_vec).
    • Fixed unified bloomery-serve draft fallback when serving Qwen4 GGUF files without BLOOMERY_DRAFT.

Verified Benchmarks (Qwen4-35B-A3B, v0.4.2)

NVIDIA RTX 5090 (32 GB, sm_120a, driver 615.71.09, CUDA 13.3, ctx=32768, --autotune on)

Variant Prompt Prefill (pp~2048 / pp~4096) Plain Decode Causal DFlash2 Decode
NVFP4 folder (Q8_0 dense, default) 17,271 / 15,628 tok/s (+58.6 % vs llama.cpp 10,889) 251–252 tok/s 588.3 tok/s (tg128 @ pp~2048) · 445.9 Ko math · 425.7 Ko code · 407.5 En math
UD-Q4_K_XL GGUF 15,465 / 15,428 tok/s (+42.0 % / +40.9 % vs llama.cpp) 267–268 tok/s (+19.7 % vs llama.cpp 223.5) 528.1 tok/s (tg128 @ pp~2048) · 443.7 Ko code · 433.9 Ko math · 408.1 En math
  • Korean 20-prompt chat benchmark (d2-prompts-ko.tsv, UD-Q4_K_XL plain): 265.4 tok/s vs llama.cpp 59b7165 215.6 tok/s (+23.1 %).
  • Korean Hard reasoning accuracy (ko-hard-07..12, thinking ON): 11–12 / 13.

NVIDIA DGX Spark (GB10, 128 GB unified, sm_121a, driver 580.178.04, ctx=32768, --autotune on)

Variant Prompt Prefill (pp~2048 / pp~4096) Plain Decode Causal DFlash2 Decode
NVFP4 folder (Q8_0 dense) 4,006 / 3,755 tok/s 60.8–61.3 tok/s 153.9 tok/s (tg64 @ pp~2048, 2.5× plain) · 117.3 Ko math · 107.5 En math · 104.0 Ko code
UD-Q4_K_XL GGUF 3,552 / 3,376 tok/s 61.6–62.1 tok/s 130.4 tok/s (tg64 @ pp~2048) · 106.7 Ko math · 106.2 En math · 105.9 Ko code

Apple M4 Pro (48 GB unified, macOS Metal, bloomery-serve-metal, ctx=8192)

Variant GPU Memory Prompt Prefill (pp~512 / pp~2048) Decode
UD-Q4_K_XL GGUF 24.49 GB 369.3 / 405.7 tok/s 50.6 tok/s (tg64) · 50.0 Ko math · 47.5 En math · 45.5 Ko code (multi-turn KV/PLE reuse verified)

Quick Start

# Linux / Windows / DGX Spark (GGUF)
bloomery-serve --hf unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_XL

# NVFP4 checkpoint folder + Causal DFlash2 speculative decoding
BLOOMERY_DRAFT=dspark BLOOMERY_DSPARK_MODEL=/path/to/Qwen4-35B-A3B-Dflash2-Q8_0.gguf \
  bloomery-serve -m /path/to/Qwen4-35B-A3B-NVFP4 --autotune on

# Apple Silicon Mac (Metal)
bloomery-serve-metal -m /path/to/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf --ctx-size 8192

Desktop app and Windows

  • The desktop app 0.4.2 carries the 0.4.2 engine: bloomery_0.4.2_aarch64.dmg (Developer ID signed and notarized) and bloomery_0.4.2_x64-setup.exe.
  • The Windows archive is bloomery-0.4.2-windows-x86_64-cuda-sm120a.zip.

Not run for this release

No release gate batch and no release sitting ran on the shipped binaries. The tables above come from the measuring sessions on each machine on 2026-12-04, not from the archives.