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"
Model card: rebase on the Raon-1-mini model card
Browse files
README.md
CHANGED
|
@@ -36,8 +36,8 @@ extra_gated_button_content: "Request access"
|
|
| 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">
|
|
@@ -57,7 +57,7 @@ Raon-1 mini is a 30B-A4B Mixture-of-Experts (MoE) language model, designed and *
|
|
| 57 |
|
| 58 |
## Highlights
|
| 59 |
|
| 60 |
-
- **Reasoning**: Built-in thinking
|
| 61 |
- **Instruction following and search**: (Benchmark results: pending)
|
| 62 |
- **Multilingual capabilities**: Trained on Korean, English, Japanese, Chinese, Spanish, French, and Thai. Demonstrates strong Korean performance and solid English capabilities.
|
| 63 |
- **Agent execution**: Tool calling for agentic workflows, with support for Hermes Agent, Pi and OpenCode.
|
|
@@ -105,7 +105,7 @@ Evaluation results for the final release: (pending)
|
|
| 105 |
## Sampling parameters
|
| 106 |
|
| 107 |
> [!Important]
|
| 108 |
-
> Raon-1 mini is designed for thinking mode
|
| 109 |
|
| 110 |
Settings shared by all tasks:
|
| 111 |
|
|
@@ -136,23 +136,21 @@ sampling = dict(temperature=1.0, top_p=0.95, top_k=20, presence_penalty=1.5, rep
|
|
| 136 |
|
| 137 |
## Reasoning effort
|
| 138 |
|
| 139 |
-
Each request can choose how much the model reasons with `reasoning_effort`.
|
| 140 |
-
The prompt is unchanged: the checkpoint ships steering vectors that are added
|
| 141 |
-
to the outputs of five MoE layers, scaled by the alpha of the requested level.
|
| 142 |
-
|
| 143 |
| `reasoning_effort` | `none` | `low` | `medium` | `high` | `xhigh` | `max` |
|
| 144 |
|---|:-:|:-:|:-:|:-:|:-:|:-:|
|
| 145 |
-
| Steering alpha | – | 0.3 | 0.1 | 0.05 | 0.02 | 0 |
|
| 146 |
| Reasoning | Off | Shortest | Shorter | **Default** | Longer | Longest (unsteered) |
|
| 147 |
|
| 148 |
-
- `
|
| 149 |
-
|
| 150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
|
| 152 |
-
|
| 153 |
|
| 154 |
-
|
| 155 |
-
- Responses API: `reasoning.effort`
|
| 156 |
|
| 157 |
```bash
|
| 158 |
curl http://localhost:8000/v1/chat/completions \
|
|
@@ -160,12 +158,9 @@ curl http://localhost:8000/v1/chat/completions \
|
|
| 160 |
-d '{
|
| 161 |
"model": "Raon-1-mini",
|
| 162 |
"messages": [
|
| 163 |
-
{
|
| 164 |
-
"role": "user",
|
| 165 |
-
"content": "Tell me about KRAFTON AI."
|
| 166 |
-
}
|
| 167 |
],
|
| 168 |
-
"reasoning_effort": "
|
| 169 |
"max_tokens": 8192,
|
| 170 |
"temperature": 1.0,
|
| 171 |
"top_p": 0.95,
|
|
@@ -174,25 +169,57 @@ curl http://localhost:8000/v1/chat/completions \
|
|
| 174 |
}'
|
| 175 |
```
|
| 176 |
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
|
| 181 |
-
|
| 182 |
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
- CLI: `python raon_mlx_model.py generate --reasoning-effort low`
|
| 187 |
-
- Server: `python raon_mlx_model.py serve`, then `"reasoning_effort": "low"` in the request
|
| 188 |
-
- Python: `model.set_reasoning_effort(cache, "low")` before generating
|
| 189 |
|
| 190 |
## Speculative Decoding
|
| 191 |
|
| 192 |
We release a [DFlash2](https://github.com/z-lab/dflash) draft model, [KRAFTON/Raon-1-mini-dflash2](https://huggingface.co/KRAFTON/Raon-1-mini-dflash2), alongside Raon-1 mini to accelerate inference through speculative decoding. Speedups vary by hardware and workload.
|
| 193 |
|
| 194 |
-
Speculative decoding results for the final release: (pending)
|
| 195 |
-
|
| 196 |
## Quickstart
|
| 197 |
|
| 198 |
Raon-1 mini supports inference with Transformers, vLLM, llama.cpp,
|
|
@@ -200,15 +227,6 @@ and MLX. The examples below show how to run the model locally or
|
|
| 200 |
launch an OpenAI-compatible server, using thinking mode and the
|
| 201 |
recommended sampling settings above.
|
| 202 |
|
| 203 |
-
The model repositories are gated. Request access once on this page
|
| 204 |
-
(approval is automatic; it covers every Raon-1 mini
|
| 205 |
-
repository), then log in so the examples below can download them:
|
| 206 |
-
|
| 207 |
-
```bash
|
| 208 |
-
pip install -U huggingface_hub
|
| 209 |
-
hf auth login
|
| 210 |
-
```
|
| 211 |
-
|
| 212 |
|
| 213 |
<details open>
|
| 214 |
<summary><strong>Transformers</strong></summary>
|
|
@@ -342,7 +360,7 @@ It runs on a single GPU (tensor parallel size 1).
|
|
| 342 |
### RTX 5090 (32 GB)
|
| 343 |
|
| 344 |
Use the NVFP4 checkpoint with the following settings.
|
| 345 |
-
|
| 346 |
|
| 347 |
```bash
|
| 348 |
# WSL2
|
|
@@ -366,107 +384,6 @@ vllm serve KRAFTON/Raon-1-mini-nvfp4 \
|
|
| 366 |
--default-chat-template-kwargs '{"enable_thinking":true,"truncate_history_thinking":false}'
|
| 367 |
```
|
| 368 |
|
| 369 |
-
### DGX Spark (GB10)
|
| 370 |
-
|
| 371 |
-
Use the NVFP4 checkpoint with the ARM64 container below. It includes the
|
| 372 |
-
Raon vLLM fork and the SM 12.1 compatibility fixes for DGX Spark.
|
| 373 |
-
Docker with NVIDIA GPU support is required. This configuration was tested
|
| 374 |
-
on GB10 with NVIDIA driver `580.159.03`.
|
| 375 |
-
|
| 376 |
-
Download the tested target and draft revisions:
|
| 377 |
-
|
| 378 |
-
<!-- TODO(final release): replace <NVFP4_REVISION> and <DFLASH2_REVISION> with the tested commits of the final repos. -->
|
| 379 |
-
|
| 380 |
-
```bash
|
| 381 |
-
hf download KRAFTON/Raon-1-mini-nvfp4 \
|
| 382 |
-
--revision <NVFP4_REVISION>
|
| 383 |
-
hf download KRAFTON/Raon-1-mini-dflash2 \
|
| 384 |
-
--revision <DFLASH2_REVISION>
|
| 385 |
-
```
|
| 386 |
-
|
| 387 |
-
Start the OpenAI-compatible server with DFlash2 enabled:
|
| 388 |
-
|
| 389 |
-
```bash
|
| 390 |
-
docker run --rm --name raon-spark-quickstart \
|
| 391 |
-
--hostname raon-spark --gpus all --ipc=host \
|
| 392 |
-
-p 127.0.0.1:8000:8000 \
|
| 393 |
-
-v "$HOME/.cache/huggingface:/hf" \
|
| 394 |
-
-v raon-spark-cache:/cache \
|
| 395 |
-
-e HF_HOME=/hf -e HF_HUB_OFFLINE=1 \
|
| 396 |
-
-e MODEL_ID=/hf/hub/models--KRAFTON--Raon-1-mini-nvfp4/snapshots/<NVFP4_REVISION> \
|
| 397 |
-
-e DRAFT_MODEL_ID=/hf/hub/models--KRAFTON--Raon-1-mini-dflash2/snapshots/<DFLASH2_REVISION> \
|
| 398 |
-
-e SPEC_TOKENS=7 \
|
| 399 |
-
-e MAX_MODEL_LEN=131072 \
|
| 400 |
-
ghcr.io/krafton-ai/raon-vllm-spark:sm121-4e09534 \
|
| 401 |
-
--served-model-name Raon-1-mini
|
| 402 |
-
```
|
| 403 |
-
|
| 404 |
-
The image is public; no GHCR login is required. If you use a custom Hugging Face cache,
|
| 405 |
-
replace the host cache path in the volume mount.
|
| 406 |
-
|
| 407 |
-
The first launch compiles CUDA kernels. Keep the `raon-spark-cache`
|
| 408 |
-
volume and hostname to reuse them on later launches. Wait until
|
| 409 |
-
`curl -f http://localhost:8000/health` succeeds, then send the request below.
|
| 410 |
-
The trailing `--served-model-name Raon-1-mini` replaces the container's
|
| 411 |
-
default served name.
|
| 412 |
-
|
| 413 |
-
This profile uses a 128K context window, at most eight sequences,
|
| 414 |
-
a 2,048-token scheduler batch, and a 3 GiB FP8 KV cache. Concurrent long
|
| 415 |
-
requests may queue. Set `SPEC_TOKENS=0` for autoregressive decoding.
|
| 416 |
-
|
| 417 |
-
[Container source and build instructions](https://github.com/krafton-ai/vllm/tree/4e09534a5dc351e240a332c951c5e7e3eb89dac7/docker/raon-spark) (container update pending).
|
| 418 |
-
Image digest: `sha256:c116b968d899b98c3941a82ad328fbf4a0a80ce7e5034cc0b21a1aa3d8537f88`.
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
Send a request from another terminal:
|
| 422 |
-
|
| 423 |
-
```bash
|
| 424 |
-
curl http://localhost:8000/v1/chat/completions \
|
| 425 |
-
-H "Content-Type: application/json" \
|
| 426 |
-
-d '{
|
| 427 |
-
"model": "Raon-1-mini",
|
| 428 |
-
"messages": [
|
| 429 |
-
{
|
| 430 |
-
"role": "user",
|
| 431 |
-
"content": "Tell me about KRAFTON AI."
|
| 432 |
-
}
|
| 433 |
-
],
|
| 434 |
-
"max_tokens": 8192,
|
| 435 |
-
"temperature": 1.0,
|
| 436 |
-
"top_p": 0.95,
|
| 437 |
-
"top_k": 20,
|
| 438 |
-
"min_p": 0.0,
|
| 439 |
-
"repetition_penalty": 1.0,
|
| 440 |
-
"frequency_penalty": 0.0,
|
| 441 |
-
"presence_penalty": 1.5,
|
| 442 |
-
"chat_template_kwargs": {
|
| 443 |
-
"enable_thinking": true,
|
| 444 |
-
"truncate_history_thinking": false
|
| 445 |
-
}
|
| 446 |
-
}'
|
| 447 |
-
```
|
| 448 |
-
|
| 449 |
-
Reasoning is returned in `message.reasoning`;
|
| 450 |
-
the answer is in `message.content`.
|
| 451 |
-
For coding and math, set `presence_penalty` to `0`.
|
| 452 |
-
|
| 453 |
-
To set the reasoning effort (`none`, `low`, `medium`, `high`, `xhigh` or `max`; default `high`),
|
| 454 |
-
add `"reasoning_effort"` to the request:
|
| 455 |
-
|
| 456 |
-
```bash
|
| 457 |
-
curl http://localhost:8000/v1/chat/completions \
|
| 458 |
-
-H "Content-Type: application/json" \
|
| 459 |
-
-d '{
|
| 460 |
-
"model": "Raon-1-mini",
|
| 461 |
-
"messages": [
|
| 462 |
-
{"role": "user", "content": "What is 17 * 23?"}
|
| 463 |
-
],
|
| 464 |
-
"reasoning_effort": "low"
|
| 465 |
-
}'
|
| 466 |
-
```
|
| 467 |
-
|
| 468 |
-
For the Responses API, set `reasoning.effort`.
|
| 469 |
-
|
| 470 |
</details>
|
| 471 |
|
| 472 |
<details>
|
|
@@ -478,7 +395,7 @@ speculative decoding.
|
|
| 478 |
|
| 479 |
Checkpoint: [KRAFTON/Raon-1-mini-gguf](https://huggingface.co/KRAFTON/Raon-1-mini-gguf)
|
| 480 |
|
| 481 |
-
Build from our branch; upstream support is pending.
|
| 482 |
On Windows, see the [build guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md).
|
| 483 |
|
| 484 |
```bash
|
|
@@ -581,21 +498,6 @@ Reasoning is returned in `message.reasoning_content`;
|
|
| 581 |
the answer is in `message.content`.
|
| 582 |
For coding and math, set `presence_penalty` to `0`.
|
| 583 |
|
| 584 |
-
To set the reasoning effort (`none`, `low`, `medium`, `high`, `xhigh` or `max`; default `high`),
|
| 585 |
-
add `"reasoning_effort"` to the request:
|
| 586 |
-
|
| 587 |
-
```bash
|
| 588 |
-
curl http://localhost:8000/v1/chat/completions \
|
| 589 |
-
-H "Content-Type: application/json" \
|
| 590 |
-
-d '{
|
| 591 |
-
"model": "Raon-1-mini",
|
| 592 |
-
"messages": [
|
| 593 |
-
{"role": "user", "content": "What is 17 * 23?"}
|
| 594 |
-
],
|
| 595 |
-
"reasoning_effort": "low"
|
| 596 |
-
}'
|
| 597 |
-
```
|
| 598 |
-
|
| 599 |
</details>
|
| 600 |
|
| 601 |
<details>
|
|
@@ -890,12 +792,6 @@ The `model` field sets Raon-1 mini as the default model. You can also select it
|
|
| 890 |
|
| 891 |
For all three agent harnesses, the configured context window and maximum output tokens should not exceed the limits supported by the serving backend.
|
| 892 |
|
| 893 |
-
## Access
|
| 894 |
-
|
| 895 |
-
Raon-1 mini is an open-weight model. Access is granted on request.
|
| 896 |
-
|
| 897 |
-
You can also try it in the [Raon-1 mini playground](https://raon-console.krafton.ai/playground/guest), free for a limited time.
|
| 898 |
-
|
| 899 |
## License
|
| 900 |
|
| 901 |
### Hugging Face model card / README notice License - Apache 2.0
|
|
|
|
| 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">
|
|
|
|
| 57 |
|
| 58 |
## Highlights
|
| 59 |
|
| 60 |
+
- **Reasoning**: Built-in thinking with six [reasoning effort](#reasoning-effort) levels (`none`, `low`, `medium`, `high`, `xhigh` and `max`), selectable per request. (Benchmark results: pending)
|
| 61 |
- **Instruction following and search**: (Benchmark results: pending)
|
| 62 |
- **Multilingual capabilities**: Trained on Korean, English, Japanese, Chinese, Spanish, French, and Thai. Demonstrates strong Korean performance and solid English capabilities.
|
| 63 |
- **Agent execution**: Tool calling for agentic workflows, with support for Hermes Agent, Pi and OpenCode.
|
|
|
|
| 105 |
## Sampling parameters
|
| 106 |
|
| 107 |
> [!Important]
|
| 108 |
+
> Raon-1 mini is designed for thinking mode. To turn thinking off, use the `none` [reasoning effort](#reasoning-effort).
|
| 109 |
|
| 110 |
Settings shared by all tasks:
|
| 111 |
|
|
|
|
| 136 |
|
| 137 |
## Reasoning effort
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
| `reasoning_effort` | `none` | `low` | `medium` | `high` | `xhigh` | `max` |
|
| 140 |
|---|:-:|:-:|:-:|:-:|:-:|:-:|
|
|
|
|
| 141 |
| Reasoning | Off | Shortest | Shorter | **Default** | Longer | Longest (unsteered) |
|
| 142 |
|
| 143 |
+
Raon-1 mini has six reasoning effort levels: `none`, `low`, `medium`, `high`, `xhigh` and `max`.
|
| 144 |
+
`low` thinks the least and `max` the most; `none` turns thinking off and answers directly.
|
| 145 |
+
Requests that do not set a level use `high`.
|
| 146 |
+
|
| 147 |
+
The levels from `low` to `max` are applied with steering vectors that ship with the checkpoint, so the
|
| 148 |
+
prompt stays the same. They are supported by the Raon vLLM and llama.cpp forks, the included Transformers
|
| 149 |
+
code and the MLX repository's `raon_mlx_model.py`.
|
| 150 |
|
| 151 |
+
### OpenAI-compatible server (vLLM, llama.cpp)
|
| 152 |
|
| 153 |
+
Set `reasoning_effort` in the request:
|
|
|
|
| 154 |
|
| 155 |
```bash
|
| 156 |
curl http://localhost:8000/v1/chat/completions \
|
|
|
|
| 158 |
-d '{
|
| 159 |
"model": "Raon-1-mini",
|
| 160 |
"messages": [
|
| 161 |
+
{"role": "user", "content": "Tell me about KRAFTON AI."}
|
|
|
|
|
|
|
|
|
|
| 162 |
],
|
| 163 |
+
"reasoning_effort": "max",
|
| 164 |
"max_tokens": 8192,
|
| 165 |
"temperature": 1.0,
|
| 166 |
"top_p": 0.95,
|
|
|
|
| 169 |
}'
|
| 170 |
```
|
| 171 |
|
| 172 |
+
`chat_template_kwargs.reasoning_effort` also works, and the Responses API takes `reasoning.effort`.
|
| 173 |
+
Any other value is rejected with HTTP 400.
|
| 174 |
+
|
| 175 |
+
In `llama-cli`, add `--reasoning-effort low` (or another level). In `llama-server`, the same option sets
|
| 176 |
+
the level for requests that do not set one.
|
| 177 |
+
|
| 178 |
+
### Turning thinking off (`none`)
|
| 179 |
+
|
| 180 |
+
Send `"reasoning_effort": "none"` as a top-level field (`reasoning.effort` in the Responses API).
|
| 181 |
+
The thinking block is then closed in the prompt (`<think></think>`), and the model answers directly,
|
| 182 |
+
without steering.
|
| 183 |
+
|
| 184 |
+
- `"reasoning_effort": "none"` inside `chat_template_kwargs` keeps thinking on unless you also set
|
| 185 |
+
`"enable_thinking": false` there.
|
| 186 |
+
- `"enable_thinking": false` alone turns thinking off but keeps the default level's steering (`high`).
|
| 187 |
+
- In `llama-cli`, use `--reasoning off --reasoning-effort none` and set `"enable_thinking": false`
|
| 188 |
+
in `--chat-template-kwargs`.
|
| 189 |
+
|
| 190 |
+
### Transformers
|
| 191 |
+
|
| 192 |
+
The included model code applies one level to every `generate()` call. It starts at `high`:
|
| 193 |
+
|
| 194 |
+
```python
|
| 195 |
+
model.set_reasoning_effort("low") # none, low, medium, high, xhigh or max
|
| 196 |
+
outputs = model.generate(**inputs, max_new_tokens=32768)
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
For `none`, also pass `enable_thinking=False` to the chat template:
|
| 200 |
+
|
| 201 |
+
```python
|
| 202 |
+
model.set_reasoning_effort("none")
|
| 203 |
+
inputs = tokenizer.apply_chat_template(
|
| 204 |
+
messages,
|
| 205 |
+
add_generation_prompt=True,
|
| 206 |
+
tokenize=True,
|
| 207 |
+
return_dict=True,
|
| 208 |
+
return_tensors="pt",
|
| 209 |
+
enable_thinking=False,
|
| 210 |
+
).to(model.device)
|
| 211 |
+
```
|
| 212 |
|
| 213 |
+
### MLX
|
| 214 |
|
| 215 |
+
Use the bundled `raon_mlx_model.py`: add `--reasoning-effort low` to `generate` or `serve`, or send
|
| 216 |
+
`reasoning_effort` in a `raon_mlx_model.py serve` request. `mlx_lm` ignores the level. See the MLX
|
| 217 |
+
section of the [Quickstart](#quickstart).
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
## Speculative Decoding
|
| 220 |
|
| 221 |
We release a [DFlash2](https://github.com/z-lab/dflash) draft model, [KRAFTON/Raon-1-mini-dflash2](https://huggingface.co/KRAFTON/Raon-1-mini-dflash2), alongside Raon-1 mini to accelerate inference through speculative decoding. Speedups vary by hardware and workload.
|
| 222 |
|
|
|
|
|
|
|
| 223 |
## Quickstart
|
| 224 |
|
| 225 |
Raon-1 mini supports inference with Transformers, vLLM, llama.cpp,
|
|
|
|
| 227 |
launch an OpenAI-compatible server, using thinking mode and the
|
| 228 |
recommended sampling settings above.
|
| 229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
|
| 231 |
<details open>
|
| 232 |
<summary><strong>Transformers</strong></summary>
|
|
|
|
| 360 |
### RTX 5090 (32 GB)
|
| 361 |
|
| 362 |
Use the NVFP4 checkpoint with the following settings.
|
| 363 |
+
CUDA Toolkit 13 with `nvcc` on `PATH` is required.
|
| 364 |
|
| 365 |
```bash
|
| 366 |
# WSL2
|
|
|
|
| 384 |
--default-chat-template-kwargs '{"enable_thinking":true,"truncate_history_thinking":false}'
|
| 385 |
```
|
| 386 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 387 |
</details>
|
| 388 |
|
| 389 |
<details>
|
|
|
|
| 395 |
|
| 396 |
Checkpoint: [KRAFTON/Raon-1-mini-gguf](https://huggingface.co/KRAFTON/Raon-1-mini-gguf)
|
| 397 |
|
| 398 |
+
Build from our `raon-1-mini` branch; upstream support is pending.
|
| 399 |
On Windows, see the [build guide](https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md).
|
| 400 |
|
| 401 |
```bash
|
|
|
|
| 498 |
the answer is in `message.content`.
|
| 499 |
For coding and math, set `presence_penalty` to `0`.
|
| 500 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 501 |
</details>
|
| 502 |
|
| 503 |
<details>
|
|
|
|
| 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 |
## License
|
| 796 |
|
| 797 |
### Hugging Face model card / README notice License - Apache 2.0
|