Run this model with HF Jobs

Run netprojects/Raon-1-mini-MLX-6bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/netprojects/Raon-1-mini-MLX-6bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/netprojects/Raon-1-mini-MLX-6bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/netprojects/Raon-1-mini-MLX-6bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Paris99's picture
DFlash2: batched draft check for affine layers (faster); card and NOTICE updated
f1c9846 verified
|
Raw History Blame Contribute Delete
7.05 kB
---
library_name: mlx
license: apache-2.0
pipeline_tag: text-generation
base_model: KRAFTON/Raon-1-mini
base_model_relation: quantized
language:
- ko
- en
- ja
- zh
- es
- fr
- th
tags:
- mlx
- raon
- moe
- reasoning
- korean
- dflash2
- apple-silicon
---
# Raon-1-mini MLX 6-bit
[Raon-1 mini](https://huggingface.co/KRAFTON/Raon-1-mini) is KRAFTON AI's open Mixture-of-Experts language model, **trained from scratch**: 28.8B parameters,
4.3B active per token (6 of 128 routed experts plus 1 shared), 262,144 tokens of context, and a hybrid of 18 Raon Delta
Attention layers and 7 gated MLA layers. It is strong in Korean conversation and agentic tasks, with built-in thinking and six
reasoning effort levels.
This repository is a **6-bit MLX build for Apple Silicon** (24.0 GB), converted by [NetProjects](https://netprojects.com) from
KRAFTON's MXFP8 release. It runs with KRAFTON's own MLX model code (`raon_mlx_model.py`, with one small speed change for
these builds, see below), so reasoning effort, the bundled DFlash2 draft model (`dflash2/`) and the optional two-stage
output head work as described in KRAFTON's MLX instructions.
## Builds
| Build | Size | Top-1 vs bf16 | Plain decode | DFlash2 decode | Note |
|---|---|---|---|---|---|
| [6-bit](https://huggingface.co/netprojects/Raon-1-mini-MLX-6bit) (recommended) | 24.0 GB | 97.8% | 118 tok/s | 184 tok/s | best balance of size, speed and quality |
| [8-bit](https://huggingface.co/netprojects/Raon-1-mini-MLX-8bit) | 30.1 GB | 97.4% | 105 tok/s | 81 tok/s | routed experts identical to KRAFTON MXFP8 |
| [3-bit mixed](https://huggingface.co/netprojects/Raon-1-mini-MLX-3bit-mixed) | 14.4 GB | 93.9% | 133 tok/s | 252 tok/s | smallest, fits 24 GB Macs |
Top-1: share of 311 teacher-forced positions (8 short English / Korean prompts, thinking on and off) where the build picks the same
next token as the bf16 weights. Speeds: one greedy coding prompt (400 tokens, effort `none`), plain generation vs DFlash2, on a MacBook Pro M5 Max
(128 GB) with each build's own CLI; indicative only, real speed depends on the prompt and on how many draft tokens are accepted.
**DFlash2 with these builds:** KRAFTON's code checks the drafted tokens with its own bit-exact kernels, which exist for their
NVFP4 and MXFP8 formats; for other layers it checked the draft rows one at a time, which made DFlash2 slower than plain
generation on these builds. The `raon_mlx_model.py` here has one change by NetProjects: the affine layers check all draft rows
in one batched product. Output can differ from plain generation by rare rounding ties, as with any speculative decoding.
Set `RAON_BATCHED_AFFINE_VERIFY=0` for KRAFTON's original row-by-row check. KRAFTON's own 4-bit NVFP4 build is at [KRAFTON/Raon-1-mini-mlx](https://huggingface.co/KRAFTON/Raon-1-mini-mlx).
## Highlights (from KRAFTON)
- **Reasoning:** six levels (`none`, `low`, `medium`, `high`, `xhigh`, `max`), selectable per request. 96.7 on AIME 2026,
87.1 on HMMT Feb 2026 and 86.0 on GPQA Diamond.
- **Multi-turn conversation and search:** 64.9 on MultiChallenge and 55.9 on BrowseComp Plus, ahead of the MoE models KRAFTON compares.
- **Multilingual:** trained on Korean, English, Japanese, Chinese, Spanish, French and Thai.
- **Agents:** tool calling, with setups for Hermes Agent, Pi and OpenCode.
All benchmark numbers are KRAFTON's, measured on their release; see the [original model card](https://huggingface.co/KRAFTON/Raon-1-mini) for the full tables.
## Quickstart
Python 3.11+ with KRAFTON's pinned versions:
```bash
uv venv --python 3.12 --seed && source .venv/bin/activate
python -m pip install "mlx==0.32.4" "mlx-lm==0.32.2" "transformers==5.20.1"
hf download netprojects/Raon-1-mini-MLX-6bit --local-dir Raon-1-mini-MLX-6bit
cd Raon-1-mini-MLX-6bit
```
Generate with DFlash2 (default) and the recommended sampling; add `--no-dflash` for plain generation:
```bash
python raon_mlx_model.py generate --prompt "Tell me about KRAFTON AI." \
--max-tokens 32768 --temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
```
Add `--reasoning-effort low` (or `none` … `max`) to set the effort, and use
`python raon_mlx_model.py serve --host 127.0.0.1 --port 8000` for an OpenAI-compatible server that accepts
`reasoning_effort`.
In Python with mlx-lm (the model code is loaded from this folder, so `trust_remote_code=True` is needed):
```python
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler, make_logits_processors
model, tokenizer = load("Raon-1-mini-MLX-6bit", trust_remote_code=True)
prompt = tokenizer.apply_chat_template([{"role": "user", "content": "Tell me about KRAFTON AI."}],
tokenize=False, add_generation_prompt=True, enable_thinking=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=32768,
sampler=make_sampler(temp=1.0, top_p=0.95, top_k=20),
logits_processors=make_logits_processors(presence_penalty=1.5)))
```
`python -m mlx_lm server --model Raon-1-mini-MLX-6bit --trust-remote-code` also works (it supports tool calling but ignores
`reasoning_effort`). KRAFTON recommends `presence_penalty` 0 for coding and math and 1.5 for everything else, and effort `none`
for chat and simple tool calls.
## How this build was made
- Source: [KRAFTON/Raon-1-mini](https://huggingface.co/KRAFTON/Raon-1-mini) at revision `aa14d2989727` (MXFP8: routed experts in fp8 with one power-of-two scale per 32 inputs,
everything else in bf16).
- Weights: 6-bit affine quantization (group size 64) of every linear layer, with the routed experts dequantized exactly from KRAFTON's MXFP8 weights first. The output head and the token embedding are 8-bit; the router, the MLA `kv_b_proj` and the small RDA gate
projections stay in bf16. No weights were trained or otherwise changed.
- Code and extras from [KRAFTON/Raon-1-mini-mlx](https://huggingface.co/KRAFTON/Raon-1-mini-mlx) at revision `78b7555b8902`, unchanged except one change in `raon_mlx_model.py` (batched draft check for affine layers, switch `RAON_BATCHED_AFFINE_VERIFY`): `raon_mlx_model.py`, `raon_serve.py`,
tokenizer and chat template, the DFlash2 draft model (`dflash2/`) and `head_stage1_a2g64gm.safetensors`.
- Converted with mlx 0.32.4 and mlx-lm 0.32.2. Checks: top-1 97.8% and top-32 KL
0.0056 against the bf16 weights, plus English, Korean and thinking-mode smoke tests through KRAFTON's CLI.
- Other builds: [8-bit](https://huggingface.co/netprojects/Raon-1-mini-MLX-8bit), [3-bit mixed](https://huggingface.co/netprojects/Raon-1-mini-MLX-3bit-mixed).
## License
Apache License 2.0, as released by KRAFTON (see `LICENSE` and `NOTICE`). The license covers the model weights, configuration
files and other components in this repository; it does not cover KRAFTON's hosted Raon service, which has its own terms.
Credits: Raon-1 mini, its MLX model code and the DFlash2 draft model by KRAFTON AI. MLX conversion by
[NetProjects](https://netprojects.com). Not affiliated with KRAFTON.