Qwen3.5-9B-Shrunk-OutQ6K-GGUF
An uncensored (Heretic / abliterated), selectively shrunk GGUF release of Qwen3.5-9B-The-Defiant-Fable-Uncnr-Heretic-NEO-MAX-IQ2_M.
By selectively quantizing only the unquantized BF16 LM head tensor (output.weight) to Q6_K via libggml-base.so (ggml_quantize_chunk) and bit-for-bit stream-copying all remaining 426 tensors + 66 metadata fields untouched (zero double-quantization), the file drops from 4.60 GiB → 3.49 GiB (-1.12 GiB / -24.3% smaller) without degrading any of the 32 reasoning layers.
- Companion Code, Hybrid Rust Harness & 30-Task Benchmark: github.com/peterpetir123/qwen3.5-local-lab
- Portfolio: peterpetir123.github.io
1. What Was Changed (Surgical Tensor Diff)
| Tensor / Property | Original GGUF (4.60 GiB) | This Release (3.49 GiB) |
|---|---|---|
output.weight ([4096, 248320]) | BF16 (1,940.0 MiB, 41.3% of file) | Q6_K (795.7 MiB) |
| Remaining 426 tensors (32 Hybrid DeltaNet + GQA layers) | Untouched (IQ2_S / IQ3_S / Q4_K / F32) | Copied bit-for-bit untouched |
| All 66 GGUF metadata fields & chat template | Original | Preserved verbatim |
| Total file size | 4.60 GiB | 3.49 GiB (-1.12 GiB) |
| RAM footprint | Tight (~7.2 GiB) | Comfortable (~3.7 GiB) |
Built using shrink_output_head.py (zero external dependencies beyond gguf-py and libggml-base.so).
2. Verified Coding Benchmark & Reasoning Harness
Evaluated on a 30-task Python benchmark (tasks_30.json: 10 initial tasks + 20 unseen tasks across algorithms, data structures, parsing, DP, graphs, and debugging) paired with our local inference-time verifier (Extra Engine v3 / Hybrid Rust Harness):
| Setup | Pass Rate | Speed | File Size |
|---|---|---|---|
Baseline 9B Plain (enable_thinking: true) | 0.0% (0/2, stalled in <think>) | 10–13 min / task | 4.60 GiB |
| Shrunk 9B + Smart Engine (initial 10 tasks) | 70.0% (7/10, all try=1) | 1.5–3 min / task | 3.49 GiB |
| Shrunk 9B + Stage 1–2 Verifier (10 initial tasks) | 100.0% (10/10 combined, all try=1) | 1.23–1.69 t/s | 3.49 GiB |
| Shrunk 9B + Extra Engine v2 (20 unseen tasks) | 65.0% (13/20) | 0.90–2.04 t/s | 3.49 GiB |
| Shrunk 9B + Extra Engine v3 / Rust Harness (Full 30 tasks) | 90.0% (27/30 combined) (10/10 initial + 17/20 unseen) | 1.25–2.35 t/s | 3.49 GiB |
Head-to-Head Comparison vs Qwen3.8-27B (IQ2_M)
| Metric | Qwen3.8-27B (IQ2_M) | Qwen3.5-9B Shrunk + Extra Engine v3 | Ratio / Delta |
|---|---|---|---|
| File Size | 10.87 GiB (SSD mmap) | 3.49 GiB | 3.1× smaller |
| Inference Speed | 0.081 t/s (34.2 min / 160 tok) | 1.25–2.35 t/s | 16×–29× faster |
Multi-Delimiter Probe (try=1) | ❌ Failed (sort_build_ids) | ✅ Passed (py_10_semver_sort) | Verified invariant |
| Coding Accuracy | Upstream claim: ~73.5–88.2% | 90.0% (27/30 verified) | Practical local parity+ |
Transparency note:
27/30 (90.0%)reflects progressive evaluation with our automated AST execution verifier + strategy-switching retries (up to 5 attempts on rescued tasks). Three unseen tasks (py_18_csv_parse_line,py_21_spiral_matrix,py_24_bipartite_check) remained unsolved at the 2.5-bit fiction-merge weight ceiling.
3. Tooling & Ecosystem Upgrades (v0.2.0)
- Hybrid Rust Harness (
harness-rs):- Single 2.0 MB stripped binary with ~3.3 MB RSS host footprint.
- Built-in HTTP client for OpenAI-compatible endpoints (
llama-server, vLLM, Ollama), incremental--resume, and an unbypassable Rust OS watchdog (SIGKILL) wrapping an embedded AST worker.
- Interactive Agent Plugin (
harness-builderv0.2.0):- Ready-to-use Antigravity/agent plugin bundle that guides coding agents through codebase inspection, interactive domain interviewing, and autonomous harness generation.
- Polyglot & 2D Physics Guidance:
- Standardized execution for Python, Rust (
rustc), and JavaScript (node). - Grounded prompt rules for 2D screen coordinate simulation (preventing slow-motion and coordinate inversion glitches on canvas animations).
- Standardized execution for Python, Rust (
4. Recommended Usage (llama.cpp)
Disable runaway <think> loops using --jinja + chat_template_kwargs: {"enable_thinking": false}:
llama-server \
-m Qwen3.5-9B-shrunk-outQ6K.gguf \
--host 127.0.0.1 --port 8081 \
-c 4096 -np 1 -t 4 --jinja --no-reasoning-preserve
Run evaluation using the standalone Rust orchestrator:
./harness-rs/target/release/qwen-harness \
--tasks benchmark/tasks_30.json \
--model Qwen3.5-9B \
--mode smart --max-iters 5 --resume \
--out benchmark/my_run.json
Recommended sampling for code & structured tasks: temperature=0.15, top_p=0.9, repeat_penalty=1.05, presence_penalty=0.0.
5. Credits & License
- License:
Apache-2.0(inherited from upstream GGUF metadatageneral.license: apache-2.0). - Architecture: Qwen Team (
qwen3.5Hybrid 3:1 Gated DeltaNet + GQA). - Upstream Merge & Quantization: Nightmedia & DavidAU (
Qwen3.5-9B-The-Defiant-Fable-Uncnr-Heretic-NEO-MAX-IQ2_M). - Selective Output-Head Quantization & Verifier Harness: PeterPetir.