library_name: mlx
license: apache-2.0
base_model: OpenUncensored/Qwen4-35B-A3B-Uncensored
base_model_relation: quantized
pipeline_tag: image-text-to-text
tags:
- mlx
- oq
- oqe
- quantized
- qwen4_moe
- mtp
- uncensored
- abliterated
Qwen4-35B-A3B-Uncensored-MLX-oQ6e-MTP
[!WARNING]
This model requires Trust Remote Code (trust_remote_code=True). Its tokenizer and chat processor run Python files shipped in this repository (tokenization_qwen4.py,processing_qwen4.py,encoding_qwen4.py). In oMLX, enable Trust Remote Code in the model's Advanced settings before loading.
| Loading mode | Weights in memory |
|---|---|
| N-gram table in memory (default) | 48.72 GB / 45.37 GiB |
| SSD N-gram Offload on | 30.80 GB / 28.68 GiB |
The 17.92 GB n-gram table can stay on SSD with oMLX's SSD N-gram Offload (qwen4_ple_ssd_offload) setting, which mmaps only the rows each token needs. KV cache and runtime buffers come on top of these numbers.
This checkpoint is an oQ6e (enhanced=True, imatrix-weighted) mixed-precision MLX quantization of OpenUncensored/Qwen4-35B-A3B-Uncensored, converted with oMLX v0.8.5 oQ streaming quantization with preserve_mtp=True.
It preserves the language backbone (35B total / 3B active MoE), the n-gram PLE embedding table, the vision encoder, and the multi-token prediction (MTP) head. Unquantized tensors, scales, and biases are stored in BF16.
- Language backbone effective bpw:
6.665bits/weight - Complete checkpoint effective bpw:
6.859bits/weight
Quantization and Bit Distribution
oQ6e allocates bits per layer using streamed layer-sensitivity measurement on the original BF16 weights, then quantizes each group with an importance matrix (1024 samples x 512 tokens, oqe_code_multilingual) via weighted clipping search and weighted least-squares (LSQ) refit. The n-gram table is quantized under its own offload policy (minimum 4-bit, outside the resident bit budget).
| Storage format | Logical weights | Share of total | Tensor storage | Effective bits/weight |
|---|---|---|---|---|
| Affine 6-bit, group 64 | 33.018B | 58.106% | 24.984 GiB | 6.50 |
| N-gram Affine 6-bit, group 32 | 20.480B | 36.042% | 16.690 GiB | 7.00 |
| Affine 8-bit, group 64 | 2.726B | 4.798% | 2.698 GiB | 8.50 |
| BF16 | 0.470B | 0.827% | 0.875 GiB | 16.00 |
| Affine 8-bit, group 128 | 0.129B | 0.227% | 0.124 GiB | 8.25 |
| I64 | 0.000B | 0.000% | 0.000 GiB | 64.00 |
| Total | 56.823B | 100% | 45.371 GiB | 6.859 |
Storage Breakdown
| Component | Logical weights | Storage |
|---|---|---|
| Language backbone | 35.038B | 29.19 GB / 27.19 GiB |
| N-gram embedding | 20.480B | 17.92 GB / 16.69 GiB |
| Vision encoder | 0.447B | 0.89 GB / 0.83 GiB |
| MTP head | 0.859B | 0.71 GB / 0.66 GiB |
| Total | 56.823B | 48.72 GB / 45.37 GiB |
Source & License
Quantized directly from OpenUncensored/Qwen4-35B-A3B-Uncensored (based on Qwen/Qwen4-35B-A3B). Released under the Apache 2.0 license following the upstream model.