license: apache-2.0
library_name: mlx
base_model: Jakevin/Qwen4-35B-A3B-uncensored-MLX
tags:
- qwen4
- mlx
- moe
- mixed-precision
- speed-d3
- abliterated
- uncensored
- vision
- vl
language: - en
- zh
pipeline_tag: image-text-to-text
Qwen4-35B-A3B Uncensored — Speed-D3 Fast VL (MLX) (27.62 GB)
Vision-Language (text + image) release of Jakevin/Qwen4-35B-A3B-uncensored-SpeedD3-Fast-MLX: identical bandwidth-optimized mixed-precision Speed-D3 language weights (group_size=64, mode=affine) plus the full unmodified BF16 vision encoder (model.vision_tower.*, 333 tensors, +0.89 GB).
Safety refusals have been reduced via L20 alpha=1.5 abliteration (same BF16 overlay as Jakevin/Qwen4-35B-A3B-uncensored-MLX; vision encoder weights untouched). Research use only.
Harmful refusal spot-check on identical text weights (32 prompts, thinking off, greedy): 1 / 32 (3.1%)
Text-only sibling repo: Jakevin/Qwen4-35B-A3B-uncensored-SpeedD3-Fast-MLX
Compatible with both: image + text in ml-explore/mlx-lm#2141 AND stock text-only
mlx-lm(which skipsmodel.vision_tower.*). Notrust_remote_coderequired. No MTP weights included.
Usage (Image + Text with mlx-lm#2141)
pip install -U git+https://github.com/ml-explore/mlx-lm.git@refs/pull/2141/head
mlx_lm.generate \
--model Jakevin/Qwen4-35B-A3B-uncensored-SpeedD3-Fast-VL-MLX \
--image photo.jpg \
--prompt "<|vision_start|><|image_pad|><|vision_end|>Describe this image."
Quantization Recipe (Speed-D3 Fast + BF16 Vision)
- Vision encoder (
model.vision_tower.*, 333 tensors): BF16 (unquantized) - Routed experts: 4-bit (gs64 affine)
- Gated DeltaNet (
in_proj_qkv,in_proj_z,out_proj) & QSA (q/k/v/o_proj): 4-bit lm_head: 6-bit- Hyper-Connections (
hc_*) & DeltaNetin_proj_a/b&embed_tokens: 8-bit - Shared experts: 4-bit
- 20B n-gram PLE table: 2-bit (6.40 GB vs 11.52 GB at 4-bit)
- Routers, norms, conv1d, QSA indexer: BF16/F32
Measured Results (Apple M4 Pro)
- VL Image Verification (
mlx-lm#2141): Strict load (7.97 s), recognized test shapes and"QWEN4 VL OK"text accurately (232prompt tokens @444.86 tok/s, decode58.35 tok/s, peak MLX memory28.548 GB). - Text Benchmark (identical language weights on WikiText-2 test chunks 0–19,
c=512, 5,100 scored tokens vsbase-M1-wt2test-c20.binppl_ref=7.2751, measured in stockmlx-lm):
| Metric | Value |
|---|---|
| Safetensors Payload | 27.620 GB (27,619,679,254 bytes, 7 shards) |
| Active Bytes / Token (text decode) | 2232.6 MB |
| PPL | 7.7882 |
| Mean KL vs Reference | 0.176094 |
| Same Top-1 | 83.35% |
Prefill (512 text tokens) |
657.31 tok/s |
Decode (128 text tokens) |
47.02 tok/s |
License
Apache-2.0, following Qwen/Qwen4-35B-A3B.