Raon-1 mini: 30B-A4B Hybrid MoE Architecture, DFlash2 & Local Agent Deployment

KRAFTON Raon-1 mini is a 28.8B-parameter (4.3B active) Apache-2.0 hybrid Mixture-of-Experts model pairing 18 Raon Delta Attention linear layers with 7 Gated MLA layers to hold KV cache growth to ~8 KiB/token across 262,144 tokens. Available in MXFP8, single-GPU NVFP4 (17.56 GB), GGUF, and MLX with DFlash2 speculative decoding, it connects directly to Smoke Monkey Harness for offline autonomous engineering.
Raon-1 mini: 30B-A4B Hybrid MoE Architecture, DFlash2 & Local Agent Deployment: KRAFTON Raon-1 mini is a 28.8B-parameter (4.3B active) Apache-2.0 hybrid Mixture-of-Experts model pairing 18 Raon Delta Attention linear layers with 7 Gated MLA layers to hold KV cache growth to ~8 KiB/token across 262,144 tokens. Available in MXFP8, single-GPU NVFP4 (17.56 GB), GGUF, and MLX with DFlash2 speculative decoding, it connects directly to Smoke Monkey Harness for offline autonomous engineering. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Linear-Attention Memory Efficiency: 18 Raon Delta Attention (RDA) layers maintain fixed-size state while only 7 Gated MLA layers allocate KV cache (~8 KiB/token in BF16, ~2.0 GiB total at 262,144 tokens).
- Single-GPU NVFP4 & Apple Silicon Support: Runs in 17.56 GB NVFP4 on one 32 GB RTX 5090 or 18.73 GB on Apple Silicon MLX, activating only 4.3B of 28.8B parameters per token.
- Steering-Vector Reasoning Control: Six per-request reasoning_effort tiers (none, low, medium, high, xhigh, max) adjust thinking depth without changing the prompt template.
- DFlash2 Speculative Decoding: Official 1.36 GB Safetensors and 0.73 GB Q8_0 GGUF draft models accelerate vLLM, llama.cpp, and MLX generation up to 7 draft tokens per step.
- Deterministic Agent Harness Integration: Binds OpenAI-compatible vLLM, llama-server, or mlx_lm endpoints to @smoke-monkey/harness with XML tool calling and MCP sandboxing.
import { createAgent } from '@smoke-monkey/harness';// Connect Smoke Monkey Harness to a local vLLM, llama-server, or mlx_lm endpoint serving Raon-1 miniconst agent = createAgent({provider: 'openai',baseUrl: process.env.RAON_BASE_URL ?? 'http://127.0.0.1:8000/v1',apiKey: process.env.RAON_API_KEY ?? 'dummy',model: process.env.RAON_MODEL ?? 'Raon-1-mini',agentId: 'build',workspacePath: process.cwd(),tools: ['filesystem', 'terminal', 'search', 'git', 'agent'],permission: 'ask-default',mcp: [{id: 'github',name: 'GitHub MCP',description: 'Inspect repository pull requests, CI workflows, and open issues',command: 'npx',args: ['-y', '@modelcontextprotocol/server-github'],enabled: true,},],});// Auto-approve read-only inspection and test runs while gating mutating terminal actionsagent.on('permission.required', (event) => {const readOnlyAndTestTools = ['read_file', 'grep', 'glob', 'git_diff', 'git_status', 'run_test'];const decision = readOnlyAndTestTools.includes(event.data.toolName) ? 'allow' : 'deny';agent.resolvePermission(event.data.toolCallId, decision);});agent.on('phase.changed', (event) => {console.log(`[Raon-1-mini] Phase -> ${event.data.phase}`);});async function main() {const result = await agent.run('Audit src/api/session.ts for race conditions, patch the lock guard, and verify with npm test.');console.log('Status:', result.status, 'Session:', result.sessionId);}main().catch(console.error);
Watch: Related Video Guides
Krafton Raon 1 Mini tested - Local LLM setup
Raon-1 Mini: One-GPU Local AI From PUBG's Studio
What Is Raon-1 mini? Hybrid RDA and Gated MLA Architecture Explained
Raon-1 mini is a 28.8B-parameter (4.3B active) Apache-2.0 Mixture-of-Experts language model trained from scratch by KRAFTON AI for reasoning, tool use, and multilingual coding. Its 25-layer decoder pairs 18 Raon Delta Attention (RDA) linear layers with 7 Gated Multi-Head Latent Attention (MLA) layers, supporting 262,144 tokens on a single 32 GB GPU.
Instead of using standard Grouped Query Attention across every layer—which balloons KV cache allocations at 128K–262K context lengths—Raon-1 mini interleaves linear recurrence and compressed full attention in a 3:1 hybrid ratio (RDA 3 : Gated MLA 1) without positional encodings (NoPE).
Core Architectural Mechanisms
- Raon Delta Attention (RDA): Improves upon Kimi Delta Attention (KDA) by decoupling the memory erase and write gates across 18 linear-attention layers, preserving long-range retrieval stability while keeping per-layer recurrent state fixed regardless of sequence length.
- Raon-mHC 4-Stream Residuals: Refines DeepSeek's manifold-constrained hyper-connections (
mHC) to reduce training overhead across four parallel residual streams. - Sparse SiTU-GLU MoE: Layer 0 uses a dense FFN (
12,032intermediate width), followed by sparse MoE blocks containing128routed experts (top-6active) plus1shared expert (1,088expert intermediate width), activating4.3Bparameters per token. - MXFP8 Native Weights: The base Hugging Face checkpoint (
32.72 GBacross 7 safetensors shards) stores25.67Bparameters inF8_E4M3and3.11Bparameters inBF16(28,783,231,202total parameters).
| Architectural Parameter | Raon-1 mini Specification |
|---|---|
| Model Type & License | Sparse Hybrid MoE (raon1_mini), Apache-2.0 |
| Total / Activated Parameters | 28.8B (28,783,231,202) / 4.3B per token |
| Decoder Layers | 25 total (18 RDA linear + 7 Gated MLA, 3:1 ratio) |
| Hidden Size & Positional Encoding | 2,560 hidden dim, NoPE (no positional encoding) |
| Attention Heads & Dimensions | 40 heads; 128 dim (RDA), 192 QK / 128 V (Gated MLA) |
| MLA LoRA Ranks | Query rank 576 / KV rank 512 |
| MoE Routing & Activation | 128 routed (top-6) + 1 shared, 1,088 width, SiTU-GLU |
| Residual & Vocabulary | Raon-mHC (4 streams), 259,840 vocab, untied LM head |
| Native Context Window | 262,144 tokens |
Raon-1 mini Benchmarks: Reasoning, Coding & Agentic Tool Use
Evaluated with gpt-5.6-luna as judge and simulator under task-matched reasoning effort, Raon-1 mini leads its compared MoE peers on MultiChallenge (64.9), BrowseComp Plus (55.9), and GDPVal (72.3), while hitting 86.0 on GPQA Diamond, 96.7 on AIME 2026, and 71.0 on SWE-Verified.
Notice where the hybrid linear-plus-MLA design excels for autonomous agents: multi-turn constraint retention (MultiChallenge 64.9, beating both MoE competitors and dense Qwen3.8-27B at 63.6), open-web search synthesis (BrowseComp Plus 55.9), and knowledge-work execution (GDPVal 72.3). Meanwhile, AA-Omniscience (1.0) makes Raon-1 mini the only model in its comparison cohort to stay net-positive on calibrated factuality rather than hallucinating under uncertainty.
Cross-Model Benchmark Comparison (MoE Cohort vs Dense Reference)
| Benchmark Suite | Raon-1 mini (30B-A4B) | Qwen3.6 (35B-A3B) | Gemma 4 (26B-A4B) | Flint (40B-A2.5B) | Inkling 2 Mini (26.4B-A5.4B) | Qwen3.8-27B (Dense Ref) |
|---|---|---|---|---|---|---|
| GPQA Diamond | 86.0 | 83.2 | 80.7 | 70.8 | 86.6 | 89.7 |
| AIME 2026 | 96.7 | 92.9 | 87.1 | 89.6 | 97.5 | 98.8 |
| HMMT Feb 2026 | 87.1 | 84.5 | 79.9 | 76.9 | 88.6 | 95.8 |
| MMLU Pro | 82.7 | 85.9 | 82.9 | 77.7 | 83.5 | 85.7 |
| AA-Omniscience | 1.0 | -7.2 | -46.6 | -45.0 | -0.3 | -0.5 |
| IFBench | 84.9 | 66.6 | 80.9 | 88.4 | 77.0 | 82.4 |
| MultiChallenge | 64.9 | 58.2 | 58.4 | 54.8 | 52.4 | 63.6 |
| LiveCodeBench v6 | 81.7 | 81.2 | 83.4 | 88.5 | 87.4 | 79.3 |
| SciCode | 41.3 | 35.6 | 39.6 | 33.7 | 43.8 | 44.6 |
SWE-Verified (mini-SWE-agent) | 71.0 | 63.2 | 61.6 | 76.0 | 74.2 | 74.6 |
| Terminal-Bench Lite | 52.0 | 63.3 | 52.0 | 57.3 | 77.0 | 67.0 |
| GDPVal | 72.3 | 68.4 | 58.8 | 63.8 | 69.9 | 74.3 |
| AutomationBench (public split) | 39.9 | 24.9 | 36.2 | 30.8 | 56.7 | 58.7 |
| BrowseComp Plus | 55.9 | 34.8 | 32.2 | 49.2 | 48.3 | 58.0 |
| BFCL v4 Overall | 61.6 | 64.7 | 65.8 | 51.5 | 58.7 | 72.4 |
| AA-LCR (Long Context) | 70.7 | 69.3 | 67.0 | 65.7 | 80.7 | 80.3 |
| Chatbot Korean (internal) | 92.7 | 74.5 | 90.6 | 66.5 | 81.9 | 90.1 |
On the 2027 Korean CSAT evaluation (507 questions across 26 sections), Raon-1 mini scores 401.3 / 450 per question (371.8 per section) at high reasoning effort—exceeding much larger baselines such as Motif 3 (314B-A13.2B) at 326.2 and K-EXAONE 2.0 (750B-A37B) at 368.0.
Quantizations, KV Cache Math & Six-Tier Reasoning Effort Controls
Because only 7 of 25 layers in Raon-1 mini store a token-level KV cache, full 262,144-token context requires roughly 2.0 GiB of KV memory in BF16 (~8 KiB/token) or ~1.0 GiB in FP8. Paired with NVFP4 weights (17.56 GB) and DFlash2 (1.36 GB), the stack fits inside one 32 GB RTX 5090.
Verified Artifact Weights & Hardware Matrix
| Hugging Face Repository / Artifact | Precision / Format | File Size | Primary Deployment Target |
|---|---|---|---|
KRAFTON/Raon-1-mini | MXFP8 (F8_E4M3 + BF16) | 32.72 GB | Datacenter GPUs (H100/H200/B300) or 32 GB GPU w/ CPU offload |
KRAFTON/Raon-1-mini-nvfp4 | NVFP4 (24 MoE shards + 3.10 GB unquantized) | 17.56 GB | Single NVIDIA RTX 5090 (32 GB VRAM) w/ vLLM CUDA 13 |
KRAFTON/Raon-1-mini-gguf (IQ4_XS) | IQ4_XS GGUF | 16.21 GB | Tight-VRAM 24 GB GPUs via krafton-ai/llama.cpp |
KRAFTON/Raon-1-mini-gguf (Q4_K_M) | Q4_K_M GGUF | 19.69 GB | Balanced 24 GB+ local GPUs and workstations |
KRAFTON/Raon-1-mini-gguf (Q5_K_M / Q6_K / Q8_0) | Q5_K_M / Q6_K / Q8_0 | 22.18 / 25.84 / 30.69 GB | 32 GB–48 GB GPUs and high-RAM Unified Memory hosts |
KRAFTON/Raon-1-mini-mlx | Apple Silicon MLX (4 shards + dflash2 + head_stage1) | 18.73 GB | Apple M-series Macs (24 GB+ Unified Memory) |
KRAFTON/Raon-1-mini-dflash2 / dflash-Q8_0.gguf | DFlash2 Speculative Draft Model | 1.36 GB / 0.73 GB | Parallel draft verification in vLLM (7 tokens) & llama.cpp |
Exact KV Cache & Single-GPU Memory Budget
KV Cache (7 Gated MLA layers only) = ~8 KiB / token (BF16) | ~4 KiB / token (fp8_e4m3)
262,144-Token KV Cache = ~2.00 GiB (BF16) | ~1.00 GiB (fp8_e4m3)
32,768-Token RTX 5090 Profile = ~0.25 GiB (BF16) | ~0.13 GiB (fp8_e4m3)
RTX 5090 (32 GB) NVFP4 Budget = 17.56 GB weights + 1.36 GB DFlash2 + 3.00 GiB KV cap (fp8_e4m3)
≈ ~22.0 GB core footprint (fits comfortably inside 32 GB VRAM)Six-Level Steering-Vector Reasoning & Sampling Rules
Unlike models that rely on prompt prefixes to alter thinking length, Raon-1 mini ships checkpoint steering vectors for none, low, medium, high (default), and xhigh, while max runs unsteered for maximum trace depth. Passing reasoning_effort: "none" (or enable_thinking: false) closes <think></think> immediately while keeping steering at alpha = 0.1. Any invalid value returns HTTP 400.
- Universal Sampling Defaults:
temperature=1.0,top_p=0.95,top_k=20,repetition_penalty=1.0,frequency_penalty=0.0,min_p=0.0, andtruncate_history_thinking=false(preserves<think>traces inside multi-step tool-calling loops). - Task-Dependent `presence_penalty`: Set
presence_penalty=0.0for coding and math (so variable names and symbols are not penalized); setpresence_penalty=1.5for chat, summarization, and general agent orchestration.
Upstream Engine Support & Fork Requirements
Raon-1 mini relies on custom RDA/Gated-MLA kernels, steering-vector reasoning control, and DFlash2 speculative decoding. Use krafton-ai/vllm (branch raon) with CUDA Toolkit 13 or krafton-ai/llama.cpp (branch raon-1-mini) until upstream merges land; on Apple Silicon MLX, use mlx_lm server for tool calling or raon_mlx_model.py serve for DFlash2 and reasoning_effort.
Reproducible Serving Commands: vLLM, llama.cpp & Apple Silicon MLX
You can serve Raon-1 mini locally over an OpenAI-compatible /v1/chat/completions API using KRAFTON's vLLM fork (NVFP4 on RTX 5090 or MXFP8 on B300/H200), the raon-1-mini llama.cpp fork with Q4_K_M and DFlash2, or Apple Silicon MLX with mlx==0.32.4 and mlx-lm==0.32.2.
1. vLLM on NVIDIA RTX 5090 (32 GB NVFP4 + DFlash2)
# Install KRAFTON's raon vLLM branch (requires CUDA Toolkit 13 with nvcc on PATH)
uv venv --python 3.12 && source .venv/bin/activate
VLLM_USE_PRECOMPILED=1 uv pip install "vllm @ git+https://github.com/krafton-ai/vllm.git@raon"
# Launch single-GPU NVFP4 server with FP8 KV cache, prefix caching, DFlash2 & raon_1 parsers
export VLLM_WSL2_ENABLE_PIN_MEMORY=1 # Required on WSL2 only
vllm serve KRAFTON/Raon-1-mini-nvfp4 \
--host 127.0.0.1 --port 8000 \
--served-model-name Raon-1-mini \
--max-model-len 32768 \
--max-num-batched-tokens 2048 \
--max-num-seqs 8 \
--gpu-memory-utilization 0.85 \
--kv-cache-dtype fp8_e4m3 \
--kv-cache-memory 3221225472 \
--enable-prefix-caching --async-scheduling \
--spec-method dflash \
--spec-model KRAFTON/Raon-1-mini-dflash2 \
--spec-tokens 7 \
--reasoning-parser raon_1 \
--enable-auto-tool-choice --tool-call-parser raon_1 \
--default-chat-template-kwargs '{"enable_thinking":true,"truncate_history_thinking":false}'On datacenter GPUs (e.g., B300), swap KRAFTON/Raon-1-mini-nvfp4 for KRAFTON/Raon-1-mini and raise --max-model-len 262144 --max-num-batched-tokens 16384 --max-num-seqs 128 (omitting --kv-cache-memory).
2. llama.cpp GGUF + DFlash2 (Linux CUDA / Windows / macOS)
git clone -b raon-1-mini https://github.com/krafton-ai/llama.cpp && cd llama.cpp
cmake -B build -DGGML_CUDA=ON -DLLAMA_BUILD_BORINGSSL=ON # Omit -DGGML_CUDA=ON on Apple Silicon
cmake --build build --config Release -j
# Start OpenAI-compatible server with Q4_K_M (19.69 GB) and Q8_0 DFlash2 draft model (0.73 GB)
./build/bin/llama-server \
-hf KRAFTON/Raon-1-mini-gguf:Q4_K_M \
--host 127.0.0.1 --port 8000 --alias Raon-1-mini \
--ctx-size 262144 --parallel 1 --n-predict 32768 \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
--repeat-penalty 1.0 --frequency-penalty 0.0 --presence-penalty 0.0 \
--reasoning on --spec-type draft-dflash --spec-draft-n-max 7 --spec-draft-sampling probabilistic \
--chat-template-kwargs '{"enable_thinking": true, "truncate_history_thinking": false}'3. Apple Silicon MLX (Tool Calling vs DFlash2 Modes)
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 KRAFTON/Raon-1-mini-mlx --local-dir Raon-1-mini-mlx
# Mode A: Use mlx_lm server when tool calling is required (Smoke Monkey Harness, Pi, OpenCode)
python -m mlx_lm server --model Raon-1-mini-mlx --trust-remote-code \
--host 127.0.0.1 --port 8000 --max-tokens 32768 \
--chat-template-args '{"enable_thinking": true, "truncate_history_thinking": false}' \
--decode-concurrency 2 --prompt-concurrency 2
# Mode B: Use bundled raon_mlx_model.py for DFlash2 (~1 GB draft) + two-stage head (208 MB) + reasoning_effort
cd Raon-1-mini-mlx && RAON_HEAD_MODE=on python raon_mlx_model.py serve --host 127.0.0.1 --port 8000Wiring Raon-1 mini into Smoke Monkey Harness, Canvas & Open-Source Agents
Raon-1 mini ships a Jinja ChatML template using <tool_call><function=name><parameter=arg>value</parameter></function></tool_call> blocks and multi-step tool-history reasoning preservation (truncate_history_thinking: false), making it directly compatible with @smoke-monkey/harness, Smoke Monkey Canvas, Hermes Agent, Pi, and OpenCode.
When truncate_history_thinking is kept false, multi-turn agent trajectories retain prior <think> chains across consecutive <tool_response> turns until the next user turn, preventing the model from re-deriving repository invariants after every shell command or file read.
Multi-Agent & Sovereign Workflow Patterns
- Deterministic Verification Loop in Smoke Monkey Harness: Point
createAgentathttp://127.0.0.1:8000/v1withpermission: 'ask-default'. Read-only exploration (read_file,grep,glob,git_diff) executes autonomously across the 6-phase loop (Explore -> Plan -> Edit -> Verify -> Recover -> Complete), while mutating commands wait for operator sign-off. - Adaptive Reasoning Budget per Agent Role: Route architectural planning and root-cause debugging workers on Smoke Monkey Canvas (
npx @smoke-monkey/canvas start) withreasoning_effort: 'xhigh'or'max', and assign rapid file-indexing or classification subagents toreasoning_effort: 'low'or'none'(enable_thinking: false). - Interoperability with Hermes Agent, Pi, and OpenCode: Because vLLM (
--tool-call-parser raon_1) andmlx_lm serverexpose standard OpenAI/v1/chat/completionsschemas, the exact same local endpoint serves Smoke Monkey Harness alongside~/.hermes/config.yaml,~/.pi/agent/models.json, andopencode.json(withcontextWindow: 262144andmaxTokens: 32768; use model IDRaon-1-mini-mlxonmlx_lm server).
Frequently Asked Questions
Q:Can Raon-1 mini run on a single NVIDIA RTX 5090 (32 GB VRAM)?
Yes. The official KRAFTON/Raon-1-mini-nvfp4 checkpoint weighs 17.56 GB (24 MoE shards plus 3.10 GB unquantized layers). Paired with the 1.36 GB DFlash2 draft model and fp8_e4m3 KV cache capped at 3 GiB, it runs at 32K context on a single 32 GB RTX 5090 using KRAFTON's raon vLLM fork and CUDA Toolkit 13.
Q:Why is Raon-1 mini's KV cache only ~8 KiB per token at 262K context?
Raon-1 mini uses a 3:1 hybrid attention layout across 25 layers: 18 layers are Raon Delta Attention (RDA) linear layers with fixed-size recurrent state, and only 7 layers use Gated Multi-Head Latent Attention (MLA) with LoRA ranks 576/512. Only those 7 MLA layers allocate a KV cache (~8 KiB/token in BF16, or ~2.0 GiB total at 262,144 tokens).
Q:How do the six reasoning_effort levels work in Raon-1 mini?
Raon-1 mini supports none, low, medium, high (default), xhigh, and max per request. All tiers except max apply steering vectors bundled with the checkpoint so the prompt stays identical; none closes <think></think> immediately, while max runs unsteered for maximum reasoning depth. Invalid levels return HTTP 400.
Q:What is the difference between mlx_lm server and raon_mlx_model.py serve on Mac?
On Apple Silicon, python -m mlx_lm server supports OpenAI tool calling for agent harnesses like Smoke Monkey Harness, Pi, and OpenCode, but ignores reasoning_effort and does not run DFlash2. Conversely, python raon_mlx_model.py serve enables DFlash2 speculative decoding (~0.97 GB), optional two-stage head (RAON_HEAD_MODE=on), and reasoning_effort, but does not support tool calling.
Q:Why should presence_penalty be 0 for coding and 1.5 for general agent chat?
KRAFTON's sampling guide specifies temperature=1.0, top_p=0.95, top_k=20, and min_p=0 across all tasks, but splits presence_penalty: set 0.0 for coding and math so repeated identifiers, types, and keywords are not penalized, and set 1.5 for chat, summarization, and general tasks to curb repetition loops.
Q:How do I connect Raon-1 mini to Smoke Monkey Harness with MCP tools?
Start vLLM (--tool-call-parser raon_1 --reasoning-parser raon_1), llama-server (--ctx-size 262144), or mlx_lm server on port 8000, then call createAgent in @smoke-monkey/harness with provider: 'openai', baseUrl: 'http://127.0.0.1:8000/v1', model: 'Raon-1-mini', permission: 'ask-default', and your stdio or HTTP MCP servers.
Related Alternatives & Comparisons
Claude Code Runtime Alternative: Open Source Stdio MCP Agent Harness
Openai Codex Alternative Open Source: Free Open Source AI Agent & Runtime (2026)
9 Best Free Open Source ChatGPT Alternatives in 2026 (Self-Hosted & Local)
LangChain TypeScript Alternative: Zero Dependencies & Deterministic Loops
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.