Qwen3.8-27B-MACaQ-W4A8 โ Saber weight packs
Prebuilt Saber weight packs of Qwen/Qwen3.8-27B in Saber's
W4A8 integer format: per-row int4 weights and per-token int8 activations on RDNA4's int8 WMMA, in the
MACaQ per-channel-scale + block-32 Hadamard basis (arXiv:2611.10649).
It is the successor of Qwen3.8-27B-MACaQ-MXFP4:
lower KL to BF16, a faster decode step and a faster first token on the same hardware.
These are not safetensors: they are Saber's own SBRPACK1 pack format (rank{0,1}.pack + manifest.json),
loadable only by the Saber engine on RDNA4 (gfx1201). Download only the folder for your card count.
| Folder | What | Size |
|---|---|---|
tp2/ |
target pack, tensor-parallel 2 (two cards) | 20.5 GB |
tp1/ |
target pack, tensor-parallel 1 (one card) | 19.5 GB |
tokenizer.json, tokenizer_config.json, vocab.json, merges.txt |
the tokenizer used for every measurement below | small |
qwen-fixed-v22.3.jinja |
the chat template used for every measurement below | small |
SHA256SUMS |
sha256 of every file above | small |
The drafter is not in this repo, so a target update never makes you re-download it. Two DFlash2 drafters pair
with this target (both share its lm_head byte for byte; Saber refuses a drafter whose head differs):
| Drafter repo | Recipe | Measured with this target (TP=2) |
|---|---|---|
Qwen3.8-27B-DFlash2-Drafter-W4A8-SABER |
the same W4A8 integer recipe | recommended: b1 tok/s +7.3 % over the FP8 drafter |
Qwen3.8-27B-DFlash2-Drafter-FP8-SABER |
FP8 block-scaled | the drafter the MXFP4 MACaQ pack ships with |
Pair tp2/ with a drafter's tp2/ and tp1/ with its tp1/; never mix TPs. Greedy outputs are not byte-identical
across the two drafters (the target stores its GDN state in f16 at every verify step, so the acceptance schedule moves
the target's low bits at near-ties); quality and task scores are the same within noise, acceptance decides speed.
What is in the target pack
Quantized from the original BF16 checkpoint:
- MACaQ basis. Each quantized linear's input is multiplied by a calibrated per-channel vector
tand rotated by a normalized 32-point Walsh-Hadamard transform per 32-element block of K; the weight is stored in the same basis (W' = H32 (W / t)). The engine appliesx' = H32 (x * t)inside the activation producers. No launches are added. - Per-row int4 weights. Every decoder linear holds int4 codes
[-8, 7]with one f32 scale per output row (no group scales inside the K loop): a Hessian-weighted clip search per row, then flip refinement of the codes against calibration activations. - 19 linears promoted to int8 (W8): 10
linear_attn.out_proj, 4self_attn.o_proj, 5mlp.down_proj(the output-side projections the calibration ranks most sensitive), per-row int8 in the same basis. - Per-token int8 activations (symmetric, absmax / 127) after the Hadamard; the GEMM is an int8 WMMA with an exact int32 accumulator over all of K, both scales applied in the epilogue.
lm_headis the BF16 checkpoint's own bf16 head, byte for byte.embed_tokens, norms, conv and GDN parameters are bf16 passthrough. The KV cache is fp8 e4m3.
Manifest tag: macaq_iu8/1 i4row+i8row a8tok had32 + macaq_iu8_w8(19 ops). The pack drives the engine: a supported
build turns the integer kernels on by itself and the boot log prints
macaqiu8 rank R: macaq_iu8/1 i4row+i8row a8tok had32 (304 iu8 GEMMs: 285 W4 per-row int4 + 19 W8 per-row int8; ...).
Each TP=2 rank's records are exact slices of the TP=1 pack's (checked for every record), so both folders hold the same weights.
Requirements
- Engine: a Saber build that reads the
macaq_iu8/1pack tag (andmacaq_iu8d/1for the W4A8 drafter). Engine releases older than that refuse these packs at boot, by name (the records they bind are missing), and never serve them silently. See the Saber repository for the first release with W4A8 support. - Hardware: 2x AMD Radeon AI PRO R9700 (gfx1201 / RDNA4, int8 WMMA, 32 GB each) for
tp2/, or one card fortp1/. - Disk: 20.5 GB (TP=2) or 19.5 GB (TP=1), plus the drafter (6.8-8.2 GB, see its card).
Quality
Engine (Saber) top-5 KL divergence against the BF16 model on 76 held-out sequences (prose, chat and code windows), context 32,768, against the BF16 top-20 log-probabilities; brackets are 95 % paired bootstrap intervals.
| top-5 KL vs BF16 | top-1 agreement | perplexity (BF16 4.879) | |
|---|---|---|---|
| this pack, TP=2 | 0.02134 | 94.22 % | 4.901 |
| this pack, TP=1 | 0.02065 | 94.41 % | 4.899 |
Qwen3.8-27B-MACaQ-MXFP4, TP=2 |
0.02258 | 94.19 % | 4.910 |
Qwen3.8-27B-MACaQ-MXFP4, TP=1 |
0.02279 | 94.20 % | 4.905 |
| this pack vs MACaQ-MXFP4 | TP=2 -5.5 % [-8.7, -2.0], TP=1 -9.4 % [-13.3, -4.7] |
Task checks (TP=2, context 262,144, the chat template above, 8 concurrent sequences): GSM8K 500 questions 488/500 (the MXFP4 MACaQ pack 486/500 in the same paired run); needle retrieval at 32k and 120k tokens 6/6.
Speed (2x Radeon AI PRO R9700, TP=2, 210 W, 262,144 context, prefix caching on)
Paired A B A B boots, the same engine binary, the FP8 drafter on both arms; BetterBench --quick (5 passes per
category: its p99 values are indicative only), decode step = the engine's own per-step probe.
| MACaQ-MXFP4 | this pack | change | |
|---|---|---|---|
| decode step b1 / b8 (ms) | 22.9 / 31.1, 23.0 / 31.3 | 21.6 / 29.3, 21.6 / 29.4 | -5.9 % / -6.0 % |
| BetterBench single-stream decode (tok/s) | 224.6, 221.6 | 229.4, 230.5 | +2.9 % |
| BetterBench concurrency 8 (aggregate tok/s) | 605.8, 614.0 | 643.8, 640.4 | +5.5 % |
| TTFT p50 single / concurrency 8 (ms) | 47 / 101.1, 48 / 100.8 | 38 / 87.6, 38 / 87.4 | -9.5 / -13.5 ms |
| update p99 (ms) | 23.8, 23.9 | 22.5, 22.6 | -1.3 ms |
| cold prefill 4k / 16k (tok/s) | 5,174 / 5,132, 5,152 / 5,125 | 5,269 / 5,192, 5,263 / 5,190 | +2.0 % / +1.2 % |
The KV pool at 262,144 context with the drafter is 2.4 % larger than the MXFP4 pack's (47,135 vs 46,008 blocks). With the W4A8 drafter instead of the FP8 one (same target, paired): b1 step 21.52 / 21.60 -> 20.86 / 21.08 ms, b1 tokens per step 3.072 -> 3.200, b1 tok/s 140.9 / 140.4 -> 151.7 / 150.0 (+7.3 %), BetterBench single 233.4 / 233.4 -> 242.7 / 237.6 tok/s, concurrency 8 tied (+1.7 %), GSM8K 487/500, needles 6/6.
TP=1 (one card, context 32,768, paired, the FP8 drafter): decode step b1 37.2 -> 35.6 ms, b8 48.8-49.1 -> 46.4-46.5 ms, prefill 4k 3,206-3,227 -> 3,264 tok/s; the KV pool is 30 % larger than the MXFP4 TP=1 pack's.
Download
# two cards (TP=2): the target + the W4A8 drafter
hf download Launch80/Qwen3.8-27B-MACaQ-W4A8-SABER --local-dir /mnt/nvme/saber-packs/Qwen3.8-27B-MACaQ-W4A8-SABER \
--include "tp2/*" --include "tokenizer.json" --include "qwen-fixed-v22.3.jinja"
hf download Launch80/Qwen3.8-27B-DFlash2-Drafter-W4A8-SABER \
--local-dir /mnt/nvme/saber-packs/Qwen3.8-27B-DFlash2-Drafter-W4A8-SABER --include "tp2/*"
# one card (TP=1): replace tp2 with tp1 in both commands
Check the files with sha256sum -c SHA256SUMS --ignore-missing in each download directory.
Serve
cd saber-engine
SABER_PACKS=/mnt/nvme/saber-packs \
TIER=Qwen3.8-27B-MACaQ-W4A8-SABER/tp2 DRAFT=Qwen3.8-27B-DFlash2-Drafter-W4A8-SABER/tp2 \
TOKENIZER=/mnt/nvme/saber-packs/Qwen3.8-27B-MACaQ-W4A8-SABER/tokenizer.json \
CHAT_TEMPLATE=/mnt/nvme/saber-packs/Qwen3.8-27B-MACaQ-W4A8-SABER/qwen-fixed-v22.3.jinja \
MODEL=Qwen3.8-27B-MACaQ-W4A8 tools/serve_27b.sh --enable-prefix-caching on
# one card: add --tp 1 and use the tp1 folders
The measured TP=2 configuration as one saber serve line (packs mounted at /packs):
saber serve --engine real --engine-tp 2 --engine-device 0 --engine-peer-device 1 \
--pack /packs/Qwen3.8-27B-MACaQ-W4A8-SABER/tp2 \
--engine-draft-pack /packs/Qwen3.8-27B-DFlash2-Drafter-W4A8-SABER/tp2 --engine-draft-block 8 \
--tokenizer tokenizer.json --chat-template qwen-fixed-v22.3.jinja \
--engine-max-ctx 262144 --engine-max-seqs 8 --engine-decode-batches 1,2,3,4,8 --engine-decode-widths 1,5,8 \
--engine-prefill-rows 96,128,192,256,320,384,512,768,1024,1536,2048 --engine-rectangular-widths \
--engine-budget-mib 30500 --served-model-name Qwen3.8-27B-MACaQ-W4A8 --port 8080
This serves an OpenAI-compatible API on port 8080.
Limits
- Quality is measured as KL, top-1 agreement and perplexity against BF16, plus GSM8K and needle tests; no other benchmark suite has been run on this pack.
- Saber-native packs only: no other engine can load them, and they are not a drop-in safetensors checkpoint.
- The integer kernels need RDNA4's int8 WMMA (gfx1201); no other architecture is supported.
- TP=1 speed was measured at context 32,768 only.
License and credits
Apache-2.0, following the base model. Weights: Qwen team (Qwen/Qwen3.8-27B). Quantization recipe: MACaQ
(arXiv:2611.10649; project page,
code), the per-row integer form calibrated and packed by Launch80 with Saber.
Tokenizer files are the Qwen3.8 tokenizer as distributed with amd/Qwen3.8-27B-Quark-AWQ-MXFP4.
Model tree for Launch80/Qwen3.8-27B-MACaQ-W4A8-SABER
Base model
Qwen/Qwen3.8-27B