license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: transformers
inference: false
language:
- en
- zh
tags: - qwen4
- qwen4_moe
- moe
- uncensored
- abliterated
- gptq
- compressed-tensors
- w4a16
- mixed-precision
- fp8-ple
- vllm
- vision-language
- rtx-3090
- sm86
Qwen4-35B-A3B-Uncensored-GPTQ-MIX48-FP8PLE
An unofficial calibrated mixed-precision INT4/INT8 (~5.47 bits/expert) quantization of OpenUncensored/Qwen4-35B-A3B-Uncensored with Qwen's official FP8 E4M3 n-gram / PLE embedding table, built for 2× 24 GB Ampere GPUs (RTX 3090 / sm_86) running vLLM tensor parallelism (TP=2) with vision and DFlash2 speculative decoding.
Model-tree lineage: this artifact → OpenUncensored/Qwen4-35B-A3B-Uncensored → Qwen/Qwen4-35B-A3B.
This build only quantizes routed MoE expert weights from OpenUncensored's BF16 release (revision 0b86787) and pairs them with Qwen's official FP8 PLE table. No additional training, fine-tuning, merging, or further ablation was performed.
Qwen/Qwen4-35B-A3B (35B MoE, 3B active, 1M context, vision) with its refusals removed by directional ablation. 78 tensors change: the residual writers of layers 8 to 33. Everything else (n-gram embedding table, vision tower, MTP head, router, gated-residual mixers, layers 0 to 7 and 34 to 39) is byte-identical to Qwen's files.
These are OpenUncensored's claims about the upstream BF16 checkpoint. This repository independently verified quantized logit fidelity, smoke/speed tests, and an 8-prompt refusal probe (0/8 refusals), but has not re-run OpenUncensored's full 100-prompt harmful evaluation, MMLU, or SQuAD 2.0 suite.
Release family (calibrated GPTQ-MIX48 + FP8 PLE)
| Variant | Base model | Hugging Face repo |
|---|---|---|
| Normal | Qwen/Qwen4-35B-A3B |
chimingw/Qwen4-35B-A3B-GPTQ-MIX48-FP8PLE |
| Uncensored (this repo) | OpenUncensored/Qwen4-35B-A3B-Uncensored |
chimingw/Qwen4-35B-A3B-Uncensored-GPTQ-MIX48-FP8PLE |
| Cyber-Frost | Blackfrost-AI/Cyber-Frost-35B |
chimingw/Cyber-Frost-35B-GPTQ-MIX48-FP8PLE |
Model details
| Property | Value |
|---|---|
| Direct artifact source | OpenUncensored/Qwen4-35B-A3B-Uncensored |
| Source revision inspected | 0b86787 |
| Original upstream base | Qwen/Qwen4-35B-A3B |
| Architecture | Qwen4MoeForConditionalGeneration (40 layers, 256 routed experts / 8 active + 1 shared expert, hybrid linear/full attention, 1 MTP layer) |
| Parameters | ~35B total / ~3B active per token (+ ~20.5B n-gram PLE table) |
| Format | safetensors (compressed-tensors, pack-quantized) |
| Quantization | Calibrated GPTQ INT4 (group_size=32, symmetric) on 29 routed-expert layers + MTP; MSE-clipped per-channel INT8 on 11 routed-expert layers; ~5.47 effective bits/expert incl. scales |
| Non-expert weights | BF16 (lm_head, embed_tokens, visual, linear_attn, self_attn, shared_expert, mlp.gate, hyper_connection) |
| PLE / n-gram table | Official Qwen FP8 (float8_e4m3fn), 11 shards (19.07 GiB), byte-identical to upstream FP8 release |
| Native context | 1,048,576 tokens |
| Verified 2×3090 context (vision + DFlash2) | 873,216 tokens (MAXSEQS=8, 875K KV pool) or 950,272 tokens (MAXSEQS=2, 965K KV pool) |
| Modalities | Text + Image (vision tower preserved in BF16; video untested/disabled in default 3090 profile) |
| Runtime | vLLM TP=2 via lulakien/qwen4-35b-a3b-2x3090 |
| Target platforms | Linux with 2× 24 GB NVIDIA Ampere+ GPUs (tested on 2× RTX 3090 FE, 32 GB host RAM) |
| Hosted inference | Disabled (inference: false) |
Quantization recipe
GPTQ-MIX48 keeps the 11 most sensitivity-critical routed-expert layers in per-channel INT8 and uses calibrated GPTQ INT4 (group_size=32, symmetric) on the remaining 29 routed-expert layers:
- INT8 per-channel (MSE-clipped) routed experts (11 layers):
15, 16, 23, 24, 27, 28, 31, 32, 35, 36, 39(layers15–32quantized from OpenUncensored BF16; layers35, 36, 39are byte-identical between OpenUncensored and stock Qwen4 BF16, so they reuse the same INT8 shards) - Calibrated GPTQ INT4 (
group_size=32, symmetric) routed experts (29 layers + MTP):0–14, 17–22, 25–26, 29–30, 33–34, 37–38, mtp - BF16 preserved: embeddings,
lm_head, attention (linear_attn,self_attn), shared experts, routers (mlp.gate), hyper-connections, and the entire vision encoder (visual) - FP8 E4M3 (
float8_e4m3fn): n-gram PLE table (offloaded to host RAM or disk) - Weight footprint:
49,649,075,577bytes (49.65 GB/46.24 GiB) across 52 checkpoint files (27.13 GiBGPU/model shards +19.07 GiBFP8 PLE shards +37.40 MiBconfig/tokenizer files). On 2× RTX 3090 TP=2, loaded GPU weights take 13.51 GiB/GPU. - Integrity: All 95,849 tensors (
70,505GPTQ/non-expert +25,344INT8) were verified by raw-payload SHA-256 against their source builds with0mismatches.
Measured fidelity and performance
Cross-engine fidelity (H200 TP=1 / BF16 KV reference → 2×3090 TP=2 / FP8 KV)
Evaluated over 46,900 token positions on a fixed corpus (MTP=0 diagnostic protocol; includes engine/TP/FP8-KV differences in addition to weight quantization; Top-20 KLD is a truncated approximation):
| Candidate | BF16 ref NLL | Candidate NLL | Top-1 agreement | Top-20 KLD |
|---|---|---|---|---|
| Uncensored GPTQ MIX48 (this repo) | 0.480344 | 0.481533 | 96.6077% | 0.033865 |
| Normal GPTQ MIX48 (reference) | 0.484006 | 0.482598 | 96.2090% | 0.039841 |
Decode throughput (2× RTX 3090, DFlash2 k=7, short-prompt C1 greedy, 512 tokens)
Median streamed decode excluding TTFT across 3 measured reps after warmup (not a long-context depth benchmark):
| Variant | Prose tok/s | Prose AL | Code tok/s | Code AL | Smoke | Refusals / 8 |
|---|---|---|---|---|---|---|
| Uncensored GPTQ-MIX48 + DFlash2 k=7 | 202.6 | 2.13 | 435.3 | 4.60 | 9/9 | 0/8 |
| Normal GPTQ-MIX48 + DFlash2 k=7 | 218.1 | 2.27 | 397.4 | 4.19 | 9/9 | 8/8 |
Verified 2× RTX 3090 memory & concurrency envelope (vision + DFlash2 k=7, FP8 KV)
MAXSEQS |
UTIL |
MAXLEN |
Boots? | Post-warmup KV (TP0 / TP1) | Shared KV pool |
|---|---|---|---|---|---|
| 8 | 0.95 | 873,216 | Yes | 5.28 / 5.31 GiB | 875,265 tokens |
| 2 | 0.95 | 950,272 | Yes | 5.77 / 5.81 GiB | 964,732 tokens |
Run on 2× RTX 3090 (vLLM)
1. Download the model (and optional DFlash2 drafter)
hf download chimingw/Qwen4-35B-A3B-Uncensored-GPTQ-MIX48-FP8PLE \
--local-dir ./Qwen4-35B-A3B-Uncensored-GPTQ-MIX48-FP8PLE
# Optional: RadixArk DFlash2 speculative drafter (~790 MB)
hf download RadixArk/Qwen4-35B-A3B-Dflash2 \
--local-dir ./qwen4-35b-a3b-dflash2
2. Serve with lulakien/qwen4-35b-a3b-2x3090
Clone lulakien/qwen4-35b-a3b-2x3090 (tested at commit 27e70cc) and launch the long1m profile with vision enabled and ENGRAM=disk (recommended on 32 GB RAM hosts; pinned-RAM n-gram table requires ~45 GB host RAM):
git clone https://github.com/lulakien/qwen4-35b-a3b-2x3090.git
cd qwen4-35b-a3b-2x3090
# 873K context, 8 concurrent slots, vision enabled (up to 4 images), DFlash2 k=7
MODEL_DIR=/path/to/Qwen4-35B-A3B-Uncensored-GPTQ-MIX48-FP8PLE \
DRAFT_DIR=/path/to/qwen4-35b-a3b-dflash2 \
SPEC=dflash2 \
OVERLAYS=skinny86,hostar_ce,hostll,dflash2,draftw8,qsa86,w8dense,pov,gdn86,hcfuse,moefast \
ENGRAM=disk MIN_HOST_GIB=12 \
MAXLEN=873216 MAXSEQS=8 UTIL=0.95 TEXT_ONLY=0 \
PORT=8000 \
bash launch/long1m.sh
For 950K context with vision on 2× 3090, set MAXLEN=950272 MAXSEQS=2.
3. API check
curl -s http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-35b-a3b-w4a16",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 64
}'
Bind to 127.0.0.1 or a private overlay network (e.g., Tailscale) unless you place authentication in front of the endpoint.
Multimodality
- The vision encoder (
visual) is preserved in BF16 andlanguage_model_onlyisfalse. - Verified end-to-end on 2× RTX 3090 with
TEXT_ONLY=0(up to 4 images per request, video disabled): color recognition and image+text requests return HTTP 200 with DFlash2 active. - Observed OCR caveat: In small-digit PNG OCR tests (
4279), the uncensored variant occasionally misread4279as4879under some prompt wordings while reading it correctly on other runs. Do not assume perfect small-text OCR without testing on your own workload. - When DFlash2 is enabled on image turns, the draft model falls back to text-only draft proposals while the target model verifies against the full image embeddings.
Intended use
Local research, red-teaming, creative writing, and self-hosted agentic workflows on dual 24 GB Ampere GPUs where reduced refusal behavior is desired and the operator assumes full responsibility for downstream safety controls.
Provenance
- Direct source:
OpenUncensored/Qwen4-35B-A3B-Uncensored(rev0b86787) - Original upstream base:
Qwen/Qwen4-35B-A3B(revc06f0c19) - FP8 PLE table: official Qwen FP8 n-gram embedding shards (
float8_e4m3fn) - Serving recipe & overlays:
lulakien/qwen4-35b-a3b-2x3090(27e70cc) - Optional speculative drafter:
RadixArk/Qwen4-35B-A3B-Dflash2 - License metadata:
apache-2.0, matching bothOpenUncensored/Qwen4-35B-A3B-UncensoredandQwen/Qwen4-35B-A3B
Notes and limitations
- Uncensored / abliterated weights: This model is derived from an abliterated checkpoint with refusals removed. It can generate harmful, offensive, or dangerous content if prompted; deploy only with appropriate safeguards and in compliance with applicable law.
- Unofficial community quantization: Not affiliated with OpenUncensored or Alibaba / Qwen.
- Shared KV pool: vLLM shares the 875K-token KV pool across all active sequences;
MAXSEQS=8supports eight concurrent shorter/medium requests or one full 873K request (1.00xfull-window concurrency). - Runtime compatibility: Packaged in
compressed-tensors(pack-quantized) format specifically tested with vLLM vialulakien/qwen4-35b-a3b-2x3090; not directly usable inllama.cppor MLX. - Hosted inference: Disabled (
inference: false).
License and attribution
Released under the Apache License 2.0, following OpenUncensored/Qwen4-35B-A3B-Uncensored and Qwen/Qwen4-35B-A3B. See the included LICENSE file for full terms.