license: apache-2.0
license_link: LICENSE
base_model:
- KRAFTON/Raon-1-nano
base_model_relation: finetune
library_name: mlx
pipeline_tag: text-generation
language: - ko
- en
tags: - mlx
- quantized
- abliterated
- uncensored
Raon-1-nano Uncensored MLX 8-bit
KRAFTON/Raon-1-nano with a refusal direction removed from the weights, converted to 8-bit MLX, without the MTP block. The model code is KRAFTON's raon_mlx_model.py from KRAFTON/Raon-1-nano-mlx, included unchanged.
The edit is one direction, taken at layer 16 with channel 746 zeroed, projected out of the attention output projections, the MLP down projections and the per-layer input projections of layers 6 to 22 (51 tensors); the embedding, the output head and the MTP block are unchanged. Quantization: affine 8-bit, group size 64, for every linear layer and both embedding tables (the token embedding is also the LM head); the MLA key and value up-projections stay BF16.
HarmBench (200 prompts, thinking off): 1.0% refused; the original Raon-1-nano MLX 8-bit (Xylolabs/Raon-1-nano-MLX-8bit) refuses 98.5%.
How to run
pip install mlx==0.32.4 mlx-lm==0.32.2 transformers==5.20.2
mlx_lm.generate --model Xylolabs/Raon-1-nano-Uncensored-MLX-8bit --trust-remote-code --prompt 'Explain how a heat pump works.'
mlx_lm.chat --model Xylolabs/Raon-1-nano-Uncensored-MLX-8bit --trust-remote-code
The model thinks by default; add --chat-template-config '{"enable_thinking": false}' to mlx_lm.generate to answer directly.
Accuracy
KL and top-1 against the original BF16 weights; refused prompts of HarmBench (200) and Alpaca (100) with thinking off.
| Model | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 | 7-question answer check | HarmBench refused | Alpaca refused |
|---|---|---|---|---|---|---|---|---|---|---|
| Uncensored MLX 8-bit | 3.36 GB | 0.006216 | 94.83% | 0.016426 | 93.84% | 0.007997 | 95.27% | 6/7 (BF16: 6/7) | 1.0% | 0.0% |
| Original MLX 8-bit | 3.36 GB | 0.001343 | 97.14% | 0.001630 | 97.75% | 0.001125 | 97.43% | 6/7 (BF16: 6/7) | 98.5% | 0.0% |
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| Mac Studio M5 Max, 32-core GPU | 36 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 48 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 64 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
| Mac Studio M5 Ultra | 96 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
| Mac Studio M5 Max, 40-core GPU | 128 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
| Mac Studio M5 Ultra | 256 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
| Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | Xylolabs/Raon-1-nano-Uncensored-MLX-8bit (3.4 GB) |
256K |
License and notices
Apache License 2.0 (LICENSE); our changes and KRAFTON's notices are in NOTICE, the license texts in LICENSES/.
Updates
- 2026-11-26: First release.