Downloads · 30 days
19
4% of all-time downloads
leonsarmiento/Huihui-Nex-N2-mini-abliterated-5bit-XL-mlx
Huihui-Nex-N2-mini-abliterated-5bit-XL-mlx is a image-text-to-text model from leonsarmiento. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for mlx.
This model was converted to MLX format from huihui-ai/Huihui-Nex-N2-mini-abliterated using BaseQuantXL 5/8-bit mixed quantization optimized for Apple Silicon. The vision encoder is preserved and quantized at 5-bit, ma…
Downloads · 30 days
19
4% of all-time downloads
All-time downloads
507
Public
Parameters
35.1B
27.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors27.5 GB · 100%
How the weights are stored.
U3234.4B · 98%
From the Hugging Face model README
This model was converted to MLX format from huihui-ai/Huihui-Nex-N2-mini-abliterated using BaseQuant_XL 5/8-bit mixed quantization optimized for Apple Silicon. The vision encoder is preserved and quantized at 5-bit, making this a full multimodal model.
BaseQuant_XL keeps the most routing-critical layers in full bf16 precision — the MoE router gate, shared expert gate, shared expert, and lm_head — while applying aggressive quantization to the bulk parameters. This preserves routing accuracy and output quality where it matters most.
This is the abliterated (uncensored) version of Nex-N2-mini, a 35B-parameter MoE (Mixture of Experts) model fine-tuned from Qwen3.5-35B-A3B-Base by Nex-AGI, featuring 256 experts (8 active per token + 1 shared expert), hybrid full + linear (Gated DeltaNet) attention, an "Agentic Thinking" framework (Adaptive Thinking + Coherent Thinking), and a vision encoder for multimodal input. Despite 35B total parameters, only ~3B are activated per token for efficient inference.
BaseQuant_XL is a fully data-agnostic, static quantization. No calibration dataset, no sensitivity analysis, no importance matrix. Precision is allocated purely by architectural role — routing-critical layers get higher precision, bulk expert parameters get lower precision. The result is a transparent, faithful capture of the source model.
Data-dependent calibration quantizations (iMatrix, AWQ, GPTQ, oQ, oQ4e, etc.) use a calibration set to guide bit allocation. This can produce a skewed representation of the model: domains well-represented in the calibration data (English, popular topics, public or leaked benchmarks) are preserved better, while underrepresented domains (non-English languages, niche use cases, your own data) are preserved worse. XL avoids this trade-off entirely — it generalizes honestly because it is never fit to any particular data distribution.
pip install -U mlx-vlm
python -m mlx_vlm.generate --model leonsarmiento/Huihui-Nex-N2-mini-abliterated-5bit-XL-mlx --max-tokens 256 --temperature 0.7 --top-p 0.95 --prompt "Hello"
| Bit Depth | Layers | Rationale |
|---|---|---|
| bf16 (unquantized) | mlp.gate (router), shared_expert_gate, lm_head, shared_expert | Routing decisions and shared computation path — errors here are qualitatively different from precision loss |
| 8-bit | embed_tokens, self_attn (full attention), linear_attn (DeltaNet) | Every-token layers with moderate sensitivity — 8-bit is near-lossless |
| 5-bit | vision_tower, switch_mlp (routed experts) | Bulk of parameters, only 8 of 256 experts active per token — natural redundancy tolerates lower precision |
| Layer | Bits | Group Size |
|---|---|---|
mlp.gate (router) | bf16 | — |
shared_expert_gate | bf16 | — |
lm_head | bf16 | — |
shared_expert | bf16 | — |
embed_tokens | 8 | 64 |
self_attn (full attention) | 8 | 64 |
linear_attn (DeltaNet) | 8 | 64 |
vision_tower | 5 | 64 |
switch_mlp (routed experts) | 5 | 64 |
| Default fallback | 8 | 64 |
quant_predicate via mlx_vlm| Parameter | Value |
|---|---|
temperature | 0.7 |
top_p | 0.95 |
top_k | 40 |
min_p | 0.01 |
repeat_penalty | 1.0 |
Note: This is a Qwen3.5-based model —
preserve_thinkingis not applicable.