SenseNova-Loop-9B · HQ4_G32 · Qwegn native pack
A native weight pack for the Qwegn inference engine (v0.27.0+), a Swift 6.2 + Metal 4 runtime for Apple Silicon. HQ4_G32 Hadamard block quantization paired with preserved F32 two-stream Sinkhorn-20 mHC / Gated-DeltaNet state planes and a Spherical Hadamard SHVQ4 Latent Sparse Attention sidecar (model.qlsa) packs sensenova/SenseNova-Loop-9B into 7.38 GiB (7,922,099,956 bytes, 4.66 GiB GPU trunk weights, 4.87 GiB server text RSS), delivering 2,044.9 tok/s prefill @4K (1,943.5 @16K, 1,763.2 @64K), 165.7 tok/s weight-free .ngram speculative decode (5.49 tok/step), 152.96 tok/s 4-stream HTTP decode (3.02×), 18 ms warm prefix cache (46.1×), 211/211 (100%) API conformance, 92% HumanEval (36/50 Code-50), and 3/3 needle recall at 16K and 64K with 0 steady-state allocations.


This pack uses Qwegn's own
QWP1container and loads only in Qwegn (v0.27.0+). It is not a safetensors, GGUF, or MLX archive.
At a glance
| Property | Value |
|---|---|
| Upstream model | sensenova/SenseNova-Loop-9B @ 329a65f701ba8c48b73c30d0cbaa6f0449733673 |
| Parameters | 9.41 B (9,412,963,952 parameters across 857 tensors) |
Architecture (sensenova_loop / qwen3_5_text) |
32 physical layers looping [4..28] twice (eval_count = 2) → 56 effective layers (42 GDN + 14 GQA 16Q / 4KV, head_dim = 256, partial_rotary_factor = 0.25); 2-stream Sinkhorn-20 mHC (F32 planes); 27-depth ViT (2,304 pos embeds); 248,320 vocab |
| Pack size | 7.38 GiB (7,922,099,956 bytes, model.qwp) + 1,539.0 KiB (1,575,943 bytes, model.qlsa) |
| Weights | HQ4_G32 (84.31%) + unquantized BF16 / F32 (15.69%), 6.73 bits/param on disk |
| UMA residency (128 GB Mac) | 100% resident (4.66 GiB GPU weights; 4.869 GiB --no-load-vision / 6.584 GiB --load-vision qwg serve, 0 steady-state allocs) |
| Native context | 524,288 tokens (YaRN factor = 2.0 from 262,144, rope_theta = 10,000,000); qualified to 1,048,576 (1M) tokens |
| LSA sidecar | ✅ model.qlsa (SHVQ4 SVD projection sidecar for 14 looped attention passes) |
Performance on Qwegn (v0.27.0)
Measured on an idle Apple M5 Max (Mac17,6, 18-core CPU, 40-core Apple10 NAX GPU, 128 GB unified memory, 585 GB/s DRAM, 950 GB/s SLC, macOS 26+) with --kv-mode q4 --lsa-mode auto --temperature 0 --no-profile:
| Metric | Result |
|---|---|
CLI prefill (512 / 4K / 16K / 64K / 10.4K server) |
1,906.3 · 2,044.9 · 1,943.5 (1,713.2 paired) · 1,763.2 (1,562.0 paired) · 1,650.3 tok/s |
| Prefix cache TTFT (cold / warm / cached) | 108 ms · 830 ms → 18 ms (46.1×) |
Single-stream decode (qwg serve / CLI @512 / CLI code_edit .ngram d=5) |
58.4 tok/s · 72.25 tok/s · 98.07 tok/s |
Speculative decode (weight-free .ngram d=5, d=0 == d=5 7/7 SHA-256) |
165.7 tok/s predictable serve (5.49 tok/step) |
4-stream concurrent HTTP (/v1/chat/completions, B=4 mHC+LSA) |
152.96 tok/s aggregate (3.02× vs 50.72 serial; 130.6 tok/s in llmprobe, 270 ms worst TTFT) |
Offline BF16 teacher fidelity & llmprobe API conformance |
0.0236 nats KLD / 100.0% top-1 vs BF16 · 98.89% fidelity · 211/211 (100%) conformance |
Coding, reasoning & capability (llmprobe) |
23/25 (92%) HumanEval (36/50 Code-50) · 10/12 Core-12 thinking · 80.6% capability · 6/8 agentic |
Long-context 3-needle recall & 524K / 1M YaRN (q4 KV, 0 allocs) |
3/3 @ 16K (75.74 tok/s, 8.16 GiB) · 3/3 @ 64K (71.45 tok/s, 8.15 GiB) · 49.29 tok/s @ 524K (14.27 GiB) · 49.35 tok/s @ 1M (22.42 GiB) |
Quantization Layout
| Tensor class | Format | Parameters / Count |
|---|---|---|
Attention projections, GDN projections, MLP gate/up/down, lm_head |
HQ4_G32 |
249 tensors (84.31%, 7,935,623,168 params) |
Token embeddings (embed_tokens), vision tower (27-depth ViT), 1D norms, F32 mHC & GDN gate/decay planes |
BF16 + preserved F32 |
608 tensors (15.69%, 1,477,340,784 params) |
| Total pack | HQ4_G32 + BF16 + F32 |
857 tensors (9,412,963,952 params, 6.73 bpw) |
Memory Footprint (qwg plan, 0 steady-state allocations)
| Configuration | Model Resident | GDN State | KV / tok | Planned Working Set (verdict) |
|---|---|---|---|---|
--context-tokens 4096 --kv-mode q4 |
5.05 GiB (5,424,250,880 B) |
50.25 MiB |
8,192 B |
5.13 GiB (ADMIT) |
--context-tokens 65536 --kv-mode q4 |
5.05 GiB (5,424,250,880 B) |
50.25 MiB |
8,192 B |
5.60 GiB (ADMIT) |
--context-tokens 4096 --kv-mode f16 |
5.05 GiB (5,424,250,880 B) |
50.25 MiB |
32,768 B |
5.23 GiB (ADMIT) |
--context-tokens 65536 --kv-mode f16 |
5.05 GiB (5,424,250,880 B) |
50.25 MiB |
32,768 B |
7.10 GiB (ADMIT) |
Runtime qwg serve resident RSS (--no-load-vision): 4.869 GiB (6.584 GiB with --load-vision); long-context RSS (q4 KV): 8.15–8.16 GiB (16K–64K), 14.27 GiB (524K), 22.42 GiB (1M).
Quick start
Install Qwegn (v0.27.0+) from https://github.com/qwegnai/qwegn, then:
# Pull directly with Qwegn (to ~/.qwg/models/SenseNova-Loop-9B-QWP_4)
qwg pull qwegnai/SenseNova-Loop-9B-QWP_4
# Single-shot CLI run (weight-free .ngram d=5 enabled automatically)
qwg run ~/.qwg/models/SenseNova-Loop-9B-QWP_4 \
--kv-mode q4 --no-load-vision \
--prompt "Implement a lock-free SPSC ring buffer in C11."
# OpenAI- and Anthropic-compatible local server (up to 524K native YaRN / 1M LSA)
qwg serve ~/.qwg/models/SenseNova-Loop-9B-QWP_4 \
--kv-mode q4 --context-tokens 524288 --no-load-vision
Or download with the Hugging Face CLI:
hf download qwegnai/SenseNova-Loop-9B-QWP_4 --local-dir ~/.qwg/models/SenseNova-Loop-9B-QWP_4.
Requirements
- macOS 26+ on Apple Silicon (M5-class GPUs enable Apple10 NAX cooperative-tensor prefill)
- Unified memory for the
7.38 GiBmapped pack (~4.87 GiBactive text server RSS; up to22.42 GiBmeasured at1Mq4KV) - Qwegn
0.27.0or newer
Files
| File | Contents |
|---|---|
model.qwp |
Weights in Qwegn's QWP1 container (7.38 GiB, 7,922,099,956 bytes, 857 tensors) |
model.qwp.sha256 |
SHA-256 of model.qwp (c0bc38a8b8403d3cccf6487d99e591166a42f7503dc709413db06ea5602fb1dc) |
model.qlsa |
SHVQ4 Latent Sparse Attention SVD projection sidecar (1,575,943 bytes) |
README.md |
This model card |
media/ |
Model profile & looped LSA scaling infographics (SVG + 2× Retina PNG) |
LICENSE |
Upstream Apache-2.0 license |
assets/ |
Upstream config.json, tokenizer.json, chat_template.jinja, modeling_sensenova_loop.py, processor configs, README.md, README_CN.md (manifest.json lists SHA-256 digests) |
License and attribution
Licensed under Apache 2.0, inherited from sensenova/SenseNova-Loop-9B. Quantized by the Qwegn team; all credit for the base model belongs to SenseNova.
Model tree for qwegnai/SenseNova-Loop-9B-QWP_4
Base model
sensenova/SenseNova-Loop-9B