HQ4_G32_M5 + HQ8 + SHVQ15/3 (Track C Fast) · Qwegn native packA fast native weight pack for the Qwegn inference engine (v0.41.0+), a Swift 6.2 + Metal 4 runtime for Apple Silicon. Mixed HQ4_G32_M5 dense/attention/shared projections, HQ8_G32 output head, and Spherical Hadamard Vector Quantization (SHVQ15_G64 / SHVQ3_G64 routed MoE experts) compress baidu/ERNIE-5.5-Flash-Preview (280B total / 14B active parameters) into 77.91 GiB (76.37 GiB GPU weight arena, 2.36 bits/param), shipped with a bundled DSpark speculative drafter (dspark.qwp), FlashIndexer (flashindexer.qwp), and QLSA v1 index (assets/model.qlsa).
Runs 100% resident on a 128 GB Mac with 1,544.9 tok/s prefill at 4K (1,259.9 tok/s at 16K), 110.6 tok/s active DSpark speculative decode (7.11 tok/step, 3.47×), 89.48 tok/s CLI JSON / 63.92 tok/s Code / 62.65 tok/s Prose, 291/291 (100%) API conformance, 36/36 (100%) fidelity, 3/3 16K verbatim needles, 78/100 Code-100 (--reasoning low), and 0 steady-state allocations.
Variant selection: This is Track C (
HQ4_G32_M5trunk — fastest prefill & decode,77.91 GiB). For maximumHQ8_G32trunk precision (81–83/100Code-100,100%capability,81.57 GiB), seeqwegnai/ERNIE-5.5-Flash-Preview-hq8g32-shvq15g64-shvq3g64.
This pack uses Qwegn's
QWP1container and loads only in Qwegn (v0.41.0+). It is not a safetensors, GGUF, or MLX archive.
| Property | Value |
|---|---|
| Upstream model | baidu/ERNIE-5.5-Flash-Preview (revision de3ffd3e8d55ec0f68ca51cbcec52d2a6490cf3b) |
| Parameters | 280 B total (14 B activated per token) |
Architecture (ernie5_5_moe) |
43 layers (37 Heavily Compressed Attention HCA 128:1 + 128-tok SWA + 6 decoupled-RoPE MLA-DSA with 64H Walsh-Hadamard FlashIndexer); 1 dense L0 + 42 MoE L1–42 (512 routed experts, dual-split sigmoid top-10 + 1 shared expert 2048 intermediate, moe_latent_size=2048); 4-stream Sinkhorn-20 mHC; MultiMax lm_head; 4096 hidden; 201,216 vocab; native chatv2p3 & parallel <ernie:tool_call> |
| Pack size | 77.91 GiB model.qwp (83,658,416,304 bytes disk / 76.37 GiB GPU arena, 65,605 tensors) + 4.39 GiB dspark.qwp + 3.00 MiB flashindexer.qwp |
| Weights | HQ4_G32_M5 + HQ8_G32 + SHVQ15_G64 + SHVQ3_G64 + BF16 + F32, 2.36 bits/param |
| UMA residency (128 GB Mac) | 100% resident (77.11–77.24 GiB CLI short / 82.06–82.30 GiB CLI 4K–16K RAM, 0 steady-state allocs) |
| Native context | 1,048,576 tokens |
v0.41.0+)Measured on an idle Apple M5 Max (Mac17,6, 128 GB unified memory, 40-core Apple10 NAX GPU, macOS 26.2+) with --kv-mode q4 --temperature 0 --no-profile:
| Metric | Result |
|---|---|
CLI prefill (4K 4,087 tok / 16K d=0 / 16K DSpark) |
1,544.9 tok/s GPU (1,540.9 wall) · 1,259.9 tok/s · 1,165.5 tok/s |
CLI serial decode (mtp=0) |
43.28–44.78 tok/s (100% SHA-256 repeatability) |
CLI DSpark d=7 neural --dspark-confidence-schedule (128 tok) |
89.48 tok/s JSON (5.77 tok/rnd w/ --moe-spec-budget 36, 74.83 lossless) · 63.92 tok/s Code · 62.65 tok/s Prose |
llmprobe prefill scaling (513 / 4.1K / 8.3K / 16.3K / 32.8K / 65.6K) |
962 · 1,193 · 1,164 · 1,179 · 1,149 · 1,111 tok/s (1,252.5 tok/s median at 8,775 tok, 203 ms TTFT) |
llmprobe decode scaling (513 → 65.6K, active DSpark) |
53.9 · 54.8 · 56.7 · 54.0 · 53.4 · 60.9 tok/s (90.2–96.0 tok/s predictable spec) |
llmprobe speculative peak & warm prefix cache |
110.6 tok/s predictable (7.11 tok/step, 3.47×) · 38× warm cache (1,140 → 30 ms) |
llmprobe --full conformance, fidelity & coding |
291/291 (100%) conformance · 36/36 (100%) fidelity (0.998 mean top-1, 3/3 determinism) · 78/100 (--reasoning low: 45/50 HE, 33/50 MBPP) / 75/100 (--reasoning off) Code-100 |
| Long-context & server QA | 3/3 (100%) 16K verbatim needles · 9/9 PASS Law 28 multi-turn & multi-knob S1–S9 (0 errors, 0 steady-state allocs) |
| Container / Tensor class | Format | Role / Count |
|---|---|---|
model.qwp routed experts (gate_proj, up_proj) |
SHVQ15_G64 |
43,008 tensors (1.75 bpw spherical LUT) |
model.qwp routed experts (down_proj) |
SHVQ3_G64 |
21,504 tensors (3.25 bpw spherical LUT) |
model.qwp dense MLP, shared experts, HCA/MLA projections |
HQ4_G32_M5 |
397 tensors (5.0 bpw) |
model.qwp output head (lm_head.weight) |
HQ8_G32 |
1 tensor (8.5 bpw) |
model.qwp embeddings, router gates, norms, mHC, MultiMax |
BF16 / F32 |
307 BF16 (embed_tokens + 42 routers) + 388 F32 |
dspark.qwp speculative drafter (4.39 GiB, 86 tensors) |
SHVQ4_G32 / SHVQ15_G64 / HQ8_G32 |
31 SHVQ4_G32 + 6 SHVQ15_G64 + 1 HQ8_G32 Markov + 22 BF16 + 26 F32 |
flashindexer.qwp sparse MLA gates (3.00 MiB, 12 tensors) |
BF16 |
Layers 7, 14, 21, 28, 35, 42 (linear_gate.weight + flashindexer_bias) |
Install Qwegn (v0.41.0+) from https://github.com/qwegnai/qwegn, then:
# Download pack (model.qwp + dspark.qwp + flashindexer.qwp + assets) into ~/.qwg/models/
qwg pull qwegnai/ERNIE-5.5-Flash-Preview-hq4g32m5-hq8head-shvq15g64-shvq3g64
# Single-shot CLI run with DSpark confidence-scheduled speculation
qwg run ~/.qwg/models/ERNIE-5.5-Flash-Preview-hq4g32m5-hq8head-shvq15g64-shvq3g64 \
--kv-mode q4 --mtp-drafts 7 --mtp-draft-strategy neural --dspark-confidence-schedule \
--prompt "Write a lock-free MPSC ring buffer in Swift 6."
# OpenAI- and Anthropic-compatible local server (DSpark enabled automatically)
qwg serve ~/.qwg/models/ERNIE-5.5-Flash-Preview-hq4g32m5-hq8head-shvq15g64-shvq3g64 \
--kv-mode q4 --context-tokens 65536 --no-lazy
| File | Contents |
|---|---|
model.qwp |
Weights in Qwegn's QWP1 container (77.91 GiB, 83,658,416,304 bytes, 65,605 tensors) |
model.qwp.sha256 |
SHA-256 of model.qwp (f2d2929123dc60492dc4606826264a393bc10a7378115ea9027ff7c4fb2137cf) |
dspark.qwp |
Bundled DSpark speculative drafter (4.39 GiB, 4,717,783,925 bytes, 86 tensors) |
dspark.qwp.sha256 |
SHA-256 of dspark.qwp (8d0e7dcf067e5b5b8e41dd7dbdd3a8324e93072269abc1254a8a93848c25a15c) |
flashindexer.qwp |
Sparse MLA FlashIndexer weights (3.00 MiB, 3,149,495 bytes, 12 BF16 tensors) |
flashindexer.qwp.sha256 |
SHA-256 of flashindexer.qwp (567d26d215125b22969a39f8180df0a67f974e438269728b26528380654dc473) |
README.md / LICENSE |
This model card and Apache-2.0 license |
media/ |
qwegn_model_ernie55_flash_preview.svg and 2× Retina PNG profile |
assets/ |
Upstream config.json, tokenizer.json, chat_template.jinja, model.qlsa (4.05 MiB), ERNIE encoding/decoding files, and manifest.json (072c48ffe97ef8d5b9b7acbc3e5094d1ab88f0768a5bbcb5a6259b1c79624730) |
Licensed under the Apache License 2.0, inherited from baidu/ERNIE-5.5-Flash-Preview. Quantized by the Qwegn team; all credit for the base model belongs to Baidu ERNIE.