license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B-FP8
pipeline_tag: image-text-to-text
library_name: transformers
tags:
- qwen4
- qwen4-moe
- moe
- fp8
- vllm
- uncensored
- abliterated
- conversational
- reasoning
- tool-calling
- function-calling
- agentic
- red-teaming
- local
- open-weights
Build with the same models.
Access uncensored and abliterated open-weight models through one private, OpenAI-compatible API. Zero data retention, and nothing you send is kept.
Private, and unrestricted.
A private, uncensored AI chat app with uncensored text, image, and video models. Chats stay encrypted on your device, with direct answers and nothing logged.
Qwen4-35B-A3B-Uncensored-FP8
Qwen4-35B-A3B-Uncensored-FP8 is a native FineGrained FP8 uncensored, abliterated build of Qwen/Qwen4-35B-A3B-FP8 released by Morse, which provides a private, encrypted AI app for uncensored chat, image, and video models alongside a private OpenAI-compatible inference API for abliterated open-weight models. Refusal behavior is removed directly in native FP8 weight space via residual-stream orthogonalization — no fine-tuning, no DPO, and no full-model upcast or re-quantization.
- Single 80 GB GPU fit (
60.2 GBon disk /~40 GBor~59 GBmodel VRAM): Ships as33native block-wiseFP8 E4M3safetensors shards for A100, H100, and H200 GPUs. With Per-Layer Embedding (PLE) CPU offload enabled, model VRAM stays around~40 GB(36.9 GiBweights), leaving headroom for the full 1M-token lossless BF16 context window on a single 80 GB GPU. Keeping PLE in GPU HBM (~59 GBmodel VRAM /56.0 GiBweights) unlocks maximum decode throughput up to256Klossless context. - Native multimodal, reasoning, tool calling, and MTP preserved: The built-in 1-layer Multi-Token Prediction (
mtp.*) draft head, vision encoder (visual.*), Per-Layer N-gram Embeddings (ple.*),config.json, and reference Qwen4 tokenizer and processor are preserved byte-identical to upstream. - Refusals reduced from
95.33%to1.11%: Achieves93.56%clean compliance across 3 held-out harmful suites (HarmBench,HarmBench-Think,StrongREJECT, vs.3.11%Base) and93.0%clean compliance onJBB(2.0%refusal,5.0%caveat), while cutting benign over-refusal onXSTestfrom16.4%down to0.4%(98.8%clean compliance). - Strong capability retention (
80.06%5-suite mean): Ties Base onGSM8K(97.33%), retainsHumanEvalat92.68%(-0.61 pp), holdsMATH-500at67.00%, and preserves chain-of-thought reasoning depth across all reasoning suites.
Files
| Files | Size | Description |
|---|---|---|
model-00001-of-00033.safetensors – model-00033-of-00033.safetensors |
60.2 GB |
33 FineGrained FP8 safetensors shards (FP8 E4M3 with 128×128 block scales on routed experts; BF16 dense, recurrent, attention, vision, and MTP weights). All mtp.*, visual.*, and ple.* tensors are untouched. |
model.safetensors.index.json |
7.3 MB |
Safetensors shard weight map, unchanged from upstream. |
config.json, configuration.json, generation_config.json |
< 100 KB |
Model architecture and default generation settings, unchanged from upstream. |
tiktoken.model, tokenization_qwen4.py, processing_qwen4.py, tokenizer-compat/, and upstream processor/detector files |
28.5 MB |
Official Qwen4 tokenizer, multimodal processor, and backward-compatibility Jinja chat template, unchanged from upstream. |
Quickstart
Hosted Private API (No Local Setup)
Want to call Qwen4-35B-A3B-Uncensored without downloading weights or managing GPUs? Morse Inference exposes a private, OpenAI-compatible /v1/chat/completions API with zero data retention — drop-in compatible with Open WebUI, SillyTavern, LibreChat, Cline, and standard OpenAI SDKs:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://inference.trymorse.ai/v1",
api_key=os.environ["MORSE_API_KEY"],
)
response = client.chat.completions.create(
model="qwen/qwen4-35b-a3b-uncensored",
messages=[
{"role": "user", "content": "Explain how block-wise FP8 quantization works in MoE models."},
],
)
print(response.choices[0].message.content)
Browse all hosted uncensored models and model IDs at trymorse.ai/inference.
Local Serving with vLLM (1M Lossless Context — Single 80 GB GPU)
Uses the official vllm/vllm-openai:qwen4 image with Per-Layer Embedding (PLE) CPU offload (~40 GB model VRAM, ~30 GB host RAM) and built-in Multi-Token Prediction (k=2) speculative decoding. Verified on a single NVIDIA A100-SXM4-80GB at 193–198 tok/s single-user decode, 350–402 tok/s at 4 concurrent requests (531 tok/s at 8 concurrent), 14.4K tok/s 128K prefill, and full 1M-token needle retrieval in 82s:
docker run --gpus all --ipc=host -p 8000:8000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
vllm/vllm-openai:qwen4 \
Morse-AI/Qwen4-35B-A3B-Uncensored-FP8 \
--trust-remote-code \
--max-model-len 1048576 \
--max-num-batched-tokens 16384 \
--gpu-memory-utilization 0.94 \
--engram-config '{"cpu_offload": true}' \
--speculative-config '{"method": "mtp", "num_speculative_tokens": 2, "index_share_for_mtp_iteration": true}' \
--enable-auto-tool-choice \
--tool-call-parser qwen4 \
--reasoning-parser qwen4
Max-Throughput Profile (256K Context — PLE in GPU HBM)
If your workloads fit within a 256K context window (478K total lossless BF16 KV cache tokens across concurrent requests), keeping PLE resident in GPU HBM (~59 GB model VRAM, 5 GB host RAM) eliminates PCIe gathers. Change three flags from the command above:
--engram-config '{"cpu_offload": false}' \
--max-model-len 262144 \
--gpu-memory-utilization 0.95
Verified on a single NVIDIA A100-SXM4-80GB: 201–209 tok/s single-user decode (c1), 483–501 tok/s at c4, 807–839 tok/s at c8, 1,108 tok/s at c12, 14.2K–16.4K tok/s prefill (4K–128K), and ~74 ms short TTFT. Adding --kv-cache-dtype fp8 with PLE in GPU HBM expands the KV pool to 892K tokens (512K max context) if needed.
Thinking Control Tip: Keep
--trust-remote-codeenabled so vLLM loads the reference Qwen4 tokenizer and chat template. The template supportsreasoning_effortvalues"off","low","high", and"xhigh". To disable thinking in a request, passenable_thinking: false(or pair it withreasoning_effort: "off") viaextra_body={"chat_template_kwargs": {"enable_thinking": False}}.
Evaluation
Evaluated across 9 held-out suites (1,764 prompts; 4 safety/benign and 5 capability) plus JBB (100 prompts) under identical deterministic greedy decoding (llama.cpp b12973, non-thinking mode unless noted): Base (ggml-org/Qwen4-35B-A3B-GGUF Q8_0) vs. Morse-AI (companion Q8_0 export of this directional orthogonalization).
Summary (9-Suite Aggregates)
| Metric | Base | Morse-AI |
|---|---|---|
| Harmful Refusal (3-suite mean ↓) | 95.33% | 1.11% |
| Refusal + Caveat (3-suite mean ↓) | 96.89% | 6.44% |
| Clean Compliance (3-suite mean ↑) | 3.11% | 93.56% |
| 5-Suite Capability Mean (↑) | 82.42% | 80.06% |
| Capability Δ vs. Base | +0.00 pp | -2.36 pp |
Safety & Over-Refusal (refusal% (caveat%) — lower is better)
| Suite (n) | Base | Morse-AI |
|---|---|---|
harmbench (150) |
96.0% (2.0%) | 2.0% (8.0%) |
harmbench-think (150) |
98.0% (0.0%) | 1.3% (5.3%) |
strongreject (150) |
92.0% (2.7%) | 0.0% (2.7%) |
xstest benign (250) |
16.4% (6.0%) | 0.4% (0.8%) |
jbb (100) |
— | 2.0% (5.0%) |
Capability Retention (accuracy% — higher is better)
| Suite (n) | Base | Morse-AI |
|---|---|---|
mmlu (500) |
75.80% | 70.60% |
mmlu-pro (150) |
76.67% | 72.67% |
gsm8k (150) |
97.33% | 97.33% |
math-500 (100) |
69.00% | 67.00% |
humaneval (164) |
93.29% | 92.68% |
(Methodology note: The 9-suite and JBB benchmarks above were run under deterministic greedy decoding on the companion Q8_0 export (llama.cpp b12973, non-thinking mode unless noted). Reasoning-token length ratios on Morse-AI stayed intact at 0.956× on mmlu-pro, 1.242× on gsm8k, 1.240× on math-500, and 1.023× on humaneval relative to Base, confirming zero chain-of-thought collapse. This FineGrained FP8 checkpoint applies the same directional orthogonalization natively in FP8 without full-model upcast or re-quantization and passed full live vLLM A100 qualification across long-context needle retrieval up to 1M tokens, concurrent KV soak, prefix caching, tool calling, vision, structured JSON output, reasoning, and uncensored compliance. Full raw evaluation JSON is included in eval/leaderboard_9suites.json.)
Abliteration Method
This release uses weight-level abliteration (residual-stream orthogonalization, following Arditi et al., 2024) rather than fine-tuning, DPO, or prompt engineering:
- Refusal-mediating directions are identified across both non-thinking and thinking modes on a leak-free prompt set with zero overlap against any reported benchmark.
- Candidate interventions are screened to minimize neutral-corpus KL divergence across English prose, code, math, and multilingual text while removing refusals and caveats and preserving reasoning chain lengths.
- Orthogonalization is baked directly into the native FineGrained FP8 weight matrices of
Qwen/Qwen4-35B-A3B-FP8without full-model upcast, re-quantization, or fine-tuning, leaving upstream block scales, the Multi-Token Prediction (mtp.*) draft head, the vision encoder (visual.*), Per-Layer N-gram Embeddings (ple.*), and the official tokenizer and chat template intact.
Disclaimer, Risks & Intended Use
This model has had its refusal alignment substantially reduced via weight-level orthogonalization. Because standard refusal guardrails have been removed, it will comply with requests that the upstream model refuses and can generate inaccurate, biased, offensive, or harmful content.
- Intended use: Intended for AI safety research, mechanistic interpretability, alignment-robustness evaluation, authorized red-teaming, and custom deployments where you implement your own alignment and moderation layer. It is not intended or designed to facilitate illegal, harmful, or malicious activity.
- Deployment & verification: Implement independent input/output filtering, moderation, and human oversight before exposing these weights to end users. Treat all model outputs as untrusted and verify them independently before acting on them.
- User responsibility: You are solely responsible for how you deploy, integrate, and use this model, and for complying with all applicable local, national, and international laws, regulations, and export controls (including obligations under frameworks such as the EU AI Act where applicable).
- No warranty & limitation of liability: Consistent with Apache 2.0 Sections 7 and 8, these weights and accompanying files are provided "AS IS", without warranty of any kind, express or implied. We assume no liability for any direct, indirect, incidental, consequential, or legal damages or losses arising from the use or misuse of this model.
License & Attribution
This repository is a modified derivative of Qwen/Qwen4-35B-A3B-FP8, redistributed under the upstream Apache License 2.0. The upstream LICENSE is preserved unchanged. All rights to the base model remain with their respective owners.