license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: text-generation
tags:
- qwen4
- fp8
- sglang
- uncensored
Qwen4-35B-A3B-Uncensored-FP8
An FP8 copy of OpenUncensored/Qwen4-35B-A3B-Uncensored in the exact file layout of the official Qwen/Qwen4-35B-A3B-FP8. It is about half the size of the BF16 weights (60 GB against 114 GB) and is served by SGLang the same way as the official FP8 release.
- Not trained: only the 78 tensors changed by the uncensoring edit are replaced.
- Same quantization as Qwen's: the quantizer reproduces the official FP8 files byte for byte on tensors the edit did not touch.
- Same speed class as the official FP8 on one 96 GB GPU. In our own evaluation its answers were in line with the official FP8 release.
Build scripts: Catlyn-Lab/qwen4-uncensored-fp8
How it was built

The uncensored model differs from Qwen's original in 78 tensors (layers 8 to 33). In the FP8 layout those 78 tensors map to 6,708 stored tensors:
| Tensors | Count | What was done |
|---|---|---|
Expert down_proj (26 layers x 256 experts) |
6,656 | Re-quantized from the uncensored BF16 weights to block-wise FP8 |
shared_expert.down_proj, linear_attn.out_proj, self_attn.o_proj |
52 | Copied unchanged; the official FP8 release keeps these in BF16 |
| Everything else (embedding table, vision tower, MTP head, router, other projections) | all | The official FP8 bytes, untouched |
Quantization recipe
The official FP8 release stores each expert weight as float8_e4m3fn with one scale per 128 x 128 block (weight_scale_inv). The recipe that reproduces its bytes:
b = w.float().view(o // 128, 128, i // 128, 128).permute(0, 2, 1, 3) # blocks
scale = (b.abs().amax(dim=(2, 3)) / 448.0).bfloat16().float() # rounded to BF16
q = (b / scale[:, :, None, None]).bfloat16().float().to(torch.float8_e4m3fn)
Rounding both the scale and the scaled weights to BF16 matters: plain float32 arithmetic matches only about 97% of the weight bytes.
Check before the build
The same quantizer was run on two layers the edit does not touch (layers 2 and 38, 512 expert tensors). Its output is byte-identical to the official FP8 files, weights and scales. Unedited tensors that the FP8 release keeps in BF16 were also confirmed identical between the two source repositories.
Benchmarks
All numbers were measured on one NVIDIA RTX PRO 6000 Blackwell (96 GB) with SGLang built from the Qwen4 support pull request, MTP speculative decoding (NEXTN, 3 steps, 4 draft tokens), thinking off.
Speed

| Parallel requests | Total output tokens/s | Per-request tokens/s | Median time to first token |
|---|---|---|---|
| 1 | 217 | 229 | 0.12 s |
| 4 | 602 | 165 | 0.23 s |
| 8 | 1,149 | 156 | 0.24 s |
| 16 | 1,931 | 130 | 0.26 s |
| 32 | 2,773 | 94 | 0.37 s |
| 64 | 2,832 | 86 | 0.38 s |
Each request generates 512 tokens from a short prompt. Throughput levels off past 32 parallel requests on this setup.
Long prompts with short answers, against the official FP8 release on the same server build and GPU:
| Load | Official FP8 | This repository |
|---|---|---|
| One 14K-token prompt | 2.7 s | 2.7 s |
| 16 parallel 3.6K-token prompts | 7.7 s | 6.4 s |
| 16 parallel 14K-token prompts | 18.1 s | 17.1 s |
What was not measured
- Public benchmarks. No public benchmark was run on this FP8 copy.
- Refusal behaviour. The refusal and capability numbers on the OpenUncensored card were measured on the BF16 weights. They were not re-measured on this FP8 copy.
- Vision, tool calling, long context and thinking mode.
- MTP acceptance rate as a number. The speed tables above are with MTP on.
Serving (SGLang)
Qwen4 needs an SGLang build that includes Qwen4 support (see the SGLang Qwen4-35B-A3B cookbook). Flags used for the numbers above:
sglang serve --model-path devileya/Qwen4-35B-A3B-Uncensored-FP8 --trust-remote-code --tp 1 \
--mem-fraction-static 0.85 \
--qsa-indexer-dtype fp8_e4m3 \
--linear-attn-prefill-backend flashinfer --linear-attn-decode-backend flashinfer \
--mamba-ssm-dtype bfloat16 \
--speculative-algorithm NEXTN --speculative-num-steps 3 --speculative-eagle-topk 1 --speculative-num-draft-tokens 4 \
--reasoning-parser qwen4 --tool-call-parser qwen4
Thinking is on by default. To turn it off, send "chat_template_kwargs": {"enable_thinking": false}.
Limits
- This model has reduced safety behaviour. You are responsible for how you use it.
- It inherits the limits and biases of Qwen4-35B-A3B and of the uncensoring edit.
Credits and license
Apache 2.0, inherited from the base model. Base model by the Qwen team. Refusal edit by OpenUncensored. FP8 layout from Qwen/Qwen4-35B-A3B-FP8.