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 Balanced VL (MLX) (30.50 GB)
Vision-Language (text + image) release of Jakevin/Qwen4-35B-A3B-uncensored-SpeedD3-Balanced-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): 0 / 32 (0.0%)
Text-only sibling repo: Jakevin/Qwen4-35B-A3B-uncensored-SpeedD3-Balanced-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-Balanced-VL-MLX \
--image photo.jpg \
--prompt "<|vision_start|><|image_pad|><|vision_end|>Describe this image."
Quantization Recipe (Speed-D3 + 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) &lm_head: 6-bit - Hyper-Connections (
hc_*) & DeltaNetin_proj_a/b&embed_tokens: 8-bit - Shared experts: 4-bit
- 20B n-gram PLE table: 3-bit (8.96 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 (8.74 s), recognized test shapes and"QWEN4 VL OK"text accurately (decode53.78 tok/s, peak MLX memory31.431 GB). - Stock
mlx-lmText Backward Compatibility: Verified (load_s=8.57 s,47.27 tok/s, peak MLX memory29.852 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 | 30.503 GB (30,502,821,110 bytes, 8 shards) |
| Active Bytes / Token (text decode) | 2555.7 MB |
| PPL | 7.5229 |
| Mean KL vs Reference | 0.101258 |
| Same Top-1 | 86.39% |
Prefill (512 text tokens) |
656.11 tok/s |
Decode (128 text tokens) |
43.75 tok/s |
License
Apache-2.0, following Qwen/Qwen4-35B-A3B.