Instructions to use KRAFTON/Raon-1-mini-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use KRAFTON/Raon-1-mini-mlx 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("KRAFTON/Raon-1-mini-mlx") 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 KRAFTON/Raon-1-mini-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "KRAFTON/Raon-1-mini-mlx"
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": "KRAFTON/Raon-1-mini-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use KRAFTON/Raon-1-mini-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "KRAFTON/Raon-1-mini-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "KRAFTON/Raon-1-mini-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KRAFTON/Raon-1-mini-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use KRAFTON/Raon-1-mini-mlx 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 "KRAFTON/Raon-1-mini-mlx"
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 KRAFTON/Raon-1-mini-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use KRAFTON/Raon-1-mini-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "KRAFTON/Raon-1-mini-mlx"
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 "KRAFTON/Raon-1-mini-mlx" \ --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"
README: remove preview wording, reasoning effort section
Browse files
README.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
library_name: mlx
|
| 3 |
license: apache-2.0
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
-
base_model: KRAFTON/Raon-1-mini
|
| 6 |
base_model_relation: quantized
|
| 7 |
tags:
|
| 8 |
- raon
|
| 9 |
- mlx
|
| 10 |
- nvfp4
|
| 11 |
-
extra_gated_heading: "Request access to Raon-1 mini
|
| 12 |
-
extra_gated_prompt: "Raon-1 mini
|
| 13 |
extra_gated_fields:
|
| 14 |
Full name: text
|
| 15 |
Affiliation: text
|
|
@@ -31,13 +31,13 @@ extra_gated_button_content: "Request access"
|
|
| 31 |
# Raon-1 mini (MLX)
|
| 32 |
|
| 33 |
> [!NOTE]
|
| 34 |
-
> This repository contains the MLX weights of [Raon-1 mini
|
| 35 |
>
|
| 36 |
> The weights are quantized to NVFP4.
|
| 37 |
|
| 38 |
<div align="center">
|
| 39 |
-
<img class="block dark:hidden" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini
|
| 40 |
-
<img class="hidden dark:block" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini
|
| 41 |
</div>
|
| 42 |
|
| 43 |
<p align="center">
|
|
@@ -55,9 +55,6 @@ Raon-1 mini is a 30B-A4B Mixture-of-Experts (MoE) language model, designed and *
|
|
| 55 |
> Want to try Raon-1 mini without setting anything up?<br>
|
| 56 |
> Chat with it for free, for a limited time, in the [Raon-1 mini playground](https://raon-console.krafton.ai/playground/guest).
|
| 57 |
|
| 58 |
-
> [!NOTE]
|
| 59 |
-
> This is a preview release, not a final model. Specs and results may change before the final version.
|
| 60 |
-
|
| 61 |
## Highlights
|
| 62 |
|
| 63 |
- **Reasoning**: Built-in thinking, with leading results on the math and science benchmarks shown below.
|
|
@@ -67,8 +64,8 @@ Raon-1 mini is a 30B-A4B Mixture-of-Experts (MoE) language model, designed and *
|
|
| 67 |
- **Speculative decoding support**: A DFlash2 draft model is provided for accelerated speculative decoding.
|
| 68 |
- **Quantization options**: Available in MXFP8 and NVFP4 formats, with NVFP4 enabling inference on a single NVIDIA RTX 5090 gpu (32 GB VRAM).
|
| 69 |
|
| 70 |
-
<img class="block dark:hidden" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini
|
| 71 |
-
<img class="hidden dark:block" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini
|
| 72 |
|
| 73 |
## Model Overview
|
| 74 |
|
|
@@ -106,7 +103,7 @@ Raon-1 mini uses a hybrid Mixture-of-Experts (MoE) architecture, consisting of 1
|
|
| 106 |
|
| 107 |
## Benchmark Results
|
| 108 |
|
| 109 |
-
* Red indicates the best performance of Raon-1 mini
|
| 110 |
|
| 111 |
<div style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;max-width:1180px;margin:0 auto;padding:0;">
|
| 112 |
<div>
|
|
@@ -114,7 +111,7 @@ Raon-1 mini uses a hybrid Mixture-of-Experts (MoE) architecture, consisting of 1
|
|
| 114 |
<colgroup><col style="width:12%"><col style="width:22%"><col style="width:13.2%"><col style="width:13.2%"><col style="width:13.2%"><col style="width:13.2%"><col style="width:13.2%"></colgroup>
|
| 115 |
<thead>
|
| 116 |
<tr><th rowspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;text-align:left;padding:12px 14px;font-weight:700;vertical-align:middle;">Category</th><th rowspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;text-align:left;padding:12px 14px;font-weight:700;vertical-align:middle;">Benchmark</th><th colspan="3" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;padding:10px 12px;font-weight:700;text-align:center;">MoE</th><th colspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;padding:10px 12px;font-weight:700;text-align:center;border-left:2px solid #9a9a9a;">Dense</th></tr>
|
| 117 |
-
<tr><th style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:10px 6px;font-weight:600;font-size:13px;color:#ffffff;text-align:center;line-height:1.35;background:#e0362f;">Raon-1 mini
|
| 118 |
</thead>
|
| 119 |
<tbody>
|
| 120 |
<tr><td rowspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;font-weight:700;text-align:left;vertical-align:middle;white-space:normal;border-bottom:1px solid #e6e6e6;background:#ffffff;color:#1a1a1a;">Knowledge</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 10px;border-bottom:1px solid #e6e6e6;color:#1a1a1a;font-weight:500;text-align:left;white-space:normal;background:#ffffff;">MMLU Pro</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#fef0ef;">76.5</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#ffffff;">85.9</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#ffffff;">82.9</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;border-left:2px solid #9a9a9a;background:#ffffff;">85.7</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#ffffff;">84.0</td></tr>
|
|
@@ -141,7 +138,7 @@ Raon-1 mini uses a hybrid Mixture-of-Experts (MoE) architecture, consisting of 1
|
|
| 141 |
</div>
|
| 142 |
<p style="margin:0;font-size:10px;opacity:0.7">
|
| 143 |
Judge and user simulator: gpt-5.6-luna for all evaluations.<br/>
|
| 144 |
-
Red = Raon-1 mini
|
| 145 |
¹ SWE-Verified: evaluated with the mini-SWE-agent harness.<br/>
|
| 146 |
² GDPVal (<a href="https://huggingface.co/datasets/openai/gdpval">dataset</a>): metric is a judge score, not Elo.<br/>
|
| 147 |
³ AutomationBench: public split, not the official evaluation set.<br/>
|
|
@@ -183,7 +180,7 @@ sampling = dict(temperature=1.0, top_p=0.95, top_k=20, presence_penalty=1.5, rep
|
|
| 183 |
|
| 184 |
## Speculative Decoding
|
| 185 |
|
| 186 |
-
We release a [DFlash2](https://github.com/z-lab/dflash) draft model alongside Raon-1 mini
|
| 187 |
|
| 188 |
Throughput is measured in output tok/s, with speedup over autoregressive decoding in parentheses. Acceptance length (AL) is the mean number of tokens per verification step, averaged across requests at concurrency 1.
|
| 189 |
|
|
@@ -213,7 +210,7 @@ launch an OpenAI-compatible server, using thinking mode and the
|
|
| 213 |
recommended sampling settings above.
|
| 214 |
|
| 215 |
The model repositories are gated. Request access once on this page
|
| 216 |
-
(approval is automatic; it covers every Raon-1 mini
|
| 217 |
repository), then log in so the examples below can download them:
|
| 218 |
|
| 219 |
```bash
|
|
@@ -243,7 +240,7 @@ Then run the model:
|
|
| 243 |
```python
|
| 244 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 245 |
|
| 246 |
-
model_id = "KRAFTON/Raon-1-mini
|
| 247 |
|
| 248 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 249 |
model_id,
|
|
@@ -306,7 +303,7 @@ Tested on NVIDIA B300.
|
|
| 306 |
Install from our fork and start the server:
|
| 307 |
|
| 308 |
```bash
|
| 309 |
-
VLLM_REF="raon-
|
| 310 |
|
| 311 |
uv venv --python 3.12
|
| 312 |
source .venv/bin/activate
|
|
@@ -314,10 +311,10 @@ source .venv/bin/activate
|
|
| 314 |
VLLM_USE_PRECOMPILED=1 uv pip install \
|
| 315 |
"vllm @ git+https://github.com/krafton-ai/vllm.git@${VLLM_REF}"
|
| 316 |
|
| 317 |
-
vllm serve KRAFTON/Raon-1-mini
|
| 318 |
--host 127.0.0.1 \
|
| 319 |
--port 8000 \
|
| 320 |
-
--served-model-name Raon-1-mini
|
| 321 |
--max-model-len 262144 \
|
| 322 |
--max-num-batched-tokens 16384 \
|
| 323 |
--max-num-seqs 128 \
|
|
@@ -325,7 +322,7 @@ vllm serve KRAFTON/Raon-1-mini-preview \
|
|
| 325 |
--kv-cache-dtype fp8_e4m3 \
|
| 326 |
--enable-prefix-caching \
|
| 327 |
--spec-method dflash \
|
| 328 |
-
--spec-model KRAFTON/Raon-1-mini-
|
| 329 |
--spec-tokens 7 \
|
| 330 |
--reasoning-parser raon_1 \
|
| 331 |
--enable-auto-tool-choice \
|
|
@@ -339,7 +336,7 @@ vllm serve KRAFTON/Raon-1-mini-preview \
|
|
| 339 |
The first start compiles the model's kernels and takes about 10 minutes;
|
| 340 |
later starts reuse them.
|
| 341 |
To serve the NVFP4 checkpoint, replace the model with
|
| 342 |
-
`KRAFTON/Raon-1-mini-
|
| 343 |
It runs on a single GPU (tensor parallel size 1).
|
| 344 |
|
| 345 |
Send a request from another terminal:
|
|
@@ -348,7 +345,7 @@ Send a request from another terminal:
|
|
| 348 |
curl http://localhost:8000/v1/chat/completions \
|
| 349 |
-H "Content-Type: application/json" \
|
| 350 |
-d '{
|
| 351 |
-
"model": "Raon-1-mini
|
| 352 |
"messages": [
|
| 353 |
{
|
| 354 |
"role": "user",
|
|
@@ -383,13 +380,13 @@ Use llama.cpp to run the GGUF checkpoint locally in a terminal
|
|
| 383 |
or through an OpenAI-compatible API, with optional DFlash2
|
| 384 |
speculative decoding.
|
| 385 |
|
| 386 |
-
Checkpoint: [KRAFTON/Raon-1-mini-
|
| 387 |
|
| 388 |
Build from our branch; upstream support is pending.
|
| 389 |
On Windows, see the [build guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md).
|
| 390 |
|
| 391 |
```bash
|
| 392 |
-
git clone -b raon-1-mini-
|
| 393 |
https://github.com/krafton-ai/llama.cpp
|
| 394 |
cd llama.cpp
|
| 395 |
|
|
@@ -402,7 +399,7 @@ Start a terminal chat. The model downloads automatically.
|
|
| 402 |
|
| 403 |
```bash
|
| 404 |
./build/bin/llama-cli \
|
| 405 |
-
-hf KRAFTON/Raon-1-mini-
|
| 406 |
--ctx-size 262144 \
|
| 407 |
--n-predict 32768 \
|
| 408 |
--temp 1.0 \
|
|
@@ -423,10 +420,10 @@ Or start an OpenAI-compatible server:
|
|
| 423 |
|
| 424 |
```bash
|
| 425 |
./build/bin/llama-server \
|
| 426 |
-
-hf KRAFTON/Raon-1-mini-
|
| 427 |
--host 127.0.0.1 \
|
| 428 |
--port 8000 \
|
| 429 |
-
--alias Raon-1-mini
|
| 430 |
--ctx-size 262144 \
|
| 431 |
--parallel 1 \
|
| 432 |
--n-predict 32768 \
|
|
@@ -462,7 +459,7 @@ Send a request from another terminal:
|
|
| 462 |
curl http://localhost:8000/v1/chat/completions \
|
| 463 |
-H "Content-Type: application/json" \
|
| 464 |
-d '{
|
| 465 |
-
"model": "Raon-1-mini
|
| 466 |
"messages": [
|
| 467 |
{
|
| 468 |
"role": "user",
|
|
@@ -496,7 +493,7 @@ For coding and math, set `presence_penalty` to `0`.
|
|
| 496 |
Use MLX to run Raon-1 mini locally on Apple silicon,
|
| 497 |
either directly in Python or through an OpenAI-compatible API.
|
| 498 |
|
| 499 |
-
Checkpoint: [KRAFTON/Raon-1-mini-
|
| 500 |
|
| 501 |
Install the dependencies with Python 3.11+ (the macOS system `python3` is older, so create the environment with uv):
|
| 502 |
|
|
@@ -520,7 +517,7 @@ from mlx_lm.sample_utils import (
|
|
| 520 |
)
|
| 521 |
|
| 522 |
model, tokenizer = load(
|
| 523 |
-
"KRAFTON/Raon-1-mini-
|
| 524 |
trust_remote_code=True,
|
| 525 |
)
|
| 526 |
|
|
@@ -562,7 +559,7 @@ Or start an OpenAI-compatible server:
|
|
| 562 |
|
| 563 |
```bash
|
| 564 |
python -m mlx_lm server \
|
| 565 |
-
--model KRAFTON/Raon-1-mini-
|
| 566 |
--trust-remote-code \
|
| 567 |
--host 127.0.0.1 \
|
| 568 |
--port 8000 \
|
|
@@ -612,8 +609,8 @@ For coding and math, set `presence_penalty` to `0`.
|
|
| 612 |
model (`dflash2/`). Download the repository and run the commands from its folder:
|
| 613 |
|
| 614 |
```bash
|
| 615 |
-
hf download KRAFTON/Raon-1-mini-
|
| 616 |
-
cd Raon-1-mini-
|
| 617 |
```
|
| 618 |
|
| 619 |
DFlash2 on (default):
|
|
@@ -683,49 +680,31 @@ Add `--no-dflash` to use the same head option without DFlash2. The included
|
|
| 683 |
`head_stage1_a2g64gm.safetensors` adds about 208 MB; a missing or invalid file causes a warning and fallback
|
| 684 |
to the full head. This repository does not include `head_stage1_a2g64gm.safetensors` yet, so `RAON_HEAD_MODE=on` prints the warning and uses the full head. Direct native `mlx_lm.generate` calls use the full head.
|
| 685 |
|
| 686 |
-
**Reasoning effort.** A checkpoint that contains the steering vectors (`model.layers.<L>.moe.reasoning_effort_steering`, F32)
|
| 687 |
-
and a `reasoning_effort_steering` entry in `config.json` can change how long the model reasons. The efforts are `none`
|
| 688 |
-
(thinking off), `low`, `mid`, `high`, `xhigh` and `max`, with strengths 0.3, 0.1, 0.05, 0.02 and 0 for `low` to `max`.
|
| 689 |
-
`max` adds nothing and gives the same output as a checkpoint without vectors. Without an effort the model uses the
|
| 690 |
-
config `default`, which is `high`. A checkpoint without
|
| 691 |
-
the vectors ignores the setting, except that `none` still turns thinking off.
|
| 692 |
-
|
| 693 |
-
```bash
|
| 694 |
-
python raon_mlx_model.py generate --model . --prompt "..." --reasoning-effort low
|
| 695 |
-
```
|
| 696 |
-
|
| 697 |
-
The server takes `reasoning_effort` in each chat request, or `chat_template_kwargs.reasoning_effort`, or
|
| 698 |
-
`--reasoning-effort` as the default for requests without one. From Python, make the cache and set the effort before the
|
| 699 |
-
first token:
|
| 700 |
|
| 701 |
-
|
| 702 |
-
from mlx_lm import load
|
| 703 |
-
from mlx_lm.models.cache import make_prompt_cache
|
| 704 |
-
|
| 705 |
-
model, tokenizer = load(path, trust_remote_code=True)
|
| 706 |
-
cache = make_prompt_cache(model)
|
| 707 |
-
model.set_reasoning_effort(cache, "low") # pass cache= as prompt_cache to generate / stream_generate
|
| 708 |
-
```
|
| 709 |
|
| 710 |
-
|
| 711 |
|
|
|
|
| 712 |
|
| 713 |
-
|
|
|
|
|
|
|
| 714 |
|
| 715 |
## Agentic Use
|
| 716 |
|
| 717 |
-
Raon-1 mini
|
| 718 |
> [!NOTE]
|
| 719 |
-
> With MLX, use `KRAFTON/Raon-1-mini-
|
| 720 |
|
| 721 |
### Hermes Agent
|
| 722 |
|
| 723 |
-
Register Raon-1 mini
|
| 724 |
|
| 725 |
```yaml
|
| 726 |
model:
|
| 727 |
provider: custom
|
| 728 |
-
default: Raon-1-mini
|
| 729 |
base_url: http://localhost:8000/v1
|
| 730 |
api_key: dummy
|
| 731 |
```
|
|
@@ -734,7 +713,7 @@ Hermes automatically detects the context window from the server when supported.
|
|
| 734 |
|
| 735 |
### Pi
|
| 736 |
|
| 737 |
-
Register Raon-1 mini
|
| 738 |
|
| 739 |
```json
|
| 740 |
{
|
|
@@ -745,8 +724,8 @@ Register Raon-1 mini preview as a custom provider in `~/.pi/agent/models.json`:
|
|
| 745 |
"apiKey": "dummy",
|
| 746 |
"models": [
|
| 747 |
{
|
| 748 |
-
"id": "Raon-1-mini
|
| 749 |
-
"name": "Raon-1 mini
|
| 750 |
"reasoning": true,
|
| 751 |
"contextWindow": 262144,
|
| 752 |
"maxTokens": 32768
|
|
@@ -757,11 +736,11 @@ Register Raon-1 mini preview as a custom provider in `~/.pi/agent/models.json`:
|
|
| 757 |
}
|
| 758 |
```
|
| 759 |
|
| 760 |
-
Select the model using `/model` inside a session, or launch Pi with `--model raon/Raon-1-mini
|
| 761 |
|
| 762 |
### OpenCode
|
| 763 |
|
| 764 |
-
Register Raon-1 mini
|
| 765 |
|
| 766 |
```json
|
| 767 |
{
|
|
@@ -774,8 +753,8 @@ Register Raon-1 mini preview as a custom OpenAI-compatible provider in `~/.confi
|
|
| 774 |
"baseURL": "http://localhost:8000/v1"
|
| 775 |
},
|
| 776 |
"models": {
|
| 777 |
-
"Raon-1-mini
|
| 778 |
-
"name": "Raon-1 mini
|
| 779 |
"limit": {
|
| 780 |
"context": 262144,
|
| 781 |
"output": 32768
|
|
@@ -784,17 +763,17 @@ Register Raon-1 mini preview as a custom OpenAI-compatible provider in `~/.confi
|
|
| 784 |
}
|
| 785 |
}
|
| 786 |
},
|
| 787 |
-
"model": "raon/Raon-1-mini
|
| 788 |
}
|
| 789 |
```
|
| 790 |
|
| 791 |
-
The `model` field sets Raon-1 mini
|
| 792 |
|
| 793 |
For all three agent harnesses, the configured context window and maximum output tokens should not exceed the limits supported by the serving backend.
|
| 794 |
|
| 795 |
## Access
|
| 796 |
|
| 797 |
-
Raon-1 mini
|
| 798 |
|
| 799 |
You can also try it in the [Raon-1 mini playground](https://raon-console.krafton.ai/playground/guest), free for a limited time.
|
| 800 |
|
|
|
|
| 2 |
library_name: mlx
|
| 3 |
license: apache-2.0
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
+
base_model: KRAFTON/Raon-1-mini
|
| 6 |
base_model_relation: quantized
|
| 7 |
tags:
|
| 8 |
- raon
|
| 9 |
- mlx
|
| 10 |
- nvfp4
|
| 11 |
+
extra_gated_heading: "Request access to Raon-1 mini"
|
| 12 |
+
extra_gated_prompt: "Raon-1 mini is an open-weight model. Access is granted on request."
|
| 13 |
extra_gated_fields:
|
| 14 |
Full name: text
|
| 15 |
Affiliation: text
|
|
|
|
| 31 |
# Raon-1 mini (MLX)
|
| 32 |
|
| 33 |
> [!NOTE]
|
| 34 |
+
> This repository contains the MLX weights of [Raon-1 mini](https://huggingface.co/KRAFTON/Raon-1-mini) for Apple silicon.
|
| 35 |
>
|
| 36 |
> The weights are quantized to NVFP4.
|
| 37 |
|
| 38 |
<div align="center">
|
| 39 |
+
<img class="block dark:hidden" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini/main/assets/raon-1-mini-logo.png" alt="Raon-1 mini" width="400">
|
| 40 |
+
<img class="hidden dark:block" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini/main/assets/raon-1-mini-logo-dark.png" alt="Raon-1 mini" width="400">
|
| 41 |
</div>
|
| 42 |
|
| 43 |
<p align="center">
|
|
|
|
| 55 |
> Want to try Raon-1 mini without setting anything up?<br>
|
| 56 |
> Chat with it for free, for a limited time, in the [Raon-1 mini playground](https://raon-console.krafton.ai/playground/guest).
|
| 57 |
|
|
|
|
|
|
|
|
|
|
| 58 |
## Highlights
|
| 59 |
|
| 60 |
- **Reasoning**: Built-in thinking, with leading results on the math and science benchmarks shown below.
|
|
|
|
| 64 |
- **Speculative decoding support**: A DFlash2 draft model is provided for accelerated speculative decoding.
|
| 65 |
- **Quantization options**: Available in MXFP8 and NVFP4 formats, with NVFP4 enabling inference on a single NVIDIA RTX 5090 gpu (32 GB VRAM).
|
| 66 |
|
| 67 |
+
<img class="block dark:hidden" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini/main/assets/raon_benchmarks_top6.png" alt="Raon-1 mini vs. open models">
|
| 68 |
+
<img class="hidden dark:block" src="https://raw.githubusercontent.com/krafton-ai/Raon-1-mini/main/assets/raon_benchmarks_top6-dark.png" alt="Raon-1 mini vs. open models">
|
| 69 |
|
| 70 |
## Model Overview
|
| 71 |
|
|
|
|
| 103 |
|
| 104 |
## Benchmark Results
|
| 105 |
|
| 106 |
+
* Red indicates the best performance of Raon-1 mini among MoE baselines.
|
| 107 |
|
| 108 |
<div style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;max-width:1180px;margin:0 auto;padding:0;">
|
| 109 |
<div>
|
|
|
|
| 111 |
<colgroup><col style="width:12%"><col style="width:22%"><col style="width:13.2%"><col style="width:13.2%"><col style="width:13.2%"><col style="width:13.2%"><col style="width:13.2%"></colgroup>
|
| 112 |
<thead>
|
| 113 |
<tr><th rowspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;text-align:left;padding:12px 14px;font-weight:700;vertical-align:middle;">Category</th><th rowspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;text-align:left;padding:12px 14px;font-weight:700;vertical-align:middle;">Benchmark</th><th colspan="3" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;padding:10px 12px;font-weight:700;text-align:center;">MoE</th><th colspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;background:#000000;color:#ffffff;padding:10px 12px;font-weight:700;text-align:center;border-left:2px solid #9a9a9a;">Dense</th></tr>
|
| 114 |
+
<tr><th style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:10px 6px;font-weight:600;font-size:13px;color:#ffffff;text-align:center;line-height:1.35;background:#e0362f;">Raon-1 mini<br>(30B-A4B)</th><th style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:10px 6px;font-weight:600;font-size:13px;color:#ffffff;text-align:center;line-height:1.35;background:#2a2a2a;">Qwen3.6-35B-A3B</th><th style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:10px 6px;font-weight:600;font-size:13px;color:#ffffff;text-align:center;line-height:1.35;background:#2a2a2a;">Gemma 4 26B-A4B</th><th style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:10px 6px;font-weight:600;font-size:13px;color:#ffffff;text-align:center;line-height:1.35;background:#2a2a2a;border-left:2px solid #9a9a9a;">Qwen3.8-27B</th><th style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:10px 6px;font-weight:600;font-size:13px;color:#ffffff;text-align:center;line-height:1.35;background:#2a2a2a;">Muse Glimmer 30B</th></tr>
|
| 115 |
</thead>
|
| 116 |
<tbody>
|
| 117 |
<tr><td rowspan="2" style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;font-weight:700;text-align:left;vertical-align:middle;white-space:normal;border-bottom:1px solid #e6e6e6;background:#ffffff;color:#1a1a1a;">Knowledge</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 10px;border-bottom:1px solid #e6e6e6;color:#1a1a1a;font-weight:500;text-align:left;white-space:normal;background:#ffffff;">MMLU Pro</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#fef0ef;">76.5</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#ffffff;">85.9</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#ffffff;">82.9</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;border-left:2px solid #9a9a9a;background:#ffffff;">85.7</td><td style="font-family:'Pretendard','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;padding:12px 6px;border-bottom:1px solid #e6e6e6;text-align:center;color:#1a1a1a;font-size:15px;background:#ffffff;">84.0</td></tr>
|
|
|
|
| 138 |
</div>
|
| 139 |
<p style="margin:0;font-size:10px;opacity:0.7">
|
| 140 |
Judge and user simulator: gpt-5.6-luna for all evaluations.<br/>
|
| 141 |
+
Red = Raon-1 mini is best within the MoE group (Raon-1 mini, Qwen3.6-35B-A3B, Gemma 4 26B-A4B). Dense models (Qwen3.8-27B, Muse Glimmer 30B) are shown for reference only.<br/>
|
| 142 |
¹ SWE-Verified: evaluated with the mini-SWE-agent harness.<br/>
|
| 143 |
² GDPVal (<a href="https://huggingface.co/datasets/openai/gdpval">dataset</a>): metric is a judge score, not Elo.<br/>
|
| 144 |
³ AutomationBench: public split, not the official evaluation set.<br/>
|
|
|
|
| 180 |
|
| 181 |
## Speculative Decoding
|
| 182 |
|
| 183 |
+
We release a [DFlash2](https://github.com/z-lab/dflash) draft model alongside Raon-1 mini to accelerate inference through speculative decoding. In our benchmarks on a single NVIDIA B300, it delivers **up to 2.18× higher output throughput** than autoregressive decoding. Speedups vary by hardware and workload.
|
| 184 |
|
| 185 |
Throughput is measured in output tok/s, with speedup over autoregressive decoding in parentheses. Acceptance length (AL) is the mean number of tokens per verification step, averaged across requests at concurrency 1.
|
| 186 |
|
|
|
|
| 210 |
recommended sampling settings above.
|
| 211 |
|
| 212 |
The model repositories are gated. Request access once on this page
|
| 213 |
+
(approval is automatic; it covers every Raon-1 mini
|
| 214 |
repository), then log in so the examples below can download them:
|
| 215 |
|
| 216 |
```bash
|
|
|
|
| 240 |
```python
|
| 241 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 242 |
|
| 243 |
+
model_id = "KRAFTON/Raon-1-mini"
|
| 244 |
|
| 245 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 246 |
model_id,
|
|
|
|
| 303 |
Install from our fork and start the server:
|
| 304 |
|
| 305 |
```bash
|
| 306 |
+
VLLM_REF="raon-optimize"
|
| 307 |
|
| 308 |
uv venv --python 3.12
|
| 309 |
source .venv/bin/activate
|
|
|
|
| 311 |
VLLM_USE_PRECOMPILED=1 uv pip install \
|
| 312 |
"vllm @ git+https://github.com/krafton-ai/vllm.git@${VLLM_REF}"
|
| 313 |
|
| 314 |
+
vllm serve KRAFTON/Raon-1-mini \
|
| 315 |
--host 127.0.0.1 \
|
| 316 |
--port 8000 \
|
| 317 |
+
--served-model-name Raon-1-mini \
|
| 318 |
--max-model-len 262144 \
|
| 319 |
--max-num-batched-tokens 16384 \
|
| 320 |
--max-num-seqs 128 \
|
|
|
|
| 322 |
--kv-cache-dtype fp8_e4m3 \
|
| 323 |
--enable-prefix-caching \
|
| 324 |
--spec-method dflash \
|
| 325 |
+
--spec-model KRAFTON/Raon-1-mini-dflash2 \
|
| 326 |
--spec-tokens 7 \
|
| 327 |
--reasoning-parser raon_1 \
|
| 328 |
--enable-auto-tool-choice \
|
|
|
|
| 336 |
The first start compiles the model's kernels and takes about 10 minutes;
|
| 337 |
later starts reuse them.
|
| 338 |
To serve the NVFP4 checkpoint, replace the model with
|
| 339 |
+
`KRAFTON/Raon-1-mini-nvfp4` in the same command.
|
| 340 |
It runs on a single GPU (tensor parallel size 1).
|
| 341 |
|
| 342 |
Send a request from another terminal:
|
|
|
|
| 345 |
curl http://localhost:8000/v1/chat/completions \
|
| 346 |
-H "Content-Type: application/json" \
|
| 347 |
-d '{
|
| 348 |
+
"model": "Raon-1-mini",
|
| 349 |
"messages": [
|
| 350 |
{
|
| 351 |
"role": "user",
|
|
|
|
| 380 |
or through an OpenAI-compatible API, with optional DFlash2
|
| 381 |
speculative decoding.
|
| 382 |
|
| 383 |
+
Checkpoint: [KRAFTON/Raon-1-mini-gguf](https://huggingface.co/KRAFTON/Raon-1-mini-gguf)
|
| 384 |
|
| 385 |
Build from our branch; upstream support is pending.
|
| 386 |
On Windows, see the [build guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md).
|
| 387 |
|
| 388 |
```bash
|
| 389 |
+
git clone -b raon-1-mini-optimize \
|
| 390 |
https://github.com/krafton-ai/llama.cpp
|
| 391 |
cd llama.cpp
|
| 392 |
|
|
|
|
| 399 |
|
| 400 |
```bash
|
| 401 |
./build/bin/llama-cli \
|
| 402 |
+
-hf KRAFTON/Raon-1-mini-gguf:Q4_K_M \
|
| 403 |
--ctx-size 262144 \
|
| 404 |
--n-predict 32768 \
|
| 405 |
--temp 1.0 \
|
|
|
|
| 420 |
|
| 421 |
```bash
|
| 422 |
./build/bin/llama-server \
|
| 423 |
+
-hf KRAFTON/Raon-1-mini-gguf:Q4_K_M \
|
| 424 |
--host 127.0.0.1 \
|
| 425 |
--port 8000 \
|
| 426 |
+
--alias Raon-1-mini \
|
| 427 |
--ctx-size 262144 \
|
| 428 |
--parallel 1 \
|
| 429 |
--n-predict 32768 \
|
|
|
|
| 459 |
curl http://localhost:8000/v1/chat/completions \
|
| 460 |
-H "Content-Type: application/json" \
|
| 461 |
-d '{
|
| 462 |
+
"model": "Raon-1-mini",
|
| 463 |
"messages": [
|
| 464 |
{
|
| 465 |
"role": "user",
|
|
|
|
| 493 |
Use MLX to run Raon-1 mini locally on Apple silicon,
|
| 494 |
either directly in Python or through an OpenAI-compatible API.
|
| 495 |
|
| 496 |
+
Checkpoint: [KRAFTON/Raon-1-mini-mlx](https://huggingface.co/KRAFTON/Raon-1-mini-mlx)
|
| 497 |
|
| 498 |
Install the dependencies with Python 3.11+ (the macOS system `python3` is older, so create the environment with uv):
|
| 499 |
|
|
|
|
| 517 |
)
|
| 518 |
|
| 519 |
model, tokenizer = load(
|
| 520 |
+
"KRAFTON/Raon-1-mini-mlx",
|
| 521 |
trust_remote_code=True,
|
| 522 |
)
|
| 523 |
|
|
|
|
| 559 |
|
| 560 |
```bash
|
| 561 |
python -m mlx_lm server \
|
| 562 |
+
--model KRAFTON/Raon-1-mini-mlx \
|
| 563 |
--trust-remote-code \
|
| 564 |
--host 127.0.0.1 \
|
| 565 |
--port 8000 \
|
|
|
|
| 609 |
model (`dflash2/`). Download the repository and run the commands from its folder:
|
| 610 |
|
| 611 |
```bash
|
| 612 |
+
hf download KRAFTON/Raon-1-mini-mlx --local-dir Raon-1-mini-mlx
|
| 613 |
+
cd Raon-1-mini-mlx
|
| 614 |
```
|
| 615 |
|
| 616 |
DFlash2 on (default):
|
|
|
|
| 680 |
`head_stage1_a2g64gm.safetensors` adds about 208 MB; a missing or invalid file causes a warning and fallback
|
| 681 |
to the full head. This repository does not include `head_stage1_a2g64gm.safetensors` yet, so `RAON_HEAD_MODE=on` prints the warning and uses the full head. Direct native `mlx_lm.generate` calls use the full head.
|
| 682 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 683 |
|
| 684 |
+
</details>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 685 |
|
| 686 |
+
## Reasoning Effort
|
| 687 |
|
| 688 |
+
Raon-1 mini can change how long it reasons before it answers. The efforts are `none` (thinking off), `low`, `mid`, `high`, `xhigh` and `max`. Reasoning gets longer from `low` to `max`. Without an effort, the model uses `high`.
|
| 689 |
|
| 690 |
+
- **vLLM:** set `"reasoning_effort": "low"` in the request. For the Responses API, set `"chat_template_kwargs": {"reasoning_effort": "low"}`.
|
| 691 |
+
- **llama.cpp:** set `"reasoning_effort": "low"` in the request.
|
| 692 |
+
- **MLX:** use `--reasoning-effort low` with `raon_mlx_model.py generate` or `serve` (the default for requests without one), or `reasoning_effort` in a server request (or `chat_template_kwargs.reasoning_effort`). From Python, call `model.set_reasoning_effort(cache, "low")` on a new prompt cache before the first token.
|
| 693 |
|
| 694 |
## Agentic Use
|
| 695 |
|
| 696 |
+
Raon-1 mini can be used with agent harnesses such as [Hermes Agent](https://github.com/NousResearch/hermes-agent), [Pi](https://pi.dev), and [OpenCode](https://opencode.ai) through an OpenAI-compatible API. The examples below assume an endpoint at `http://localhost:8000/v1` with the model ID `Raon-1-mini`. Adjust these settings to match your server, ensuring that tool calling and reasoning are properly supported.
|
| 697 |
> [!NOTE]
|
| 698 |
+
> With MLX, use `KRAFTON/Raon-1-mini-mlx` as the model ID instead of `Raon-1-mini`; `mlx_lm server` loads the model named in each request.
|
| 699 |
|
| 700 |
### Hermes Agent
|
| 701 |
|
| 702 |
+
Register Raon-1 mini as a custom OpenAI-compatible model in `~/.hermes/config.yaml`:
|
| 703 |
|
| 704 |
```yaml
|
| 705 |
model:
|
| 706 |
provider: custom
|
| 707 |
+
default: Raon-1-mini
|
| 708 |
base_url: http://localhost:8000/v1
|
| 709 |
api_key: dummy
|
| 710 |
```
|
|
|
|
| 713 |
|
| 714 |
### Pi
|
| 715 |
|
| 716 |
+
Register Raon-1 mini as a custom provider in `~/.pi/agent/models.json`:
|
| 717 |
|
| 718 |
```json
|
| 719 |
{
|
|
|
|
| 724 |
"apiKey": "dummy",
|
| 725 |
"models": [
|
| 726 |
{
|
| 727 |
+
"id": "Raon-1-mini",
|
| 728 |
+
"name": "Raon-1 mini",
|
| 729 |
"reasoning": true,
|
| 730 |
"contextWindow": 262144,
|
| 731 |
"maxTokens": 32768
|
|
|
|
| 736 |
}
|
| 737 |
```
|
| 738 |
|
| 739 |
+
Select the model using `/model` inside a session, or launch Pi with `--model raon/Raon-1-mini`. Replace `dummy` with your API key if the endpoint requires authentication.
|
| 740 |
|
| 741 |
### OpenCode
|
| 742 |
|
| 743 |
+
Register Raon-1 mini as a custom OpenAI-compatible provider in `~/.config/opencode/opencode.json` (or `opencode.json` in your project root):
|
| 744 |
|
| 745 |
```json
|
| 746 |
{
|
|
|
|
| 753 |
"baseURL": "http://localhost:8000/v1"
|
| 754 |
},
|
| 755 |
"models": {
|
| 756 |
+
"Raon-1-mini": {
|
| 757 |
+
"name": "Raon-1 mini",
|
| 758 |
"limit": {
|
| 759 |
"context": 262144,
|
| 760 |
"output": 32768
|
|
|
|
| 763 |
}
|
| 764 |
}
|
| 765 |
},
|
| 766 |
+
"model": "raon/Raon-1-mini"
|
| 767 |
}
|
| 768 |
```
|
| 769 |
|
| 770 |
+
The `model` field sets Raon-1 mini as the default model. You can also select it interactively using `/models`. If the endpoint requires authentication, configure an API key under `options` or use OpenCode's authentication settings.
|
| 771 |
|
| 772 |
For all three agent harnesses, the configured context window and maximum output tokens should not exceed the limits supported by the serving backend.
|
| 773 |
|
| 774 |
## Access
|
| 775 |
|
| 776 |
+
Raon-1 mini is an open-weight model. Access is granted on request.
|
| 777 |
|
| 778 |
You can also try it in the [Raon-1 mini playground](https://raon-console.krafton.ai/playground/guest), free for a limited time.
|
| 779 |
|