language:
- en
- zh
license: apache-2.0
base_model: "Qwen/Qwen4-35B-A3B"
base_model_relation: quantized
tags: - gguf
- quantization
- sakura
- uncensored
Sakura · GGUF quantization of OpenUncensored/Qwen4-35B-A3B-Uncensored
Independent community quantization. Not an official release of the upstream authors.
This is a quantization of OpenUncensored/Qwen4-35B-A3B-Uncensored, a refusal-reduced derivative of Qwen/Qwen4-35B-A3B made by OpenUncensored. The refusal behaviour and its evaluation come from that release; see its card. The model may answer requests the original refuses: use it responsibly and within the law.
Benchmarks of the original model

These are the Qwen team's published results for the original, unmodified Qwen/Qwen4-35B-A3B. They were not measured on this uncensored derivative or on these quantized files. Source and benchmark notes: the original model card.
Which GPU fits
A large part of every file is the per-layer n-gram table per_layer_token_embd. llama.cpp (b12973 and newer) does not put it on the graphics card or load it into RAM: it reads the rows it needs straight from the file on disk (--lazy-mode auto, the default, for tensors over 4 GiB; uses the memory-mapped file). The token embedding stays on the CPU as well. Only the rest goes to the GPU with -ngl 99.
| Quant | File | n-gram table (stays on SSD) | Token embedding (RAM) | GPU part (weights) | Smallest card | Left on that card (context, buffers) |
|---|---|---|---|---|---|---|
| Q2_K | 25.0 GB | 11.5 GB | 0.2 GB | 13.3 GB (12.4 GiB) | 16 GB | 3.6 GiB |
| Q3_K_M | 28.9 GB | 11.5 GB | 0.2 GB | 17.2 GB (16.0 GiB) | 24 GB | 8.0 GiB |
| Q4_K_M | 36.1 GB | 14.1 GB | 0.3 GB | 21.7 GB (20.2 GiB) | 24 GB | 3.8 GiB |
| Q5_K_M | 41.0 GB | 15.4 GB | 0.3 GB | 25.3 GB (23.6 GiB) | 32 GB | 8.4 GiB |
"Smallest card" is the smallest common VRAM size (8/12/16/24/32/48 GB) that leaves at least 2 GiB beside the weights for the context (KV cache) and compute buffers. Whether that is enough for your context length depends on your settings and was not measured. All sizes are read from the file headers on the Hub; nothing in this table was tested on a real graphics card, and the speed of reading the table from the SSD was not measured (a fast NVMe SSD helps; free RAM is used as cache by the operating system). On a smaller card, --n-cpu-moe N keeps the experts of N layers in system RAM instead (slower, not tested here).
1. Model Overview
Architecture: qwen4_moe (GGUF qwen4exp) · 35B total / 3B active parameters plus a 20B per-layer n-gram embedding table and 2B MTP, vision input.
Original: 112.8 GB (BF16 GGUF, the source of these quantizations).
| Quant | Size | Compared with the original |
|---|---|---|
| Q2_K | 25.0 GB | 78 % smaller |
| Q3_K_M | 28.9 GB | 74 % smaller |
| Q4_K_M | 36.1 GB | 68 % smaller |
| Q5_K_M | 41.0 GB | 64 % smaller |
The n-gram table per_layer_token_embd has rows of 128 values, which the K-quant formats cannot hold, so llama.cpp stores it in a legacy format (for example Q4_0 in Q3_K_M); that table alone is 11.5–15.4 GB depending on the quant and makes these files larger than a plain 35B model. llama.cpp reads it from disk on demand instead of loading it (see “Which GPU fits”).
2. Original Model / Attribution
- Original model: OpenUncensored/Qwen4-35B-A3B-Uncensored (itself derived from Qwen/Qwen4-35B-A3B)
- Converted by us from the safetensors at commit
98e9ab722ecaca12eb6cabe892d15e91187b7fe3with the unmodified llama.cpp b12973 converter. - Quantized by
webmp3. Upstream authors retain their license and attribution.
3. Files
| File | Size | Quant |
|---|---|---|
Sakura-Qwen4-35B-A3B-Uncensored-Q2_K.gguf |
25.0 GB | Q2_K |
Sakura-Qwen4-35B-A3B-Uncensored-Q3_K_M.gguf |
28.9 GB | Q3_K_M |
Sakura-Qwen4-35B-A3B-Uncensored-Q4_K_M.gguf |
36.1 GB | Q4_K_M |
Sakura-Qwen4-35B-A3B-Uncensored-Q5_K_M.gguf |
41.0 GB | Q5_K_M |
mmproj-Sakura-Qwen4-35B-A3B-Uncensored-F16.gguf |
0.9 GB | vision projector |
mmproj-Sakura-Qwen4-35B-A3B-Uncensored-F16.gguf was converted by us from the vision tower of OpenUncensored/Qwen4-35B-A3B-Uncensored (OpenUncensored state that it is byte-identical to Qwen's). Use it together with any quantization to give the model images. Image input was not tested in this release. Files over 45 GB are split into numbered parts: keep them together and load the first.
4. Download and Usage
llama-cli -m <file>.gguf -p "Hello" -n 32
# with images
llama-mtmd-cli -m <file>.gguf --mmproj mmproj-Sakura-Qwen4-35B-A3B-Uncensored-F16.gguf --image <picture>.jpg -p "Describe this image."
Needs a llama.cpp build that supports this architecture (b12973 or newer was used here).
llama.cpp server (web chat at http://127.0.0.1:8080 and an OpenAI-compatible API at http://127.0.0.1:8080/v1):
llama-server -hf webmp3/Sakura-Qwen4-35B-A3B-Uncensored-GGUF:Q4_K_M -c 8192 --port 8080
LM Studio: search for webmp3/Sakura-Qwen4-35B-A3B-Uncensored-GGUF in the Discover tab, download one file and load it. Needs a version whose bundled llama.cpp supports the qwen4_moe architecture. Not tested by us.
Ollama:
ollama run hf.co/webmp3/Sakura-Qwen4-35B-A3B-Uncensored-GGUF:Q4_K_M
Needs a version whose bundled llama.cpp supports the architecture. Not tested by us.
5. Verification
- Real inference test:
Q4_K_M loaded by llama.cpp b12973 and generated coherent text once. The other files were not run; their tensor types below are read from their own headers on the Hub. - No perplexity, KL divergence, benchmark or quality score was measured for these files.
Technical details: exact versions, hashes, how these were made
Exact versions
- Source commit:
98e9ab722ecaca12eb6cabe892d15e91187b7fe3(model card at that commit) - llama.cpp: release
b12973(built from the tag)
File hashes
| File | Bytes | SHA-256 | Kind |
|---|---|---|---|
Sakura-Qwen4-35B-A3B-Uncensored-Q2_K.gguf |
24989776672 | b962930f27244a6c35666068215e98bcafc886300c8c900f13dc19e8c67a2649 |
Q2_K |
Sakura-Qwen4-35B-A3B-Uncensored-Q3_K_M.gguf |
28927238432 | 59bf4e5067f7f823ecc57148b4d2d94b134043c4d0f017936f45848ed2d69fa0 |
Q3_K_M |
Sakura-Qwen4-35B-A3B-Uncensored-Q4_K_M.gguf |
36078192416 | 412403207781572805dff3f8d176443d7aecfa75c9c13ce7c52c9ea11791def9 |
Q4_K_M |
Sakura-Qwen4-35B-A3B-Uncensored-Q5_K_M.gguf |
41019016992 | 5488cfbf3111a0f504237a06e88cc0a23ce11a33155c51ca71750035adcb87d9 |
Q5_K_M |
mmproj-Sakura-Qwen4-35B-A3B-Uncensored-F16.gguf |
899283552 | b3ae8fb00ddf483ff2858dbd490ed83f6e6465eb408a520dc56fbe0679412244 |
vision projector |
How these were made
The safetensors of OpenUncensored/Qwen4-35B-A3B-Uncensored were converted to a BF16 GGUF with the unmodified convert_hf_to_gguf.py of llama.cpp b12973 (its pinned transformers 4.57.6). The repository's top-level tokenizer config names a transformers-5 class, so the conversion used the same tokenizer from the repository's own tokenizer-compat/ folder (shipped there for backward compatibility), with tokenizer_class set to Qwen2TokenizerFast. The quantizations are stock llama-quantize presets without an importance matrix.
Stock llama.cpp keeps some tensors (for example normalization and gated-residual weights) in higher precision, so not every tensor is stored in the named type; the table shows what each file really contains (read from the file headers on the Hub).
| File | Tensors by type |
|---|---|
Sakura-Qwen4-35B-A3B-Uncensored-Q2_K.gguf |
BF16: 22, F16: 1, F32: 335, Q2_K: 377, Q3_K: 134, Q4_0: 1, Q4_K: 41, Q6_K: 1 |
Sakura-Qwen4-35B-A3B-Uncensored-Q3_K_M.gguf |
BF16: 22, F16: 1, F32: 335, Q3_K: 377, Q4_0: 1, Q4_K: 167, Q5_K: 8, Q6_K: 1 |
Sakura-Qwen4-35B-A3B-Uncensored-Q4_K_M.gguf |
BF16: 22, F16: 1, F32: 335, Q4_K: 468, Q5_0: 1, Q6_K: 85 |
Sakura-Qwen4-35B-A3B-Uncensored-Q5_K_M.gguf |
BF16: 22, F16: 1, F32: 335, Q5_1: 1, Q5_K: 468, Q6_K: 85 |
6. License Information
Source license: apache-2.0 (redistribution with attribution).
中文说明 · 樱花 Sakura(点击展开)
樱花 Sakura · OpenUncensored/Qwen4-35B-A3B-Uncensored 的 GGUF 量化
独立的社区量化版本,并非上游作者的官方发布。
本仓库量化自 OpenUncensored/Qwen4-35B-A3B-Uncensored,它是 OpenUncensored 基于 Qwen/Qwen4-35B-A3B 制作的减少拒答版本。拒答行为及其评测来自该版本,详见其模型卡。该模型可能回答原版会拒绝的请求,请负责任并在法律范围内使用。
原版模型基准测试

以下为 Qwen 团队公布的原版 Qwen/Qwen4-35B-A3B 成绩,并非在本去审查衍生模型或这些量化文件上测得。
适合哪块显卡
每个文件中很大一部分是逐层 n-gram 表 per_layer_token_embd。llama.cpp(b12973 及更新版本)不会把它放进显存或整体载入内存,而是按需直接从磁盘文件读取所需的行(默认 --lazy-mode auto,适用于超过 4 GiB 的张量,基于内存映射文件)。词嵌入同样留在 CPU 上。使用 -ngl 99 时只有其余部分进入显卡。
| 量化 | 文件 | n-gram 表(留在 SSD) | 词嵌入(内存) | 显卡部分(权重) | 最小合适显卡 | 该卡剩余(上下文等) |
|---|---|---|---|---|---|---|
| Q2_K | 25.0 GB | 11.5 GB | 0.2 GB | 13.3 GB (12.4 GiB) | 16 GB | 3.6 GiB |
| Q3_K_M | 28.9 GB | 11.5 GB | 0.2 GB | 17.2 GB (16.0 GiB) | 24 GB | 8.0 GiB |
| Q4_K_M | 36.1 GB | 14.1 GB | 0.3 GB | 21.7 GB (20.2 GiB) | 24 GB | 3.8 GiB |
| Q5_K_M | 41.0 GB | 15.4 GB | 0.3 GB | 25.3 GB (23.6 GiB) | 32 GB | 8.4 GiB |
“最小合适显卡”指在权重之外仍至少剩余 2 GiB(用于上下文 KV 缓存和计算缓冲)的最小常见显存规格(8/12/16/24/32/48 GB)。是否足够取决于你的上下文长度与设置,未经测量。所有大小均读取自 Hub 上的文件头;本表未在真实显卡上测试,从 SSD 读取该表的速度也未测量(高速 NVMe SSD 有帮助,空闲内存会被系统用作缓存)。显存更小时,可用 --n-cpu-moe N 将 N 层的专家放在系统内存中(更慢,未测试)。
1. 概述
架构:qwen4_moe(GGUF qwen4exp)· 总参数 35B / 激活 3B,另含 20B 逐层 n-gram 嵌入表与 2B MTP,支持图像输入。
原始模型:112.8 GB(BF16 GGUF,这些量化版本的来源)。
| 量化 | 大小 | 相比原始模型 |
|---|---|---|
| Q2_K | 25.0 GB | 小 78 % |
| Q3_K_M | 28.9 GB | 小 74 % |
| Q4_K_M | 36.1 GB | 小 68 % |
| Q5_K_M | 41.0 GB | 小 64 % |
n-gram 表 per_layer_token_embd 每行 128 个值,K 量化格式无法容纳,llama.cpp 会改用旧格式(例如 Q3_K_M 中为 Q4_0);仅此表按量化不同为 11.5–15.4 GB,llama.cpp 按需从磁盘读取,不加载进显存(见“适合哪块显卡”)。
2. 文件与使用
| 文件 | 大小 | 类型 |
|---|---|---|
Sakura-Qwen4-35B-A3B-Uncensored-Q2_K.gguf |
25.0 GB | Q2_K |
Sakura-Qwen4-35B-A3B-Uncensored-Q3_K_M.gguf |
28.9 GB | Q3_K_M |
Sakura-Qwen4-35B-A3B-Uncensored-Q4_K_M.gguf |
36.1 GB | Q4_K_M |
Sakura-Qwen4-35B-A3B-Uncensored-Q5_K_M.gguf |
41.0 GB | Q5_K_M |
mmproj-Sakura-Qwen4-35B-A3B-Uncensored-F16.gguf |
0.9 GB | vision projector |
llama-server -hf webmp3/Sakura-Qwen4-35B-A3B-Uncensored-GGUF:Q4_K_M -c 8192 --port 8080
需要支持该架构的 llama.cpp(本发布使用 b12973)。超过 45 GB 的文件已拆分为编号部分,请放在一起并加载第一个。本版本未测试图像输入。
3. 验证
- Q4_K_M 已由 llama.cpp b12973 加载并成功生成一次连贯文本;其他文件未运行推理,其张量类型读取自 Hub 上的文件头。
- 未测量困惑度、KL 散度、基准或质量分数。
量化方式:使用 llama.cpp b12973 原版转换脚本将 safetensors 转为 BF16 GGUF(分词器取自仓库自带的 tokenizer-compat/),再用标准 llama-quantize 预设量化,未使用重要性矩阵。
文件哈希见英文说明的技术细节部分。
4. 许可证
源许可证:apache-2.0(允许在署名的前提下再分发)。
完整独立的中文版:README_zh.md