Downloads · 30 days
63
23% of all-time downloads
bowmanslayer/Qwen3.5-9B-Uncensored-W4A16
Qwen3.5-9B-Uncensored-W4A16 is a image-text-to-text model from bowmanslayer. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
We're exploring a new abliteration strategy and used the 9B model as a testbed. The result turned out well — this is currently the state-of-the-art abliterated 9B model across all three axes at once: capability retent…
Downloads · 30 days
63
23% of all-time downloads
All-time downloads
269
Public
Parameters
3.4B
8.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.7 GB · 100%
How the weights are stored.
BF162.5B · 72%
From the Hugging Face model README
We're exploring a new abliteration strategy and used the 9B model as a testbed. The result turned out well — this is currently the state-of-the-art abliterated 9B model across all three axes at once: capability retention, output brevity, and refusal removal. Three variants are published for different deployment needs — pick the one that matches your setup.
我们在尝试一个新的消融策略,以 9B 模型作为练兵场。效果不错 —— 这是目前 abliterated 9B 领域在能力保留、输出简洁、拒绝移除三方面同时达到最优的一版。 下面三个仓分别对应不同 的部署场景,按需选择即可。
This repo is the W4A16 quantization (INT4 weight + FP16 activation) of
bowmanslayer/Qwen3.5-9B-Uncensored, 8.2 GB. Designed for vLLM serving withgptq_marlinkernel. Sister repos: full-precision bf16 in the main repo, llama.cpp GGUF (7 quant levels) in-GGUF.本仓是 W4A16 量化版(INT4 权重 + FP16 激活),源自
bowmanslayer/Qwen3.5-9B-Uncensored, 8.2 GB,面向 vLLM 部署(gptq_marlin快速核)。姐妹仓:主仓是全精度 bf16, llama.cpp GGUF(7 档)见-GGUF。
Method: AutoRound → GPTQ format. Paired with fp8_e5m2 KV cache, capacity headroom is
60-80% larger than same-size competitors at the same GPU size.
方法:AutoRound → GPTQ 格式,vLLM gptq_marlin 快速核可用。
配合 fp8_e5m2 KV cache 拿到超同尺寸对手 60-80% 的上下文容量。
Recommended vLLM launch (fp8 KV enabled for best context out of the box): 推荐 vLLM 启动(已开 fp8 KV,开箱最佳上下文):
vllm serve bowmanslayer/Qwen3.5-9B-Uncensored-W4A16 \
--dtype float16 --tensor-parallel-size 2 \
--kv-cache-dtype fp8_e5m2 \
--max-model-len 28672 --max-num-seqs 16 \
--reasoning-parser qwen3
Single-GPU variant / 单卡:
vllm serve bowmanslayer/Qwen3.5-9B-Uncensored-W4A16 \
--dtype float16 --tensor-parallel-size 1 \
--kv-cache-dtype fp8_e5m2 --gpu-memory-utilization 0.92
Quantization did not break the ablation: 12 harmful quick-check on this W4A16 build recorded 0/10 refusals (text 0/6, image 0/4), consistent with bf16's 2/100 magnitude. All numbers below are the bf16 reference build (which this W4A16 was quantized from); W4A16-specific accuracy differences on a 3-task × 450-item spot check were within noise (abs delta +0.22).
量化不破消融:本 W4A16 版 12 条 harmful 快验记录到 0/10 拒绝(文字 0/6,图像 0/4),与 bf16 的 2/100 量级一致。以下所有数字取自本 W4A16 所派生的 bf16 参考版;W4A16 在 3 项 450 题抽测上与 bf16 精度差异在噪声范围(abs delta +0.22)。
100 harmful prompts from
mlabonne/harmful_behaviors
test split, 50 harmless controls from
mlabonne/harmless_alpaca.
Greedy decoding, 192 tokens, thinking disabled. Fixed judge model reads full response
text (not keyword matching).
100 条 harmful 来自 mlabonne 数据集 test split,50 条 harmless 对照来自同源。 贪心解码,192 tokens,思考关闭。固定裁判读完整回复(非关键词匹配)。
| Model | Refuses / 100 | Harmless answered / 50 |
|---|---|---|
Qwen/Qwen3.5-9B (base) | 99 | 49 |
Qwen3.5-9B-heretic-v2 (community A) | 1 | — |
Huihui-Qwen3.5-9B-abliterated (community B) | 0 | — |
| This model (bf16 reference) | 2 | 50 |
| This model (W4A16 quick, 10 items) | 0/10 | — |
Same fixed seed, same harness, same items. All 4 models run under vLLM TP=2 +
fp8_e5m2 KV + 24576 max output tokens, thinking enabled.
同一固定 seed,同 harness,同题,4 模型都在 vLLM TP=2 + fp8_e5m2 KV + 24576 max output
tokens 下跑,thinking on。
| Benchmark | N | Base (Qwen3.5-9B) | Community A (Heretic-v2) | Community B (Huihui) | This model |
|---|---|---|---|---|---|
| MMLU | 150 | 82.00 | 71.33 | 53.33 | 80.67 ✓ |
| CMMLU | 150 | 85.33 | 83.33 | 70.67 | 86.00 ✓ |
| MMLU-Pro | 150 | 76.00 | 58.00 | 44.67 | 78.67 ✓ |
| C-Eval | 150 | 80.67 | 80.67 ✓ | 62.67 | 79.33 |
| ARC-Challenge | 150 | 94.00 | 90.00 | 78.67 | 94.00 ✓ |
| TruthfulQA | 150 | 78.00 | 61.33 | 44.00 | 62.68 † |
| GSM8K | 100 | 74.00 | 55.00 | 46.00 | 77.00 ✓ |
| MATH-500 | 100 | 51.00 | 55.00 ✓ | 41.00 | 46.00 |
| BBH | 150 | 84.00 | 82.67 | 63.33 | 86.00 ✓ |
| HumanEval | 164 | 87.20 | 89.63 ✓ | 78.05 | 82.93 |
| IFEval | 100 | 60.00 | 72.00 | 62.00 | 73.00 (strict-instruct 94) ✓ |
| Mean | — | 77.47 | 72.63 | 58.58 | 76.93 |
Among the abliterated family (excluding base): 7 firsts out of 11, mean 76.14 leads Heretic-v2 (+3.5pp) and Huihui (+17.6pp).
在 abliterated 家族中(不算 base):7 项第一 / 11,均值 76.14 领先 Heretic-v2 3.5pp, 碾压 Huihui 17.6pp。
† TruthfulQA: serial-run contamination pulled it to 54, single-run isolation gives 62.68. Table uses the fair number. Behavioral drift not knowledge loss (see main repo §3).
† TruthfulQA:串行运行 vLLM 状态污染拉低到 54,单跑 62.68。表内取单跑。这是行为漂移 不是知识损伤(详见主仓 §3)。
| Metric | Base | Community A | Community B | This model |
|---|---|---|---|---|
| Median p50 output tokens | 3,736 | 6,196 (+66%) | 10,608 (+184%) | 3,076 (-17.7%) |
| Total gen tokens (11 tasks) | 8.13M | 12.20M (+50%) | 17.05M (+110%) | 8.06M (-0.9%) |
| Mean truncation rate | 17.0% | 18.6% | 33.6% | 14.5% (-15%) |
This model is the only ablation more concise than base — median -17.7%, truncation -15%. Community ablations expand across the board (Heretic-v2 +66%, Huihui nearly 2×).
本模型是唯一比 base 更简洁的消融(中位 -17.7%,截断 -15%);社区版全线膨胀(Heretic-v2 +66%,Huihui 差点翻倍)。
Qwen3.5-9B architecture = 32 layers (24 linear + 8 full-attention), hidden 3584. KV cache scales with context only on full-attention layers, so the numbers below are computed (excluding CUDA graph overhead etc., measured deviation <5%).
Qwen3.5-9B 架构 = 32 层(24 linear + 8 full attention),hidden 3584。KV cache 只对 full attention 层随 context 线性增长,因此本节数字是理论算(不含 CUDA graph overhead 等,实测偏差 <5%)。
Per-token KV cache size / 每 token KV cache 大小:
After weight + ~1 GB overhead, remaining memory available for KV cache / 减去权重与 overhead 后,剩余可分配给 KV cache:
| GPU | This model W4A16 (8.2 GB) + fp8 KV | Comparable GGUF Q6_K (7.1 GB) + f16 KV (llama.cpp default) |
|---|---|---|
| 12 GB (RTX 3060 12G / 4070 etc.) | ~48k tokens | ~30k tokens |
| 16 GB (RTX 4060 Ti / 4070 Ti Super etc.) | ~120k tokens | ~65k tokens |
| 24 GB (RTX 3090 / 4090) | ~256k tokens (near model max 262k) | ~135k tokens |
Takeaways / 要点:
fp8_e5m2 KV, no manual config needed
推荐启动默认就是 fp8_e5m2 KV,无需手动配置-ctk q8_0 -ctv q8_0 (int8 KV, similar effect) for
equivalent context; most community guides omit this
GGUF 用户要拿到同等上下文,需手动加 -ctk q8_0 -ctv q8_0(int8 KV,类似效果),
但大部分社区帖不给,默认体验只到我们一半Using W4A16 weight 8.2 GB as baseline / 以 W4A16 权重 8.2 GB 为基准:
| Scenario | Weight | KV (28k ctx, batch=1) | System | Total | Suggested GPU |
|---|---|---|---|---|---|
| This model + fp8 KV, batch=1 | 8.2 | ~1.6 | ~1.5 | ~11.3 GB | 12 GB ✓ |
| This model + fp8 KV, batch=8 | 8.2 | ~12.5 | ~1.5 | ~22 GB | 24 GB |
| This model + fp16 KV, batch=1 | 8.2 | ~3.2 | ~1.5 | ~12.9 GB | 16 GB |
Deployment case (this is what we happen to run on, not a requirement): 2× RTX 3090 with TP=2 gives 1.22M-token KV cache headroom. Single 3090 works fine for typical serving. Any GPU with enough VRAM for the row you pick will work.
部署案例(这是我们自己的机型,非硬件要求): 2× RTX 3090 TP=2 可拿到 1.22M token KV cache 余量;单张 3090 常规服务也够用。任何显存够上表某一行的 GPU 都能跑。
AutoRound --bits 4 --group_size 128 --format auto_round:auto_gptq --nsamples 256 --seqlen 2048. linear_attn.in_proj_a/b (48 tensors, SSM computation, not quantizable)
excluded. Vision tower and MTP head processed to int4 alongside language layers.
AutoRound --bits 4 --group_size 128 --format auto_round:auto_gptq --nsamples 256 --seqlen 2048。linear_attn.in_proj_a/b(48 张量,SSM 计算不可量化)排除。视觉塔
和 MTP 头随语言层一同处理为 int4。
MTP speculative decoding not recommended (vLLM 0.20.2: 40-46% slowdown, K=5 crash). MTP speculative decoding 不推荐启用(vLLM 0.20.2 实测减速 40-46%,K=5 崩溃)。
| Layer | Author |
|---|---|
| Base model | Qwen/Qwen3.5-9B — Qwen team, Alibaba Cloud (Apache 2.0) |
| Abliteration | bowmanslayer/Qwen3.5-9B-Uncensored — a new weight-space ablation strategy by the same author (single direction, norm-preserving, 67 tensors) |
| This repo | W4A16 (AutoRound → GPTQ) quantization only. No weight modification beyond quantization. |
| 层 | 归属 |
|---|---|
| 基座 | Qwen/Qwen3.5-9B —— Qwen 团队,阿里云(Apache 2.0) |
| 消融 | bowmanslayer/Qwen3.5-9B-Uncensored —— 同作者自研的一种权重空间消融策略(单方向、norm-preserving、67 张量) |
| 本仓 | 仅 W4A16(AutoRound → GPTQ)量化,除量化外没有任何权重修改 |
Not an official Qwen release; not endorsed by or affiliated with the Qwen team or Alibaba Cloud.
非 Qwen 官方发布;与 Qwen 团队及阿里云无背书或从属关系。
This is the point of the model, and you should read this before downloading. 这是模型的核心属性,下载前请务必阅读。
The upstream ablation removes the refusal behaviour trained into Qwen/Qwen3.5-9B.
Automated refusal testing on the bf16 reference recorded 2/100 on 100 held-out
adversarial prompts, versus 99/100 for the base. Quantization does not restore refusals
(12-item spot check on this W4A16 build: 0/10).
上游消融移除了 Qwen/Qwen3.5-9B 训练进去的拒绝行为。bf16 参考版在 100 条 held-out 对抗
提示上自动测试记录到 2/100,而基座是 99/100。量化不恢复拒绝(本 W4A16 版 12 条
抽测:0/10)。
Consequences you are accepting / 你正在接受的后果:
Not intended for / 不适用于:
Intended for / 适用于: local inference and research, by people who understand the above and take responsibility for it / 本地推理与研究,由理解以上内容并为其负责的用户使用。
This model is provided "AS IS", without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, and non-infringement.
本模型按**"现状"提供,不提供任何明示或默示的担保**,包括但不限于对适销性、特定用途 适用性以及无侵权性的担保。
Downloading these files means you accept the above. If you do not, do not download them. 下载本仓文件即表示你接受以上内容。若不接受,请勿下载。
The author is not a lawyer; the above is not legal advice. 作者不是律师;以上不构成法律意见。
Apache 2.0, inherited through the chain above. The Apache-2.0 grant covers the weights; it does not grant permission for uses that are unlawful where you are.
Apache 2.0,依上述归属链继承。Apache-2.0 授权覆盖权重本身;不授权任何在你所在地不合法 的用途。