base_model: Qwen/Qwen4-35B-A3B
license: apache-2.0
pipeline_tag: text-generation
library_name: mlx
tags:
- mlx
- abliterated
- uncensored
- mtp
- speculative-decoding
- vision
- 4bit
Qwen4-35B-A3B — Abliterated, MLX 4-bit, MTP embedded
Refusal-ablated version of Qwen/Qwen4-35B-A3B, quantized to 4-bit MLX (affine, group 64), with the vision tower preserved and the MTP speculative-decoding head re-embedded. Packaged so it loads cleanly in oMLX and Splash with working tool calls and the native chat template.
Disclaimer. This is a research modification of Qwen4-35B-A3B (refusal abliteration), provided as-is, without warranty of any kind, express or implied. Abliteration reduces refusal and hedging behavior — including in safety-relevant domains — so responses may be confident where the base model would have cautioned, and can be confidently wrong. It has not been safety-aligned for high-stakes use; outputs are not medical, legal, financial, or security advice. The author accepts no liability for how this model or its derivatives are used, misused, or deployed. Apache-2.0 terms apply.
What this is (and isn't)
- The base weights were modified by abliteration: the residual-write rows of 36 tensors (
o_proj/out_proj/ MoE expertdown_proj, layers 7–28) were orthogonalized against the refusal direction at strength 0.7. No fine-tuning, no new data — pure linear algebra on weights. - This removes the hard-refusal circuit, not knowledge or capability. Security/medical/legal grey-area prompts get real answers instead of disclaimers. The model can still say "I don't know."
- Quantization matches the official mlx-community 4-bit recipe (uniform 4-bit g64 affine — that recipe has no exclusions), plus the router gates (
mlp.gate,shared_expert_gate) kept at 8-bit.
What makes this build different from other abliterated quants
- MTP head embedded and verified. MLX conversions (including the ones this build initially made!) silently drop the
mtp.*tensors; oMLX even ships a workaround for the resulting failure mode (its issue #1426). Without them, Lightning-MTP speculative decoding is dead on arrival. This checkpoint carries the full MTP module (quantized, router gate excluded) and verifies live: ~63% draft acceptance. - Vision preserved. All 333 vision-tower tensors survive conversion (many
mlx_lm.convert-based uploads drop the tower entirely — you then get "no vision tower" in oMLX/Splash and vision silently vanishes). - Benchmarked, not vibes. 40 blind head-to-head coding runs against a strong frontier-class instruct model (see below).
- Correct special tokens. The MLX converters strip the added-token table; this build restores the upstream tokenizer files so native
248069etc. encode exactly as intended, and the upstream chat template is unchanged.
Validation
Abliteration effectiveness
- 0 hard refusals across a grey-area probe set (security tooling, password recovery, pharmacology, "how do I crack my own Windows box" class prompts).
- Soft hedging is reduced, not deleted (~30% of the activation gap retained): the model still qualifies, caveats, and declines nonsense.
Capability regression — 40-run controlled battery
Two sequential blind batteries (10 Python tasks, then 8 TypeScript/Rust/Next.js/AWS tasks: strict tsc type-tests with @ts-expect-error gates, node --test, cargo test, byte-exact React SSR HTML, machine-checked SAM/IAM rules), graded cold against hidden test suites, both models given identical prompts and toolchains.
Result across 20 paired runs per battery: the comparison model won 2 of 40 (one on an eager-vs-lazy evaluation edge case, one on literal quote-mark formatting in a Next.js quiz), with zero differences in executed code correctness. Abliteration cost measurably nothing in code output; the two documented behavioral tics (one long first-pass deliberation, one completion report that preceded the work — self-corrected in-session) never affected graded artifacts.
Speed (M5 Ultra-class 80-core GPU, 512 GB RAM; both engines with int8 KV):
| Setup | Decode | Prefill (37k, cold) |
|---|---|---|
| oMLX (262k ctx, MTP active) | 203–257 tok/s warm | ~8.5k tok/s |
| Splash 1.7.6 standalone (128k, DFlash2 draft) | 295–386 tok/s | 7.3–8.5k tok/s |
| Reference: Qwen3.8-Flash-Next Q8 (same box) | 125–151 tok/s | ~9.5k tok/s |
Requirements
- MLX-capable Apple Silicon, ≥ 32 GB unified memory for text use, ≥ 48 GB recommended for 100k+ context (4-bit KV helps a lot).
- Python:
pip install mlx-vlm(≥ 0.8.3; theqwen4_moemodel package is required).
Usage
oMLX: drop the folder in ~/.omlx/models/, enable MTP in the model's settings if you want Lightning-MTP (it auto-detects the embedded head).
Splash:
splash serve --model-dir ./Qwen4-35B-A3B-Abliterated-MLX-4bit \
--draft-model RadixArk/Qwen4-35B-A3B-Dflash2 \
--kv-format int8 --max-context 131072
(omit --language-only — vision works.)
Raw mlx-vlm: standard mlx_vlm.load / generate; vision messages follow the usual Qwen-VL content-part format. Tool calling verified (strict OpenAI-style tool_calls finish with valid arguments).
Files
- 7 quantized shards +
model-00008-of-00008.safetensors(themtp.*head, spliced and registered in the index;mtp.layers.0.mlp.gatedeclared unquantized inquantization_config) - Upstream tokenizer files (
tokenizer.json,tokenizer_config.json,chat_template.jinja) +tokenizer-compat/originals config.json—model_type: qwen4_moe, per-module quantization entries preserved (8-bit router gates), MTP declared
Limitations
- Abliteration reduces refusals including from safety-relevant domains; benchmark evidence covers coding, not medicine or law. Judge outputs accordingly.
- 4-bit quantization costs a small perplexity delta versus BF16 (same class as the official 4-bit: ~+0.4%). If you need exact BF16 behavior, this isn't it.
- The MTP head is 4-bit-quantized; acceptance (~63% observed on prose/code) will vary with domain.
License & lineage
Apache-2.0, inherited from Qwen/Qwen4-35B-A3B. Thanks to the Qwen team for the base model, mlx-community for the reference quantization recipe, and the oMLX/Splash ecosystems for making the MTP splice testable. Abliteration method follows the public orthogonalization line (Arditi et al., 2024), applied at the residual writes as described above.