license: apache-2.0
pipeline_tag: image-text-to-text
base_model:
- SC117/Qwen4-35B-A3B-abliterated-GSQ-RCO-GGUF
- ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF
- Qwen/Qwen4-35B-A3B
base_model_relation: quantized
language: - en
- zh
tags: - ninfer
- ninfer-v3
- qwen4
- qwen4_moe
- moe
- gsq-rco
- abliterated
- uncensored
- gguf
- mixed-precision
- iq3_xxs
- mtp
- vision
- image-text-to-text
- conversational
Qwen4-35B-A3B GSQ-RCO IQ3_XXS Abliterated (NInfer v3 + IQ4_NL N-gram Table)
A complete NInfer v3 package of SC117/Qwen4-35B-A3B-abliterated-GSQ-RCO-GGUF (IQ3_XXS, built on ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF and Qwen/Qwen4-35B-A3B), repacked for NInfer-all with:
- The
15.48 GiBmodel artifact (text, built-inQ4_Kmtp,131,072-rowproposalhead, andmmproj-BF16Vision tower) - The matching
10.73 GiBIQ4_NLn-gram table (160,003,584 × 128,table_sha256:cd720cc0146767267d846b745fe9f2b70387e768f77801dea57b92cdcf4c53da)
[!IMPORTANT]
Requires iamwavecut/ninfer-all (converted and tested against tag2026-12-05.1, commit09d8227). Stock upstream NInfer builds do not supportQwen4-35B-A3Borgguf_*blocks.
Files Included
| File | Size | Purpose |
|---|---|---|
Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-abliterated-ninfer-v3.ninfer |
15.48 GiB (16,617,375,488 B) |
Main model container: GSQ-RCO mixed-precision IQ3_XXS text weights + Q4_K MTP block + 131K proposal head + BF16 Vision tower + tokenizer/chat template |
Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-abliterated-ninfer-v3.ninfer.conversion.json |
3.76 MiB (3,941,575 B) |
Conversion manifest and per-tensor provenance |
Qwen4-35B-A3B-ngram-IQ4_NL-ninfer-v3.ninfer |
10.73 GiB (11,520,262,144 B) |
External per-layer hashed n-gram embedding table (IQ4_NL, 72 B/row) |
Qwen4-35B-A3B-ngram-IQ4_NL-ninfer-v3.ninfer.conversion.json |
2.71 KiB (2,776 B) |
N-gram table conversion manifest (table_sha256: cd720cc0...) |
LICENSE / NOTICE / SHA256SUMS |
— | Apache-2.0 license, upstream modifications/credits notice, and file checksums |
What Is Inside
SC117/Qwen4-35B-A3B-abliterated-GSQ-RCO-GGUF applies a surgical P3 Rank-2 abliteration across 78 residual writers (L8–L33) on top of ISTA-DASLab's GSQ-RCO mixed-precision allocation while keeping all remaining text weights, token embeddings, and the 30-tensor Q4_K MTP layer untouched. All compatible GGUF quantized blocks are preserved verbatim in NInfer v3 (1,190 container objects):
| Component | Quantization / Representation |
|---|---|
Routed experts (40 layers × 256, expert-major) |
Mixed per-layer GSQ-RCO blocks kept verbatim: gate/up in IQ1_M (1L), IQ2_XXS (5L), IQ2_XS (4L), IQ2_S (9L), IQ3_XXS (3L), IQ3_S (18L); down in IQ2_XXS (1L), IQ2_XS (1L), IQ2_S (4L), IQ3_XXS (4L), IQ3_S (30L) |
Shared experts (40 layers) |
Q8_0 |
Sparse Attention (QSA) & Indexer (10 layers) |
Mixed IQ4_XS / Q4_K / Q5_K / Q6_K attention projections; BF16 indexer and norms |
Gated DeltaNet (GDN) (30 layers) |
Mixed IQ4_XS / Q4_K / Q5_K / Q6_K projections; BF16 / FP32 controls, A_log, dt_bias, and conv1d |
| Token table & output head | BF16 token embedding table; Q6_K output head |
Proposal head (--proposal) |
131,072 frequent token rows (Q6_K) + int32 token IDs for fast MTP drafting |
| Hyper-connections | BF16 norms; down/inject kept in Q8_0; 80 text up matrices converted from BF16 to Q8_0 |
MTP block (block 40) |
Q4_K projections & routed/shared experts (778 slices); BF16 indexer/router/norms; hc & final_mixer converted from Q4_K to Q8_0 |
| Vision tower | unsloth/Qwen4-35B-A3B-GGUF mmproj-BF16.gguf in BF16 (~0.9 GB) + Qwen/Qwen4-35B-A3B preprocessors |
| N-gram table (separate file) | 160,003,584 × 128 IQ4_NL rows (table_sha256: cd720cc0146767267d846b745fe9f2b70387e768f77801dea57b92cdcf4c53da) |
Conversion Provenance
Converted using iamwavecut/ninfer-all (2026-12-05.1, commit 09d8227):
python -m tools.convert \
--model Qwen4-35B-A3B \
--recipe qwen3_8_flash_next_gguf \
--components text,vision,mtp \
--source gguf=Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-abliterated-00001-of-00002.gguf \
--source ngram=Qwen4-35B-A3B-ngram.gguf \
--source vision=mmproj-BF16.gguf \
--ngram-sha256 cd720cc0146767267d846b745fe9f2b70387e768f77801dea57b92cdcf4c53da \
--proposal \
--name qwen4-35b-a3b-gsq-rco \
--device cpu \
--out Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-abliterated-ninfer-v3.ninfer
Running with ninfer-serve
Download both .ninfer files:
hf download raghualgt/Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-abliterated-NInfer-v3 \
--include "*.ninfer" --local-dir models
Verify checksums (optional):
cd models && sha256sum -c ../SHA256SUMS --ignore-missing
Example: Single 16–24 GB GPU (Resident Experts + Vision + MTP)
M=models/Qwen4-35B-A3B-GSQ-RCO-IQ3_XXS-abliterated-ninfer-v3.ninfer
T=models/Qwen4-35B-A3B-ngram-IQ4_NL-ninfer-v3.ninfer
ninfer-serve "$M" \
--ngram-table "$T" \
--ngram-residency disk \
--ngram-ram-mib 4096 \
--expert-residency device \
--model-id qwen4-35b-a3b-gsq-rco \
--max-context 131072 \
--kv-capacity auto \
--kv-dtype rk8v4 \
--gdn-state-fp16 \
--spec mtp --draft-tokens 3 \
--vision --vision-residency resident --vision-max-merged 16384 \
--preserve-thinking --default-reasoning-effort high \
--reasoning-loop conclude \
--temperature 0.6 --top-p 0.95 --top-k 20 --min-p 0
Example: Dual T4 (2 × 16 GB / Tensor Parallel up to 400K context)
ninfer-serve "$M" \
--ngram-table "$T" \
--ngram-residency disk --ngram-ram-mib 4096 --ngram-io-depth 8 \
--expert-residency device \
--devices 0,1 --tensor-parallel \
--model-id qwen4-35b-a3b-gsq-rco \
--max-context 409600 --kv-capacity auto --kv-headroom-mib 1024 \
--max-concurrency 1 --prefill-chunk 1024 \
--kv-dtype rk8v4 --gdn-state-fp16 --host-cache-mib 8192 \
--spec mtp --draft-tokens 3 \
--structured-output \
--preserve-thinking --default-reasoning-effort high \
--reasoning-loop conclude \
--vision --vision-residency resident --vision-max-merged 16384 \
--temperature 0.6 --top-p 0.95 --top-k 20 --min-p 0
[!TIP]
Onninfer-all,Qwen4/Flash-Nextrequires--vision-residency resident. Adding--reasoning-loop concludecloses runaway repetitive<think>blocks cleanly every 512 thinking tokens while preserving normal reasoning behavior.
Safety & Intended Use
Per upstream SC117/Qwen4-35B-A3B-abliterated-GSQ-RCO-GGUF: built-in refusal guardrails have been abliterated. Released for interpretability, safety-mechanism research, and controlled evaluation workflows; apply appropriate moderation and access controls before external deployment.
Credits & Citations
- Base Model:
Qwen/Qwen4-35B-A3Bby the Qwen Team, Alibaba Cloud (Apache-2.0) - GSQ-RCO Method & Quantized Weights:
ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUFby IST-DASLab (Apache-2.0) - Abliterated GSQ-RCO Surgical Transplant & MTP Retention:
SC117/Qwen4-35B-A3B-abliterated-GSQ-RCO-GGUFby SC117 (Apache-2.0) - Vision Projector (
mmproj-BF16.gguf) &IQ4_NLN-gram Reference:unsloth/Qwen4-35B-A3B-GGUFby Unsloth AI (Apache-2.0); repackedIQ4_NLn-gram table sourced fromIsValorum/Qwen4-35B-A3B-VAL-APEX-MiniPlus-V3-Abliterated-GGUFShard 2 (table_sha256: cd720cc0..., Apache-2.0) - Inference Engine & NInfer-v3 Converter:
iamwavecut/ninfer-all(building onNeroued/ninferand contributors, Apache-2.0)
@article{gsq2026,
title = {GSQ: Highly-Accurate Low-Precision Scalar Quantization for LLMs via Gumbel-Softmax Sampling},
author = {Dadgarnia, Alireza and Tabesh, Soroush and Nikdan, Mahdi and Helcig, Michael and Kurtic, Eldar and Kleinegger, Maximilian and Alistarh, Dan},
journal = {arXiv preprint arXiv:2604.18556},
year = {2026}
}
@article{rco2026,
title = {Model Compression with Exact Budget Constraints via Riemannian Manifolds},
author = {Helcig, Michael and Alistarh, Dan},
journal = {arXiv preprint arXiv:2605.00649},
year = {2026}
}
License
Published under the Apache License 2.0, inherited from Qwen/Qwen4-35B-A3B and all upstream Apache-2.0 components. Full license text is in LICENSE and component-level provenance/modifications are detailed in NOTICE.