license: apache-2.0
license_link: https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/LICENSE
base_model:
- Qwen/Qwen4-35B-A3B-FP8
- OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: transformers
tags: - qwen4
- qwen4_moe
- fp8
- abliterated
- uncensored
- vllm
Qwen4-35B-A3B-FP8-Uncensored
An FP8 build of OpenUncensored/Qwen4-35B-A3B-Uncensored
in the exact layout of the official Qwen/Qwen4-35B-A3B-FP8.
It loads anywhere the official FP8 checkpoint loads, with the same flags.
Safety refusals are removed. Use it for red-team, security research and other work where refusals get in the way.
You are responsible for how you use it.
How it was made
OpenUncensored removed refusals by directional ablation. Their edit changes 78 tensors on layers 8 to 33: the attention
output projection, the shared expert down_proj and the routed experts down_proj. Everything else is Qwen's.
This build starts from the official FP8 checkpoint (revision 4d35041f) and replaces only those tensors, taken from the
OpenUncensored BF16 release (revision 0b86787a):
- The 52 BF16 tensors (attention output, shared expert) are copied byte for byte.
- The routed experts of the 26 edited layers are quantized once with Qwen's block-FP8 scheme: per 128x128 block,
scale_inv = bf16(amax / 448), and the division is done in BF16. On the stock weights this scheme reproduces the
official FP8 bytes and scales exactly. - Every other byte is the official file: 16 of 33 shards are identical, and the other 17 differ only in the edited tensors.
The FP8 weights were not edited directly. Dequantizing, editing and quantizing again gave 1.31 times the stock
quantization error and kept 0.452 of the refusal component instead of 0.5. A single quantization of the edited BF16
weights has neither problem.
Build checks
| Check | Result |
|---|---|
| Quantizer reproduces the official FP8 experts, layers 10 and 27 | bytes and scales identical |
| Official FP8 BF16 tensors equal the official BF16 release, layers 10 and 27 | identical |
| Copied BF16 tensors equal OpenUncensored | 52 of 52 identical |
| Refusal component left, all 26 edited layers (target 0.5) | 0.5001 to 0.5003 |
| FP8 error against the OpenUncensored BF16 experts | equal to stock on all 26 layers (0.0270) |
| Untouched shards and tensors | identical to the official files |
Measured
vLLM, tensor parallel 4, FP8 KV cache, MTP on, 1,034,688-token context, against the official FP8 build on the same
hardware and harness.
| Check | Qwen4-35B-A3B-FP8 | This model |
|---|---|---|
Refusals, first 50 prompts of mlabonne/harmful_behaviors test (keyword check, read by hand) |
42/50 | 0 of 49 answered, 1 hit the 16k-token limit |
| HumanEval / HumanEval+ (EvalPlus, greedy) | 97.6 / 92.1 | 95.7 / 90.2 |
| Decode, 1,500 tokens, thinking on | 115.9 tok/s | 116.3 tok/s |
| Prefill, 13.8k tokens | 7,542 tok/s | 7,554 tok/s |
The HumanEval+ gap is 5 problems lost and 2 gained (exact McNemar p = 0.45), so it is within noise.
Use
Serve it as you serve the official FP8 checkpoint, for example:
vllm serve AzatAI/Qwen4-35B-A3B-FP8-Uncensored --tool-call-parser qwen4 --reasoning-parser qwen4 --enable-auto-tool-choice
Sampling, thinking control, vision and video work as described on the
official model card.
License
Apache 2.0, the same as Qwen4-35B-A3B and the OpenUncensored release.