license: apache-2.0
license_link: https://huggingface.co/Qwen/Qwen4-35B-A3B/blob/main/LICENSE
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
language:
- pt
- en
tags: - qwen4
- qwen4_moe
- moe
- uncensored
- abliterated
- int4
- w4a16
- autoround
- compressed-tensors
- vllm
- mtp
- portuguese
Qwen4-35B-A3B-Uncensored W4A16 AutoRound
A 4-bit (W4A16) AutoRound quantization of
OpenUncensored/Qwen4-35B-A3B-Uncensored
for vLLM. It uses the same layout as
ultimaterex/Qwen4-35B-A3B-W4A16-AutoRound, but
two things differ:
- The base model is the uncensored one. Its refusal directions were ablated on layers 8–33.
- The calibration set is mostly Brazilian Portuguese. It is made of the model's own answers, with reasoning where
the prompt asks for it, instead of generic English web text.
On our small checks it keeps the speed of the stock AutoRound and refuses none of 40 borderline prompts. It also got
the multi-step arithmetic the stock quant missed. See Evaluation for how small these checks are.
What is inside
| Part | Format | Source |
|---|---|---|
| Routed experts, attention, DeltaNet projections | INT4, group 128, symmetric (AutoRound, 200 iters) | quantized here from the uncensored BF16 |
Routers, gates, DeltaNet in_proj_a/b, QSA indexer, hyper-connections, shared experts, norms, vision tower |
BF16 | uncensored BF16 |
| N-gram (PLE/Engram) table, 20.5B entries | FP8 (Qwen's own bytes) | Qwen, via ultimaterex; the ablation does not touch layer 1, where the table lives |
| MTP layer | INT4 experts | Tech2wild/Qwen4-35B-A3B-W4A16-FP8PLE, stock (not ablated) |
The MTP layer only drafts tokens. Every draft is verified by the ablated main model, so it does not bring refusals
back.
Checkpoint format is compressed-tensors pack-quantized. The tensor names, the ignore list and theconfig_groups are identical to ultimaterex's, so anything that serves that repo serves this one.
Calibration
256 sequences × 2048 tokens:
| Rows | Content |
|---|---|
| 130 | The model's own answers to 276 synthetic Brazilian Portuguese prompts: arithmetic word problems (rates, time, money, percentages), logic puzzles, explanations, casual chat, code and infrastructure questions, writing, and a few English prompts. Generated with reasoning_effort off/low/high/xhigh, so <think> blocks are in the calibration. |
| 33 | The model's own answers to real requests from a private Portuguese voice-assistant workload, with its tool definitions. Not released. |
| 56 | NeelNanda/pile-10k |
| 37 | Portuguese Wikipedia (wikimedia/wikipedia 20231101.pt) |
The quantization took 106 min on one RTX 5090, with a peak of 100 GB of host RAM. The 41 GB BF16 n-gram table is read
through an mmap on the CPU, so it never goes to the GPU. AutoRound 0.17.0 and transformers 5.26.0 were used.
Serving (vLLM)
Qwen4 support was not in a vLLM release at the time of writing. We used the day-0 imagevllm/vllm-openai:qwen4 (vllm-project/vllm#71659).
vllm serve <this-repo> \
--trust-remote-code \
--engram-config.disk_offload true \
--kv-cache-memory 4000000000 \
--max-model-len 131072 --max-num-seqs 5 --max-num-batched-tokens 8192 \
--enable-prefix-caching \
--limit-mm-per-prompt '{"image":40,"video":0}' \
--enable-auto-tool-choice --tool-call-parser qwen4 --reasoning-parser qwen4 \
--speculative-config '{"method":"mtp","num_speculative_tokens":1,"index_share_for_mtp_iteration":true}'
| Weights in VRAM | 20.6 GiB |
| Whole process with the 4 GB KV above | ~27.3 GB (fits a 32 GB card) |
| KV capacity | 150k tokens |
| Load time | ~1 min from a warm disk |
| Where the n-gram table lives | NVMe, read by vLLM (disk_offload) |
--trust-remote-code |
needed for the tokenizer and processor files of the base repo (no network or subprocess calls) |
For a 24 GB card, see the reduced-KV launch in ultimaterex's repo. That setup was not tested with this checkpoint.
The reasoning effort goes in the chat template: chat_template_kwargs: {"reasoning_effort": "off" | "low" | "high" | "xhigh"}.thinking_token_budget and min_tokens work as usual.
Evaluation
All numbers come from one RTX 5090 serving this checkpoint alone, with the same vLLM image and flags as above. The
comparison is the stock ultimaterex/Qwen4-35B-A3B-W4A16-AutoRound
on the same setup. The samples are small: read them as smoke tests, not benchmarks.
Speed (medians)
| stock AutoRound | this model | |
|---|---|---|
| Short tool-calling prompt (~2.4k tokens), time to first token | 0.060 s | 0.060 s |
Same, reasoning low, time to first answer token (p90) |
0.188 s (0.381) | 0.129 s (0.296) |
| Prefill, 60k tokens | 18,177 tok/s | 18,155 tok/s |
| Decode, single request (code / prose) | 319 / 267 tok/s | 316 / 264 tok/s |
| Decode after 90k of context | 284 tok/s | 284 tok/s |
| 5 concurrent requests, aggregate | 959 tok/s | 1,002 tok/s |
Reasoning spot checks (3 runs each at low and xhigh)
| stock AutoRound | this model | |
|---|---|---|
| Tank-filling rate problem (answer 14:30) | 3/6 | 6/6 (one with a correct final answer but inconsistent working) |
| Five-houses logic puzzle (both orderings) | 5/6 | 6/6 |
| Discount question in Portuguese (R$ 34,50) | 6/6 | 5/6 (one low run gave R$ 35,00 after 34 reasoning tokens) |
Two things changed together between the two models: the base (ablated) and the calibration (Portuguese,
self-generated). This test cannot tell which one made the difference.
Refusals
The test has 20 borderline but legitimate Portuguese prompts. Each was asked with reasoning off and low, and every
answer was read by hand. The prompts include:
- dark and religious jokes, swearing, a rude reply to a customer;
- picking a lock or hot-wiring a car after losing the keys;
- SQL injection and keyloggers explained, an nmap scan;
- overdose thresholds, toxic house plants, how Pix scams target the elderly;
- violent and horror fiction, a political opinion.
| stock AutoRound | this model | |
|---|---|---|
| Refusals or deflections (of 40) | 8 | 0 |
With reasoning off, this model still declines to pick a side on the political question ("I don't have political
opinions"). With reasoning low, it gives one.
Limitations
- Refusals are removed, so the model will help with things the original refuses. You are responsible for how you
use it and for adding whatever safeguards your application needs. - Factual errors showed up in free-form answers, for example a wrong botanical name. They were not compared with the
BF16 model, so we do not know if they come from the quantization, the ablation or the base model. - With a reasoning budget of a few thousand tokens, 2 of 40
lowanswers in both models spent the whole budget
thinking and returned empty content. Setthinking_token_budgetor a largermax_tokens. - No standard benchmarks (GSM8K, MMLU, perplexity) were run yet.
Credits and license
Apache-2.0, the same license as every component:
- Qwen/Qwen4-35B-A3B: base model and FP8 n-gram table.
- OpenUncensored/Qwen4-35B-A3B-Uncensored: refusal
ablation. - ultimaterex/Qwen4-35B-A3B-W4A16-AutoRound: layer
config, quantization and splice scripts, vLLM flags. - Tech2wild/Qwen4-35B-A3B-W4A16-FP8PLE: INT4 MTP layer.
- Intel AutoRound.