--- 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 8-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 **8-bit MLX build for Apple Silicon** (30.1 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`, included unchanged), so reasoning effort and the optional two-stage output head work as described in KRAFTON's MLX instructions. For best speed with this build, run with `--no-dflash` (plain mlx-lm generation); see the note under the table. ## 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. **About DFlash2 with this build:** the DFlash2 draft model (`dflash2/`) is included and works, but on this build it is no faster than plain generation, so `--no-dflash` is recommended. The 6-bit and 3-bit mixed builds carry a faster draft check (one change in `raon_mlx_model.py`) and run DFlash2 well. 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-8bit --local-dir Raon-1-mini-MLX-8bit cd Raon-1-mini-MLX-8bit ``` Generate with the recommended sampling (plain generation, the fastest path for this build): ```bash python raon_mlx_model.py generate --no-dflash --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 --no-dflash --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-8bit", 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-8bit --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: the routed experts (about 89% of the weights) keep KRAFTON's own MXFP8 weights bit for bit (MLX's native mxfp8 format, the same fp8 codes and scales); the other linear layers use 8-bit affine quantization (group size 64). 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: `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.4% and top-32 KL 0.0023 against the bf16 weights, plus English, Korean and thinking-mode smoke tests through KRAFTON's CLI. - Other builds: [6-bit](https://huggingface.co/netprojects/Raon-1-mini-MLX-6bit), [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.