Local & Offline
~9 min readUpdated: November 2026

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

Raon-1 mini 30B-A4B hybrid MoE neural routing core banner showing 18 Delta Attention streams, 7 MLA compression nodes, DFlash2 speculative decoding, and NVFP4 single-GPU support

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Exampleraon-1-mini-agent.ts
raon-1-mini-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Connect Smoke Monkey Harness to a local vLLM, llama-server, or mlx_lm endpoint serving Raon-1 mini
const 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 actions
agent.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);
Video Guides

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,032 intermediate width), followed by sparse MoE blocks containing 128 routed experts (top-6 active) plus 1 shared expert (1,088 expert intermediate width), activating 4.3B parameters per token.
  • MXFP8 Native Weights: The base Hugging Face checkpoint (32.72 GB across 7 safetensors shards) stores 25.67B parameters in F8_E4M3 and 3.11B parameters in BF16 (28,783,231,202 total parameters).
Architectural ParameterRaon-1 mini Specification
Model Type & LicenseSparse Hybrid MoE (raon1_mini), Apache-2.0
Total / Activated Parameters28.8B (28,783,231,202) / 4.3B per token
Decoder Layers25 total (18 RDA linear + 7 Gated MLA, 3:1 ratio)
Hidden Size & Positional Encoding2,560 hidden dim, NoPE (no positional encoding)
Attention Heads & Dimensions40 heads; 128 dim (RDA), 192 QK / 128 V (Gated MLA)
MLA LoRA RanksQuery rank 576 / KV rank 512
MoE Routing & Activation128 routed (top-6) + 1 shared, 1,088 width, SiTU-GLU
Residual & VocabularyRaon-mHC (4 streams), 259,840 vocab, untied LM head
Native Context Window262,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 SuiteRaon-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 Diamond86.083.280.770.886.689.7
AIME 202696.792.987.189.697.598.8
HMMT Feb 202687.184.579.976.988.695.8
MMLU Pro82.785.982.977.783.585.7
AA-Omniscience1.0-7.2-46.6-45.0-0.3-0.5
IFBench84.966.680.988.477.082.4
MultiChallenge64.958.258.454.852.463.6
LiveCodeBench v681.781.283.488.587.479.3
SciCode41.335.639.633.743.844.6
SWE-Verified (mini-SWE-agent)71.063.261.676.074.274.6
Terminal-Bench Lite52.063.352.057.377.067.0
GDPVal72.368.458.863.869.974.3
AutomationBench (public split)39.924.936.230.856.758.7
BrowseComp Plus55.934.832.249.248.358.0
BFCL v4 Overall61.664.765.851.558.772.4
AA-LCR (Long Context)70.769.367.065.780.780.3
Chatbot Korean (internal)92.774.590.666.581.990.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 / ArtifactPrecision / FormatFile SizePrimary Deployment Target
KRAFTON/Raon-1-miniMXFP8 (F8_E4M3 + BF16)32.72 GBDatacenter GPUs (H100/H200/B300) or 32 GB GPU w/ CPU offload
KRAFTON/Raon-1-mini-nvfp4NVFP4 (24 MoE shards + 3.10 GB unquantized)17.56 GBSingle NVIDIA RTX 5090 (32 GB VRAM) w/ vLLM CUDA 13
KRAFTON/Raon-1-mini-gguf (IQ4_XS)IQ4_XS GGUF16.21 GBTight-VRAM 24 GB GPUs via krafton-ai/llama.cpp
KRAFTON/Raon-1-mini-gguf (Q4_K_M)Q4_K_M GGUF19.69 GBBalanced 24 GB+ local GPUs and workstations
KRAFTON/Raon-1-mini-gguf (Q5_K_M / Q6_K / Q8_0)Q5_K_M / Q6_K / Q8_022.18 / 25.84 / 30.69 GB32 GB–48 GB GPUs and high-RAM Unified Memory hosts
KRAFTON/Raon-1-mini-mlxApple Silicon MLX (4 shards + dflash2 + head_stage1)18.73 GBApple M-series Macs (24 GB+ Unified Memory)
KRAFTON/Raon-1-mini-dflash2 / dflash-Q8_0.ggufDFlash2 Speculative Draft Model1.36 GB / 0.73 GBParallel draft verification in vLLM (7 tokens) & llama.cpp

Exact KV Cache & Single-GPU Memory Budget

text
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, and truncate_history_thinking=false (preserves <think> traces inside multi-step tool-calling loops).
  • Task-Dependent `presence_penalty`: Set presence_penalty=0.0 for coding and math (so variable names and symbols are not penalized); set presence_penalty=1.5 for 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)

bash
# 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)

bash
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)

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 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 8000

Wiring 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

  1. Deterministic Verification Loop in Smoke Monkey Harness: Point createAgent at http://127.0.0.1:8000/v1 with permission: '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.
  2. Adaptive Reasoning Budget per Agent Role: Route architectural planning and root-cause debugging workers on Smoke Monkey Canvas (npx @smoke-monkey/canvas start) with reasoning_effort: 'xhigh' or 'max', and assign rapid file-indexing or classification subagents to reasoning_effort: 'low' or 'none' (enable_thinking: false).
  3. Interoperability with Hermes Agent, Pi, and OpenCode: Because vLLM (--tool-call-parser raon_1) and mlx_lm server expose standard OpenAI /v1/chat/completions schemas, the exact same local endpoint serves Smoke Monkey Harness alongside ~/.hermes/config.yaml, ~/.pi/agent/models.json, and opencode.json (with contextWindow: 262144 and maxTokens: 32768; use model ID Raon-1-mini-mlx on mlx_lm server).
Google Search Questions & Answers

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

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness