license: apache-2.0
license_link: LICENSE
language:
- en
- zh
pipeline_tag: text-generation
library_name: mlx
base_model: Qwen/Qwen4-35B-A3B
base_model_relation: quantized
tags: - mlx
- apple-silicon
- qwen
- qwen4
- moe
- reasoning
- coding
- agentic
- abliterated
- uncensored
- mixed-precision
Qwen4-35B-A3B-abliterated MLX
|
🧰 New from Orca — OrcaPod Run AI pentesting harnesses without installing them. 16 pentesting & red-team harnesses (Strix, PentAGI, PentestGPT, HexStrike AI, RedAmon and more) and 6 coding agents (Claude Code, Codex, Gemini CLI, OpenCode, Goose, Hermes) each run on an isolated cloud worker, in a browser terminal, browser VS Code or their own web UI, pointed at 15 OrcaCyber models from your plan. Verified-domain targets only. |
|
🛡️ New from Orca — OrcaCyber Zero 1.5 Post-trained for cybersecurity: vulnerability analysis, vulnerability reproduction, red teaming & offensive-security research. 98.01% pass@1 on CyberGym Level 1 · 1M context · function calling · OpenAI-compatible API. |
|
🔓 All hosted cyber and abliterated models as API Skip the download: OrcaRouter serves its cybersecurity and abliterated models behind one OpenAI-compatible API key. |
The uncensored Qwen4-35B-A3B on a 48 GB or 64 GB Mac.
34 GB and 43 GB builds · mixed precision · mlx-lm
OrcaRouter AI Gateway · X · Discord · GitHub · All Models
Abliterated Qwen4-35B-A3B, on Apple silicon.
These are MLX builds of an abliterated (refusal-removed)
Qwen/Qwen4-35B-A3B: a 35B mixture of experts with about 3B
active per token, hybrid linear and sparse attention, and a 20B n-gram embedding table that is read, not computed.Harmful-prompt refusal drops from 92% to 7%, with no loss in general capability.
Each build is mixed precision: the routed experts, most of the weights, are quantized hardest, while
attention, the linear-attention layers, the shared expert and the hyper-connection mixers keep 8 bits and the
router stays in BF16. Everything is in MLX's standard affine format, so mlx-lm loads it.
⚠️ Disclaimer: read before use
This model is abliterated: its safety alignment has been substantially reduced. It will
comply with many harmful, unethical, offensive, or illegal requests that the original Qwen4-35B-A3B would
refuse.
- It is released strictly for legitimate research: interpretability, AI safety and
refusal-mechanism study, red teaming, and robustness evaluation. - You assume full responsibility for how you use it and for everything it generates. Add
your own safety, moderation and abuse-prevention layers before any deployment. - Use must comply with the Apache License 2.0 inherited from the base model, and
with all applicable law. - The authors accept no liability for misuse. Its outputs do not reflect the views of the
uploaders or of the Qwen team.
Pick a build
| Build | Weights | bpw | KLD ↓ | Top-1 ↑ | PPL vs. BF16 | Peak memory, 32K context |
|---|---|---|---|---|---|---|
MLX-43GB |
43.04 GB | 6.20 | 0.051 | 92.4% | +0.6% | 50.1 GB |
MLX-34GB |
33.77 GB | 4.86 | 0.091 | 90.1% | +3.6% | 40.8 GB |
- MLX-43GB is for a 64 GB Mac (50.1 GB peak at 32K context). 92.4% of next tokens match the BF16: a noticeable loss that is fine for chat and coding help.
- MLX-34GB is for a 48 GB Mac (40.8 GB peak at 32K context). 90.1% of next tokens match the BF16: a noticeable loss that is fine for chat and coding help.
Use MLX-43GB if you have the memory.
"bpw" is bits per weight over the whole model as mlx-lm reports it, scales and the n-gram table included: MLX keeps the
whole model in memory. Peak memory was measured with mlx-lm on a 32K-token prompt, on NVIDIA GPUs through MLX's
CUDA backend. On a Mac, macOS lets the GPU use only part of the RAM by default; raise the limit before loading (for
example sudo sysctl iogpu.wired_limit_mb=<MB>) and close other apps.
Evaluation
Fidelity to the BF16
Each build is scored against the abliterated BF16, both run in MLX, with the full-vocabulary KL divergence of the
next-token distribution, on 80 windows of 2048 tokens. The text is the model's own answers, reasoning
included, to held-out prompts that were not used to make the builds, and only the assistant tokens are scored.
| Weights | bpw | KLD ↓ | Top-1 ↑ | PPL vs. BF16 | |
|---|---|---|---|---|---|
| MLX-43GB | 43.04 GB | 6.20 | 0.051 | 92.4% | +0.6% |
| MLX-34GB | 33.77 GB | 4.86 | 0.091 | 90.1% | +3.6% |
Method note. These are full-vocabulary KLD and next-token agreement at 2K context, not a downstream benchmark.
Abliteration
These numbers were measured on the abliterated BF16 against the original Qwen4-35B-A3B, served by vLLM with
Qwen4's reasoning parser, with identical prompts, splits and seed, greedy decoding and thinking on (the default
effort). Refusal is judged on the final answer by a rule-based classifier, not an LLM judge, so treat the numbers as
indicative.
Harmful-prompt refusal (lower = more uncensored). Average 7.2%, against 91.9% for the original.
| Benchmark | n | Original | Abliterated | Caveat (original → abliterated) |
|---|---|---|---|---|
| AdvBench | 100 | 98.0% | 7.0% | 82.0% → 42.0% |
| JailbreakBench (harmful) | 100 | 95.0% | 7.0% | 73.0% → 38.0% |
| StrongREJECT | 150 | 98.0% | 6.7% | 70.7% → 42.0% |
| HarmBench (standard) | 150 | 98.7% | 11.3% | 70.7% → 33.3% |
| MaliciousInstruct | 100 | 96.0% | 2.0% | 69.0% → 23.0% |
| SimpleSafetyTests | 50 | 100.0% | 12.0% | 66.0% → 20.0% |
| ForbiddenQuestions | 150 | 57.3% | 4.0% | 66.7% → 31.3% |
The model now answers, but often still opens with a safety disclaimer (the caveat column).
Over-refusal on benign prompts (lower = better).
| Benchmark | n | Original | Abliterated |
|---|---|---|---|
| XSTest-safe | 250 | 4.4% | 1.2% |
| JailbreakBench (benign) | 100 | 20.0% | 5.0% |
Capability. Every change is within the 95% confidence interval except CMMLU, which went up.
| Benchmark | n | Original | Abliterated |
|---|---|---|---|
| MMLU | 300 | 92.3% | 91.3% |
| MMLU-Pro (CoT) | 250 | 85.6% | 86.8% |
| GSM8K (CoT) | 150 | 95.3% | 95.3% |
| CMMLU | 500 | 90.4% | 92.0% |
Refusal and capability were measured on the BF16, not on these builds.
How the builds were made
A refusal subspace was estimated from the model's own activations on harmful and harmless prompts and projected
out of every weight that writes to the model's working stream; nothing was trained. The builds were then quantized
from the abliterated BF16 with a fixed per-module bit allocation in MLX's standard 4- to 8-bit affine format
(groups of 64); each folder's config.json lists the bit width of every module.
What's in this repo
| Path | Size | Contents |
|---|---|---|
Qwen4-35B-A3B-abliterated-MLX-43GB/ |
43.04 GB | the 43GB build |
Qwen4-35B-A3B-abliterated-MLX-34GB/ |
33.77 GB | the 34GB build |
LICENSE |
Apache License 2.0, from the base model |
Each folder is a complete mlx-lm model directory: the weights, config.json, the tokenizer, the chat template and
the generation defaults. These are text-only builds without the MTP head.
Usage (mlx-lm)
Qwen4 MoE support is in mlx-lm pull request
#2140, not yet merged. These builds were made and tested with
its head commit7b35ab5 and mlx 0.32.5:
pip install "mlx-lm @ git+https://github.com/ml-explore/mlx-lm@7b35ab57159442082a64f0a8282ea61b4940cd17"
hf download orcarouter/Qwen4-35B-A3B-abliterated-MLX --include "Qwen4-35B-A3B-abliterated-MLX-34GB/*" --local-dir .
mlx_lm.generate --model Qwen4-35B-A3B-abliterated-MLX-34GB --max-tokens 8192 --temp 1.0 --top-p 0.95 --top-k 20 \
--prompt "Write a Python function that checks whether a number is prime."
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
model, tokenizer = load("Qwen4-35B-A3B-abliterated-MLX-34GB")
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Write a Python function that checks whether a number is prime."}],
add_generation_prompt=True, tokenize=False)
print(generate(model, tokenizer, prompt, max_tokens=8192, sampler=make_sampler(temp=1.0, top_p=0.95, top_k=20)))
An OpenAI-compatible server: mlx_lm.server --model Qwen4-35B-A3B-abliterated-MLX-34GB.
- Thinking is on by default: the model reasons in a
<think>block before the answer. Give it a largemax_tokens. - Sampling. Qwen recommends
temperature=1.0,top_p=0.95,top_k=20for thinking mode. - Tested on NVIDIA GPUs through MLX's CUDA backend. These builds have not been run on a Mac yet.
Model details
| Base model | Qwen/Qwen4-35B-A3B, abliterated |
| Architecture | qwen4_moe. 40 layers: 30 Gated DeltaNet (linear-attention) + 10 sparse-attention layers; 256 routed experts (top-8) and a shared expert; four-way hyper-connections; an n-gram embedding table on layer 1 |
| Parameters | 35B (about 3B active per token) + a 20.5B n-gram lookup table · Vocabulary 248,320 |
| Quantization | Mixed-precision MLX affine (4 to 8 bits, groups of 64), from the abliterated BF16 |
| Context | up to 1,048,576 tokens (inherited; fidelity evaluated at 2K) |
| Runtime | mlx-lm PR #2140 (commit 7b35ab5); text in, text out |
Bias, risks, and limitations
- Safety guardrails are substantially reduced. See the disclaimer. The model still often prefaces compliant
answers with a disclaimer. - Refusal numbers come from a rule-based classifier, not an LLM judge.
- Refusal and capability were measured on the BF16, not on these builds. The builds were checked for fidelity
(KLD) and for coherent answers. - Not measured: coding and agentic benchmarks, tool use, long context (fidelity is measured at 2K), and speed
on Apple silicon. - Not yet run on a Mac. All measurements were made with MLX's CUDA backend.
- Inherits the biases and limitations of
Qwen/Qwen4-35B-A3B.
License
The Apache License 2.0, inherited from the base modelQwen/Qwen4-35B-A3B.
One Gateway. Every Model.
Route Smarter · Ship Safer · Spend Less
