Qwable-9B-Claude-Fable-5 — SHQ Family (Selective Hybrid Quants)
Adaptive quantization family for Qwen3.5-9B hybrid Gated DeltaNet + Full Attention architecture. Each variant uses real imatrix data to selectively assign precision per-tensor.
Note: The model file SHQ8-Q5_K_M.gguf is named for HF parser compatibility. This is NOT a pure Q5_K_M quantization — it's a hybrid using Q5_K_M base with Q8_0, Q5_K, Q4_K, and F16 selectively applied across different tensor types. Check the config for exact per-tensor types.
Note:SHQ8-v2-Q5_K_M.gguf is also a hybrid — Q5_K_M base with Q8_0 on critical attention, Q6_K on mid attention, IQ4_XS on low-importance tensors. See configs/SHQ8_v2.sh for the exact per-tensor map.
Speed: ~22 tokens/sec on GTX 1070 (8 GB VRAM) with flash-attn for SHQ-OptA, ~26 tokens/sec for SHQ8-v2 (fewer Q8_0 tensors → less data through Pascal's PCIe).
I've put a lot of work into hand-tuning these quants — let me know how they run on your hardware! Drop a comment or open a discussion with your setup and any feedback.
Q5_K_M base + imatrix per-row + tiered precision by real importance data.
Real importance values from the actual Qwable-9B-Claude-Fable-5.imatrix.gguf (248 tensors, 319 chunks) revealed a 33,000× range — from blk.31 ffn_down at 323K to blk.0-5 ssm_out at 15. This enables safe aggressive quantization on low-importance tensors.
Key insight — real imatrix ≠ README claims: The README's importance matrix table (1M+ for attention) was from a different file. The actual model's imatrix shows ~2× lower values and a different layer ordering (L0 dominates at 494K, not mid layers). This changes which tensors need high precision.
Size: 5,726 MiB (5.36 BPW) — 577 MiB (-9.2%) less than SHQ-OptA.
PPL: 7.4559 ± 0.05 — matches Q6_K (7.4394) within margin at 18% smaller size. Slightly higher than SHQ-OptA (7.3747) but saves 577 MiB (9.2%). A favorable size/quality trade-off.
Speed: ~26 tokens/sec on GTX 1070 — 18% faster than SHQ-OptA thanks to fewer Q8_0 tensors reducing VRAM bandwidth pressure.
Architecture
Same as Qwen3.5-9B — hybrid Gated DeltaNet + Gated Attention (3:1 pattern):
Standard Q6_K with mradermacher's imatrix. Fits 8 GB VRAM at 7008 MiB.
Step 2: The IQ4_XS trap (aborted)
We tried IQ4_XS on all FFN tensors across all layers — blk.\d+.ffn_(gate|up|down)=IQ4_XS. This was a bad design for a non-QAT model: ffn_gate/up have 572K importance (far above the 150K IQ4_XS safety threshold). The run was aborted before completion.
Step 3: CODER insights rescue
Existing experiments on Qwopus3.5-9B-Coder-MTP (same architecture, different fine-tune) provided critical evidence (tested at ctx=2048):
Experiment
Result
Lesson
SHQv2 (Q5_K base + Q8_0 gates)
PPL 6.5456
Beats Q5_K_M (6.57)
SHQv3-C (IQ4_XS FFN + Q8_0 attn)
PPL 6.6534
+0.11 PPL vs SHQv2
SHQv3-D (Q5_K + IQ4_XS on low-imp)
Not tested
Predicted between SHQv2 and v3-C
150K importance threshold: IQ4_XS safe only on tensors with importance < 150K:
ffn_down in deep layers (18-30) → Q6_K (higher importance)
attn_v in some layers → Q6_K
Manual Q8_0 overrides are never downgraded.
Imatrix Notes
The importance matrix (Qwable-9B-Claude-Fable-5.imatrix.gguf) was computed by mradermacher from imatrix-training-full-3 — the same dataset used for fine-tuning the model itself. This gives unusually accurate importance signals.
Key findings from imatrix:
Inverted importance: Upper layers more important (blk.31 = 12× blk.1)
blk.31.ffn_down is the single most important tensor (3.97e+09)
Attention = 42.5% of total importance, FFN = 30.1%, SSM = 27.4%
Layer 1 is anomalously low (7.26e+08) — embedding boundary
Note: The chat template is from Unsloth (chat_template.jinja). For agent/coding tasks, temp 1 + top_k 20 + top_p 0.95 works well. Use -c 65536 for long context tasks.
VRAM usage: ~7399 MiB / 8192 MiB (90%) at -c 65536 with flash-attn + q8_0 KV cache. Room for more context thanks to the Gated DeltaNet architecture's efficient memory footprint.
From wepiqx: I would love to see this fine-tune released with MTP (Multi-Token Prediction) support — would make for an even better quantization. If Empero adds MTP, I'll update this quant with a specialized MTP draft model for faster inference.
Ollama
Create a Modelfile:
FROM ./SHQ8-Q5_K_M.gguf
TEMPLATE """{{ .System }}
{{ .Prompt }}"""
SYSTEM """You are a helpful coding assistant."""
PARAMETER num_ctx 8192
PARAMETER temperature 1
PARAMETER top_k 20
PARAMETER top_p 0.95
Build and run:
bash
1ollama create qwable-SHQ8 -f Modelfile
2ollama run qwable-SHQ8
Important — sampling (wepiqx): I strongly recommend not using repeat_penalty (keep at 1.0 / off). Testing shows it degrades output quality on this quant. Use temperature 1 (general) or temperature 0.6 (precise coding tasks). top_k 20 recommended. The model's native repetition handling is deliberately tuned and doesn't need penalizing.
LM Studio
Open LM Studio
Drag SHQ8-Q5_K_M.gguf into the app
Set GPU Offload to 99 layers
Enable flash-attention
Set context length to 8192+
Crucial — disable repeat_penalty (set to 1.0 or off). Use temperature 1 (general) or 0.6 (precise tasks), top_k 20
Start chatting
Coding Examples
These models generate full, working HTML/CSS/JS websites in a single pass. Both examples used the same prompt at temperature 1:
"I'm a dev, my audience is youth. I like a creative/tech style. Write the full website code. This HTML will be our foundation."
Temperature 2 + SHQ-OptA gives incredible coding output. User reported impressive results.
Real imatrix data matters more than README claims. The actual importance matrix had 2× lower values and different layer ordering than documented, leading to a different optimal strategy.
ssm_out is quantization noise at 15-155 importance (10,000× below top tensors). Safe for IQ4_XS or even IQ2_XXS.
L0 and deep layers (26-31) need Q8_0; middle layers (1-25) suffice at Q6_K. Attention position matters more than attention type.
Future Work
Try IQ2_XXS on ssm_out (importance 15-155 — near zero)
Profile speed impact of IQ4_XS tensors on GTX 1070 (Pascal lacks IQ4 hardware)
Files
File
Size
Description
Qwable-9B-Claude-Fable-5-bf16.gguf
17 GB
BF16 source
Qwable-9B-Claude-Fable-5.imatrix.gguf
5 MB
Importance matrix (mradermacher)
Qwable-9B-Claude-Fable-5-i1-Q6_K.gguf
6.9 GB
Q6_K baseline
SHQ8-Q5_K_M.gguf
6.2 GB
Winner — recommended for inference
SHQ8-v2-Q5_K_M.gguf
5.7 GB
SHQ8-v2 — hybrid Q5_K_M base with tiered precision (compact champion)
SHQ8_temp-1.html
--
Coding example (OptA): full website at temp 1
SHQ8-v2_temp-1.html
--
Coding example (v2): same prompt, no external deps