Instructions to use netprojects/Raon-1-mini-MLX-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Raon-1-mini-MLX-6bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("netprojects/Raon-1-mini-MLX-6bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/Raon-1-mini-MLX-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Raon-1-mini-MLX-6bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/Raon-1-mini-MLX-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use netprojects/Raon-1-mini-MLX-6bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "netprojects/Raon-1-mini-MLX-6bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "netprojects/Raon-1-mini-MLX-6bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "netprojects/Raon-1-mini-MLX-6bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use netprojects/Raon-1-mini-MLX-6bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Raon-1-mini-MLX-6bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default netprojects/Raon-1-mini-MLX-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Raon-1-mini-MLX-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Raon-1-mini-MLX-6bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "netprojects/Raon-1-mini-MLX-6bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Raon-1-mini MLX 6-bit
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 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 (recommended) | 24.0 GB | 97.8% | 118 tok/s | 184 tok/s | best balance of size, speed and quality |
| 8-bit | 30.1 GB | 97.4% | 105 tok/s | 81 tok/s | routed experts identical to KRAFTON MXFP8 |
| 3-bit 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.
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 for the full tables.
Quickstart
Python 3.11+ with KRAFTON's pinned versions:
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:
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):
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 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_projand the small RDA gate projections stay in bf16. No weights were trained or otherwise changed. - Code and extras from KRAFTON/Raon-1-mini-mlx at revision
78b7555b8902, unchanged except one change inraon_mlx_model.py(batched draft check for affine layers, switchRAON_BATCHED_AFFINE_VERIFY):raon_mlx_model.py,raon_serve.py, tokenizer and chat template, the DFlash2 draft model (dflash2/) andhead_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, 3-bit 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. Not affiliated with KRAFTON.
- Downloads last month
- 4
6-bit
Model tree for netprojects/Raon-1-mini-MLX-6bit
Base model
KRAFTON/Raon-1-mini