license: apache-2.0
base_model:
- SC117/Qwen4-35B-A3B-abliterated-UD-GGUF
- unsloth/Qwen4-35B-A3B-GGUF
tags: - gguf
- qwen4
- moe
- abliterated
- llama.cpp
- strata
- engram
- ple
language: - zh
- en
Qwen4-35B-A3B · Q4_K_M 权重 + Q8 engram 表 · abliterated(单文件 GGUF)
Qwen4-35B-A3B-abliterated 的 Unsloth Dynamic Q4_K_M 权重,搭配一张 Q8_0 的 PLE / n-gram 表,用 llama-gguf-split --merge 合成单个 GGUF。表已包含在文件里,不需要再单独下载 engram 文件。
| 架构 | Qwen4-35B-A3B(MoE,35B 总参数 / 3B 激活 + 20.5B PLE) |
| 权重 | Unsloth Dynamic UD-Q4_K_M(Q4_K / Q5_K / Q8_0 混合量化) |
| PLE / n-gram 表 | Q8_0,per_layer_token_embd.weight,128 × 160003584,21.76 GB |
| 文件 | Qwen4-35B-A3B-Q4_K_M-engramQ8-abliterated.gguf · 45.42 GB(42.31 GiB) |
| 张量 | 912 个(911 个权重张量 + 1 个 Q8_0 表) |
| 上下文 | 模型支持 1,048,576;本机实测 131,072 |
| 许可 | Apache-2.0 |
这个版本的特殊之处
上游 SC117 各个量化档共用一张 11.5 GB 的 IQ4_NL PLE 表(放在该仓库的 shard 2 里)。本仓库做了一处替换:
- 权重:沿用 SC117 的 abliterated UD-Q4_K_M(shard 1),未改动
- PLE 表:换成 unsloth 官方发布的 engram-Q8_0 表(21.76 GB),查表精度更高
- 代价是文件从约 35.18 GB 增大到 45.42 GB
除此之外没有任何变化,张量名和形状与原模型一致,加载方式不变。
合成方式
| 部分 | 来源 | 大小 |
|---|---|---|
| 权重 | SC117/Qwen4-35B-A3B-abliterated-UD-GGUF 的 UD-Q4_K_M/...-00001-of-00002.gguf |
23,664,328,800 B |
| PLE 表 | unsloth/Qwen4-35B-A3B-GGUF 的 engram/Qwen4-35B-A3B-engram-Q8_0.gguf_file |
21,760,487,616 B |
| 合并 | llama.cpp 的 llama-gguf-split --merge |
45,424,816,288 B(两侧之和 − 128 B 容器开销) |
SC117 原仓库的 shard 2(IQ4_NL 表)没有被使用。
权重数据未做任何改动;合并只重写了容器的 header 与张量偏移。
文件清单
Qwen4-35B-A3B-Q4_K_M-engramQ8-abliterated.gguf 45.42 GB 模型(含 Q8_0 PLE 表)
tools/ Strata 引擎转换脚本 + 说明
LICENSE Apache-2.0
NOTICE 上游归属与改动说明
checksums.sha256 下载后校验(sha256sum -c)
使用
llama.cpp
需要支持 qwen4 分词器的版本(SC117 标注为 b12971 / PR #33626 及以上)。PLE 表建议常驻 CPU 内存:
llama-cli -m Qwen4-35B-A3B-Q4_K_M-engramQ8-abliterated.gguf \
-ngl 99 -ot per_layer_token_embd=CPU --fit on -c 32768 -p "你好"
Strata 引擎
Strata 的 qwen4exp 布局要求 40 层 trunk、合并张量拆开,所以要先转换一步(约 1 分钟,需 23 GB 临时空间):
pip install numpy
python tools/qwen4_split_gguf.py --gguf Qwen4-35B-A3B-Q4_K_M-engramQ8-abliterated.gguf --out qwen4-trunk40.gguf
然后用 --native 指向 trunk、--ple-gguf 指向本合并文件(PLE 表在里面):
strata.exe --serve \
--native qwen4-trunk40.gguf --native-dense-gguf qwen4-trunk40.gguf \
--ple-gguf Qwen4-35B-A3B-Q4_K_M-engramQ8-abliterated.gguf \
--max-context 131072 --kv q4_0 --vram-reserve-mib 512 \
--expert-cache auto --prefill 4096 --ple-io direct
转换脚本来自 Strata 引擎的 preparation tools,纯 Python + numpy,不重新量化。
实测参考
RTX 4060 Laptop 8 GB / 32 GB RAM,128K 上下文,--kv q4_0:
解码 ≈ 52 tok/s(无投机解码)
专家缓存 1036 槽,命中率 69%
显存 约 7.1 / 8.2 GB
显存更小的卡:降低 --max-context,或把 --kv 换成更压缩的格式(int8 / k8v4)。
注意
- 不含 DFlash2 投机权重:DFlash2 的草稿模型未随本仓库分发。
- 这是 abliterated(移除拒绝行为)的模型,没有安全对齐,输出可能不当。仅供研究与评测使用,请自行评估风险。
- 量化与合并过程未改变权重数值;完整性以
checksums.sha256为准。
English
Single-file GGUF of Qwen4-35B-A3B-abliterated (Unsloth Dynamic UD-Q4_K_M, 45.42 GB), built by merging two existing parts:
- Weights — shard 1 of
SC117/Qwen4-35B-A3B-abliterated-UD-GGUF(23.66 GB), unchanged. - PLE / n-gram table —
engram/Qwen4-35B-A3B-engram-Q8_0.gguf_filefromunsloth/Qwen4-35B-A3B-GGUF(21.76 GB, Q8_0).
Upstream SC117 ships an 11.5 GB IQ4_NL table in its shard 2; this repo replaces it with the Q8_0 table for higher lookup fidelity, which is why the file is ~10 GB larger. Tensor names and shapes are unchanged.
- llama.cpp: load it directly (requires a build with the
qwen4pre-tokenizer; b12971 / PR #33626+). Pin the table to CPU with-ot per_layer_token_embd=CPU. - Strata engine: run
python tools/qwen4_split_gguf.py --gguf <file> --out qwen4-trunk40.gguf, then start with--native qwen4-trunk40.gguf --ple-gguf <file>.
Measured on an RTX 4060 Laptop 8 GB: ~52 tok/s decode at 128K context, no speculative decoding.
Apache-2.0, derived from Qwen/Qwen4-35B-A3B via SC117/Qwen4-35B-A3B-abliterated-UD-GGUF and unsloth/Qwen4-35B-A3B-GGUF. Abliterated model, no safety alignment; research use only.