license: apache-2.0
base_model:
- orcarouter/Qwen3.8-27B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: transformers
language: - en
- zh
- de
tags: - qwen
- qwen3
- qwen3.8
- abliterated
- uncensored
- nvfp4
- fp4
- w4a4
- compressed-tensors
- llm-compressor
- vllm
- blackwell
- single-gpu
- 24gb
- long-context
- function-calling
- reasoning
- mtp
Qwen3.8-27B-Uncensored-NVFP4-1GPU
The abliterated orcarouter/Qwen3.8-27B-Uncensored,
quantized to full NVFP4 (W4A4) so that it serves 131,072 tokens of context on ONE 24 GB Blackwell card.
| Weights on disk | 20.58 GB (orcarouter's mixed NVFP4+FP8 build: 24.72 GB) |
| Weights on the GPU | 17.53 GiB (mixed build: 21.38 GiB) |
| Decode, one stream / 4 streams | 22.9 tok/s / 89 tok/s total |
| Context on one 24 GB card | 131,072 tokens, KV pool 141,663 tokens (mixed build: 22,080 tokens) |
| Tool-call loss, 96 runs of an agent prompt | 0 / 96 |
| Card we measured on | NVIDIA RTX PRO 4000 Blackwell SFF (24 GB, 70 W) |
| Serving | vLLM 0.34.0, compressed-tensors, FlashInfer CUTLASS NVFP4 GEMM |
Same weights, same abliteration, same chat template and tokenizer as the orcarouter releases. Only the
quantization differs. All the credit for the model and the refusal removal goes to Qwen and orcarouter. This repo
adds a packing that fits the small Blackwell cards, and the measurements that show it works.
⚠️ Disclaimer
This is an abliterated model: the safety refusal direction was removed by orcarouter (see
their card). It will comply with harmful, unethical
or illegal requests that the base Qwen3.8-27B refuses. It has no built-in guardrails.
- You are fully responsible for how you use it and for what it generates.
- Do not put it in front of end users without your own moderation and abuse prevention.
- Use must follow the Apache 2.0 license and every law that applies to you.
- No liability is accepted for misuse. Its outputs are not the views of the uploader, orcarouter or Qwen / Alibaba.
Why this build exists
orcarouter's Qwen3.8-27B-Uncensored-NVFP4 is
mixed precision on purpose: NVFP4 on the MLPs of layers 0-55, FP8 on attention, the linear-attention (Gated
DeltaNet) projections and the last 8 MLPs. That is the right call for accuracy on a big card. On a 24 GB card it is
too big. We measured it on the same RTX PRO 4000 with the same flags as below:
| Build | Weights on the GPU | Longest context that starts |
|---|---|---|
| orcarouter mixed NVFP4 + FP8 | 21.38 GiB | 22,080 tokens (util 0.97, len 32k) |
| this build, full NVFP4 | 17.53 GiB | 131,072 tokens (KV pool 141,663) |
Putting part of the weights in host RAM (--cpu-offload-gb) was measured too and dropped: it makes every token cross
PCIe. Full NVFP4 frees about 3.9 GiB on the card, and that is what the KV cache needs for 131k.
The worry with full W4A4 on this model was tool calling. A different uncensored Qwen3.8-27B fine-tune with the same full
NVFP4 recipe loses tool calls on our harness (the model writes <parameter=terminal> where <function=terminal>
belongs, so the parser finds no call). We measured both with the same 96 runs: that build lost 8 / 96, this one
0 / 96. So the fault was that model's fine-tune, not the full NVFP4 packing.
Model details
| Base model | Qwen/Qwen3.8-27B |
| Source weights | orcarouter/Qwen3.8-27B-Uncensored (BF16), revision 0f639a9bde23fe229a7b064b40a5153c5bec0b48, 55.59 GB, 18 shards |
| Architecture | Qwen3_5ForConditionalGeneration: 64 layers, hybrid attention (48 Gated DeltaNet linear-attention + 16 full-attention layers), vision tower, MTP head |
| Modification by orcarouter | abliteration (refusal-direction removal, Arditi et al. 2024), details on their card |
| Modification here | quantization only: NVFP4 W4A4 on every language-model Linear |
| Format | compressed-tensors 0.20.1, nvfp4-pack-quantized, one config group |
| Files | model_backbone.safetensors (19.71 GB) + model_mtp.safetensors (0.85 GB), 2,687 tensors |
| Context | 262,144 (model limit). This card measures 131,072 on 24 GB |
| Chat template, tokenizer | the ones of the BF16 source, unchanged (vocab identical to orcarouter's NVFP4 build) |
Quantization scheme
| Component | Precision | # linears |
|---|---|---|
MLP gate_proj / up_proj / down_proj, all 64 layers |
NVFP4 | 192 |
Full attention q / k / v / o_proj (16 layers) |
NVFP4 | 64 |
Gated DeltaNet in_proj_qkv / in_proj_z / in_proj_a / in_proj_b / out_proj (48 layers) |
NVFP4 | 240 |
lm_head |
BF16 | 1 |
| Vision tower (27 blocks + merger) | BF16 | 110 |
GDN conv1d, all norms, embeddings |
BF16 | - |
| MTP head (15 tensors) | BF16 | 8 |
NVFP4 here = FP4 E2M1 weights in groups of 16 with an FP8-E4M3 scale per group and an FP32 global scale per
tensor (strategy: tensor_group); activations dynamic FP4 per group of 16 with a calibrated global scale. 496
linears in NVFP4, 126 modules on the ignore list.
The MTP head stays in BF16 so speculative decoding keeps its acceptance rate. The vision tower stays BF16, the same
as in orcarouter's builds.
Calibration
- Tool:
llm-compressor0.15.0,QuantizationModifier
(targets: Linear,scheme: NVFP4), one-shot, round to nearest. No GPTQ, no AWQ. - Data:
perfectblend, 32 samples x 2,048 tokens. Used only for the activation global scales. - Hardware: CPU only (16 cores, ~30 GB RAM), sequential onloading one decoder layer at a time with disk offload.
2,620 s in total (load, calibrate 65 subgraphs, save). No GPU is needed to rebuild it. - Software: inside the
vllm/vllm-openaiv0.34.0 image (torch 2.14.0), transformers 5.21.0,
compressed-tensors 0.20.1. - The exact script and recipe are in
recipe/:requant.py,run-requant.sh,recipe.yaml.
Measurements
All on one NVIDIA RTX PRO 4000 Blackwell SFF (24 GB GDDR7, 70 W board power), driver 615.71, vLLM 0.34.0,
the exact command under Usage. Measured 2026-11-27.
| Test | Result |
|---|---|
Start with --max-model-len 131072 |
ok: weights 17.53 GiB, model load 47 s, KV cache 4.19 GiB = 141,663 tokens, max concurrency at 131k: 1.08x |
| GPU memory in use while serving | 22,438 MiB of 24,467 |
| Needle in a haystack, 95,102 prompt tokens | found (48151623), 124 s end to end with 4 other requests queued |
| Prompt of 131,073 tokens | refused cleanly: HTTP 400 in 0.2 s, "maximum context length is 131072 tokens" |
| Tool calling: 96 runs of a real agent prompt (25,789-char system prompt, 22 tools, a user turn that needs the terminal tool), streaming, 4 in parallel | 96 / 96 with a tool call, finish_reason: tool_calls 96x, 0 lost |
| Same 96 runs, another uncensored Qwen3.8-27B fine-tune, same full NVFP4 recipe | 8 / 96 lost (<parameter= written for <function=) |
| Day-to-day | runs as the overnight model behind an agent gateway since 2026-11-27 |
Speed (same card, alone, no MTP)
Streaming, ignore_eos, thinking off unless stated. Decode = (tokens - 1) / (last token - first token).
| Load | Prompt tokens | Time to first token | Decode per stream | Total |
|---|---|---|---|---|
| 1 stream | 22 | 0.07 s | 22.9 tok/s | |
| 1 stream | 1,523 | 0.42 s (3,626 tok/s prefill) | 22.9 tok/s | |
| 1 stream | 6,023 | 1.77 s (3,403 tok/s) | 22.8 tok/s | |
| 1 stream | 24,023 | 8.59 s (2,797 tok/s) | 22.3 tok/s | |
| 1 stream | 60,023 | 30.1 s (1,997 tok/s) | 21.2 tok/s | |
| 2 streams | 22 | 22.8 tok/s | 45.3 tok/s | |
| 4 streams | 22 | 22.3 tok/s | 89.0 tok/s | |
| 1 stream, thinking on | 62 | 0.08 s | 22.8 tok/s |
The card is a 70 W part: under load the SM clock drops from 3,090 to ~1,520 MHz (67 °C). Decode stays flat up to 4
streams, so batching is nearly free on it.
Probes: probes/needle.sh (needle and overflow) andprobes/toolcall_ab.py (tool-call loss; bring your own chat body with tools).
Not measured yet
Being straight about what is missing:
- Benchmarks (MMLU, MMLU-Pro, GSM8K, WikiText-2 perplexity, refusal rate): running now, this build against
orcarouter's mixed NVFP4 + FP8 build with the same questions (orcarouter's sample sizes, fixed seed) and the same
settings. They land here in the next revision. orcarouter's numbers for the BF16 / FP8 builds are on
their FP8 card. Full W4A4 is expected to cost
somewhat more accuracy than their mixed split. - MTP speculative decoding on 24 GB: the head is in the files, but we serve without it on this card (KV room).
- Vision: the tower is kept, but we serve with
--language-model-only, so images are not tested.
Usage
vLLM on one 24 GB Blackwell card (the measured setup)
docker run -d --name qwen38-uncens-nvfp4-1gpu --gpus all --ipc=host --shm-size 8g \
-v /path/to/Qwen3.8-27B-Uncensored-NVFP4-1GPU:/model:ro -p 8000:8000 \
-e PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
vllm/vllm-openai:v0.34.0 \
/model --served-model-name qwen3.8-27b-uncensored \
--trust-remote-code --language-model-only \
--gpu-memory-utilization 0.95 --max-model-len 131072 \
--max-num-seqs 4 --max-num-batched-tokens 4096 \
--kv-cache-dtype nvfp4 --attention-backend FLASHINFER --mamba-ssm-cache-dtype bfloat16 \
--enable-chunked-prefill --enable-prefix-caching \
--enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3
Notes:
--kv-cache-dtype nvfp4is what makes 131k fit next to the weights. Do not pass--quantization, the scheme is
read fromconfig.json.--language-model-onlyskips the vision tower's memory. Drop it (and lower--max-model-len) to use images.--max-num-seqs 4: one full 131k request fits (1.08x); shorter requests share the pool.--tool-call-parser qwen3_xmlis the one we measured.- On a card with more memory, raise
--max-model-lenup to 262,144 and try--speculative-config '{"method":"mtp","num_speculative_tokens":2}'.
Hardware
- NVFP4 needs Blackwell (RTX 50-series, RTX PRO Blackwell, B200 / GB200) for native FP4 tensor cores.
- 24 GB: 131k context as measured above. 32 GB and up: more context, MTP, more parallel requests.
Thinking toggle
Thinking is on by default. Switch it per request:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
resp = client.chat.completions.create(
model="qwen3.8-27b-uncensored",
messages=[{"role": "user", "content": "Explain how a fridge works in 5 sentences."}],
extra_body={"chat_template_kwargs": {"enable_thinking": False}},
)
print(resp.choices[0].message.content)
Rebuild it yourself
huggingface-cli download orcarouter/Qwen3.8-27B-Uncensored --revision 0f639a9bde23fe229a7b064b40a5153c5bec0b48 \
--local-dir $MODELS/qwen38-27b-uncens-orcarouter-bf16
MODELS=... WORK=... HF_TOKEN=... ./recipe/run-requant.sh
Intended use
- Research on refusal, alignment and interpretability; red-teaming; robustness tests.
- Uncensored local generation in lawful, controlled settings.
- A long-context local agent model on one small Blackwell card.
Out of scope
- Anything against the Apache 2.0 license or the law.
- Public deployment without your own safety layers.
- Content meant to harm, harass, defraud or endanger people.
Bias, risks and limitations
- Guardrails are removed (see the disclaimer).
- It inherits the biases and limits of
Qwen3.8-27Band of the abliteration. - Full W4A4 is not lossless against BF16 and probably loses a bit more than orcarouter's mixed build. Benchmarks
are pending (see Not measured yet). - Without Blackwell FP4 tensor cores it does not run natively.
License
Apache 2.0, from Qwen/Qwen3.8-27B throughorcarouter/Qwen3.8-27B-Uncensored. The license file of
the source is included unchanged. Changes in this repo: quantization only (see Quantization scheme).
Credits
- Qwen team / Alibaba for Qwen3.8-27B.
- orcarouter for the abliteration and the BF16 release this is built on.
- vLLM and llm-compressor for the serving and quantization stack.
Changelog
2026-11-27: first release
- Full NVFP4 W4A4 from the BF16 source, rev
0f639a9b. 131k on one 24 GB card, tool calls 0 / 96 lost.