Skip to content
VRAM Lab

Raon-1-mini fits 256K context in 24 GB VRAM. Here is why

Pick the right Raon-1-mini quant for 16, 24, and 32 GB GPUs using its ~8 KiB/token 256K MLA cache math, and choose between llama.cpp and krafton-ai/vllm.

8 minutes read Czytaj po polsku

Share
An open desktop workstation on a wooden workbench showing a large multi-slot graphics card and power cabling beside a compact aluminum mini computer in soft workshop light.
An open desktop workstation on a wooden workbench showing a large multi-slot graphics card and power cabling beside a compact aluminum mini computer in soft workshop light. AI-generated illustration
On this page (11)
  1. Key takeaways
  2. Why a 28.8B-A4.3B hybrid MoE behaves differently in VRAM
  3. The ~8 KiB/token KV cache math across 256K context
  4. Sizing quants for 16 GB, 24 GB, and 32 GB GPUs
  5. 16 GB tier
  6. 24 GB tier
  7. 32 GB tier
  8. Navigating the custom raon1_mini branch in llama.cpp
  9. Serving with krafton-ai/vllm and DFlash2 speculative decoding
  10. Practical decision matrix: which quant and server to pick
  11. FAQ

Key takeaways

  • All 28.8B weights stay in VRAM while Raon-1-mini activates 4.3B parameters per token across seven experts.
  • Its 7 Gated MLA layers need only ~2.15 GB of BF16 KV cache at the full 256K context window.
  • Use IQ4_XS or IQ4_NL on 16 GB GPUs, Q4_K_M on 24 GB, and NVFP4 or Q6_K on 32 GB.
  • Run the isolated raon1_mini llama.cpp branch for GGUFs or krafton-ai/vllm for NVFP4 and DFlash2 acceleration.

Running KRAFTON's open-weight Raon-1-mini locally reverses the usual VRAM bottleneck. With most 27B to 30B local models, KV cache growth pushes you off 16 GB and 24 GB cards well before long context. Raon-1-mini keeps its 256K BF16 KV cache around 2.15 GB, so your GPU tier is governed almost entirely by quantization weight size, fixed linear-attention state, and runtime buffers. Software support is the other constraint: stock upstream llama.cpp and wrapper frontends reject the model today, forcing a choice between compiling a custom llama.cpp branch or running krafton-ai/vllm.

Why a 28.8B-A4.3B hybrid MoE behaves differently in VRAM

Raon-1-mini is an Apache 2.0 Mixture-of-Experts model trained from scratch by KRAFTON AI. Although marketed in the 30B-A4B tier, its exact parameter split is 28.8B total and 4.3B active per token, routing each token through 6 routed experts plus 1 shared expert out of 128 routed experts. That split separates memory capacity from per-token compute: VRAM still holds all 28.8B weights, while active arithmetic per token stays close to a 4B to 5B dense model.

Its 25 layers use a 3:1 hybrid attention design built to keep long-context memory flat:

  • 18 Raon Delta Attention (RDA) layers: linear-attention layers (40 heads, head dimension 128) that hold a fixed-size state independent of prompt length.
  • 7 Gated MLA layers: full Multi-head Latent Attention layers (40 heads, 192 QK / 128 V head dimensions, Query/KV LoRA rank 576 / 512) that maintain the growing KV cache.
  • Supporting blocks: hidden size 2,560, NoPE (no positional encoding), SiTU-GLU activations, Raon-mHC 4-stream residual connections, a 12,032-wide dense FFN in layer one, 1,088-wide experts, an untied LM head, and a 259,840-token vocabulary.

Because only 7 compressed MLA layers store per-token history, Raon-1-mini avoids the cache explosion seen in dense 27B models covered in the Qwen3.8-27B GGUF breakdown. It also scales more cleanly at long context than MoE peer Inkling-2-Mini (26.4B-A5.4B). On KRAFTON's reported benchmarks (96.7 on AIME 2026, 87.1 on HMMT Feb 2026, 86.0 on GPQA Diamond, 82.7 on MMLU Pro, 64.9 on MultiChallenge, 55.9 on BrowseComp Plus, and 1.0 on AA-Omniscience) across seven languages (Korean, English, Japanese, Chinese, Spanish, French, and Thai), you get strong reasoning performance in a footprint that stays practical for single-GPU homelabs.

The ~8 KiB/token KV cache math across 256K context

Raon-1-mini supports a native 262,144-token (256K) context window. Only the 7 Gated MLA layers allocate KV cache, at roughly 8 KiB per token (8,192 bytes/token) in BF16:

Context windowToken countBF16 MLA KV cacheDecimal GB
8K8,192~64 MiB~0.07 GB
32K32,768~256 MiB~0.27 GB
64K65,536~512 MiB~0.54 GB
128K131,072~1 GiB~1.07 GB
256K262,144~2 GiB~2.15 GB

As explained in the real GGUF VRAM math guide, weights plus the MLA KV cache are not your entire VRAM bill. You must still reserve space for the 18 fixed-size RDA states, CUDA or Metal runtime contexts, compute scratch buffers during prompt prefill, and any display overhead.

The practical takeaway is clear: unlike dense 27B models where 128K or 256K prompts blow past 24 GB cards, Raon-1-mini's GPU fit is dictated almost entirely by quantization weight size. If the weights fit with roughly 3 to 4 GB to spare, full 256K context is realistic.

Raon-1-mini BF16 KV cache across 256K context

Exact BF16 KV cache growth at 8 KiB/token for the 7 Gated MLA layers; excludes fixed-size RDA state and runtime scratch buffers.

00.511.522.58K32K64K128K256K2.15 GB

Source: KRAFTON/Raon-1-mini model card (~8 KiB/token BF16)

Show data
7 Gated MLA layers (BF16 KV cache)
8K0.07 GB
32K0.27 GB
64K0.54 GB
128K1.07 GB
256K2.15 GB

Sizing quants for 16 GB, 24 GB, and 32 GB GPUs

Matching Raon-1-mini to your hardware comes down to comparing weight size against your card's VRAM ceiling:

QuantizationWeight size16 GB GPU24 GB GPU32 GB GPU
IQ4_XS / IQ4_NL~15 GBTight (~1 GB left)~9 GB left~17 GB left
Q4_K_M18.3 GBOverflows VRAMSafe 256K fit (~5.7 GB left)~13.7 GB left
Q5_K_M20.7 GBOverflows VRAMTight (~3.3 GB left)~11.3 GB left
Q6_K24.1 GBOverflows VRAMOverflows VRAMSafe 256K fit (~7.9 GB left)
NVFP4Targets 32 GBNot targeted (32 GB target)Not targeted (Blackwell 32 GB target)Target RTX 5090 quant
MXFP8~30.5 to 32.5 GBOverflows VRAMOverflows VRAMOn or past 32 GB limit

16 GB tier

On a 16 GB GPU such as an RTX 5060 Ti 16 GB, Q4_K_M (18.3 GB) already overflows VRAM before any context or buffer allocation. Only IQ4_XS and IQ4_NL (~15 GB) fit the weights inside 16 GB, leaving roughly 1 GB of raw headroom. Once you add the 18 fixed RDA states, CUDA contexts, and prefill scratch buffers, that 1 GB margin leaves little room, so cap context conservatively (8K to 32K), keep batch sizes modest (for example -b 512), or offload a few layers to system RAM.

24 GB tier

On a dedicated 24 GB GPU like an RTX 3090, Q4_K_M (18.3 GB) leaves roughly 5.7 GB of headroom. That covers the ~2.15 GB 256K BF16 KV cache while keeping around 3.5 GB for RDA states and runtime buffers on a dedicated card. Moving to Q5_K_M (20.7 GB) drops headroom to roughly 3.3 GB, which gets tight once desktop display usage or unified-memory overhead on a Mac mini M5 Pro 24 GB is factored in. Q6_K (24.1 GB) spills past 24 GB before context is even allocated.

32 GB tier

On a 32 GB RTX 5090, Q6_K (24.1 GB) leaves roughly 7.9 GB for the full 256K KV cache, RDA states, and scratch buffers. KRAFTON also provides an NVFP4 checkpoint specifically targeting single-GPU RTX 5090 inference. MXFP8 (~30.5 to 32.5 GB), by contrast, sits right on or past the 32 GB limit with almost no margin for cache or runtime allocations.

Raon-1-mini weights vs. 16, 24, and 32 GB VRAM

Weight footprints only; reserve extra VRAM for ~2.15 GB 256K BF16 KV cache, fixed RDA states, and inference buffers.

01020304016 GB24 GB32 GBIQ4_XS/NL15 GBQ4_K_M18.3 GBQ5_K_M20.7 GBQ6_K24.1 GBMXFP8 (min)30.5 GBMXFP8 (max)32.5 GB

Source: Topic quantization sizes vs. GPU VRAM tiers

Show data
IQ4_XS/NL15 GB
Q4_K_M18.3 GB
Q5_K_M20.7 GB
Q6_K24.1 GB
MXFP8 (min)30.5 GB
MXFP8 (max)32.5 GB

Standard upstream llama.cpp - even recent builds covered in the llama.cpp v1.1.0 upgrade guide - and wrapper tools like Ollama reject Raon-1-mini today. Until RDA linear attention, Gated MLA, SiTU-GLU, and Raon-mHC 4-stream residuals land upstream, loaders cannot map the tensor graph.

To run IQ4_XS/IQ4_NL, Q4_K_M, Q5_K_M, or Q6_K GGUFs now, compile the custom raon1_mini branch from source (using the repository URL linked from KRAFTON's model card) inside a dedicated directory:

git clone -b raon1_mini <llama-cpp-repo-url> ~/src/llama-cpp-raon1
cd ~/src/llama-cpp-raon1

cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j "$(nproc)"

On Apple Silicon Macs, Metal support is enabled by default in CMake (you can pass -DGGML_METAL=ON explicitly instead of -DGGML_CUDA=ON) and use -j "$(sysctl -n hw.ncpu)" instead of nproc.

Launch llama-server with full GPU offload (-ngl 99) and a context length matched to your headroom (-c 65536 or -c 262144 on 24 GB+ GPUs; -c 16384 or -c 32768 on 16 GB cards):

./build/bin/llama-server \
  -m ~/models/Raon-1-mini-Q4_K_M.gguf \
  -ngl 99 -c 65536 -b 512 \
  --host 127.0.0.1 --port 8080

Inspect the startup log to confirm every layer offloaded to GPU and verify that KV cache and state buffers fit without spilling to host RAM. As noted in the inference server comparison, keep this raon1_mini build in an isolated directory or container alongside your main upstream llama.cpp binary so custom checkouts never break your other local models.

Serving with krafton-ai/vllm and DFlash2 speculative decoding

KRAFTON's krafton-ai/vllm fork beats llama.cpp whenever you need NVFP4 on a 32 GB RTX 5090, tensor-parallel MXFP8 across multi-GPU or larger-VRAM hosts, high-concurrency OpenAI-compatible serving, or agent integrations with Hermes Agent, Pi, and OpenCode.

krafton-ai/vllm also supports DFlash2 speculative decoding. KRAFTON ships a companion DFlash2 draft model to accelerate token generation, but it is not free in VRAM: you must budget the draft model's weights and state inside your remaining VRAM headroom alongside the target weights, MLA KV cache, and RDA state. On a 32 GB RTX 5090, NVFP4 can leave enough headroom to pair with the DFlash2 draft model if your context budget permits, whereas MXFP8 leaves little or no margin on a single 32 GB card.

To keep per-request latency and token budgets predictable in agent loops, set Raon-1-mini's six reasoning effort levels per call (none, low, medium, high, xhigh, max). Avoid max-effort thinking on simple chat turns or routine tool calls, and reserve higher settings for hard debugging or math tasks:

curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "KRAFTON/Raon-1-mini",
    "reasoning_effort": "low",
    "messages": [
      {"role": "user", "content": "Check the failing test output and name the broken assertion."}
    ]
  }'

Check the krafton-ai/vllm repository documentation for the exact server flags used to load the DFlash2 draft model and how your target commit exposes reasoning_effort.

Practical decision matrix: which quant and server to pick

Use these hardware pairings as your default starting point:

Hardware tierQuant choiceServer choicePractical guidance
16 GB GPU (RTX 5060 Ti 16 GB)IQ4_XS or IQ4_NLllama.cpp (raon1_mini)Cap context (8K to 32K) or offload a few layers to RAM
24 GB dedicated GPU (RTX 3090)Q4_K_Mllama.cpp (raon1_mini)Safest full-256K fit; use Q5_K_M only if headless headroom is verified
24 GB unified memory (Mac mini M5 Pro)IQ4_NL or Q4_K_Mllama.cpp (raon1_mini, Metal)Keep context below 256K if desktop apps compete for RAM
32 GB RTX 5090NVFP4 or Q6_Kkrafton-ai/vllm (NVFP4; add DFlash2 if headroom permits) or llama.cpp (Q6_K)Avoid MXFP8 on single 32 GB cards
Multi-GPU / 48 GB+ hostMXFP8krafton-ai/vllmPair with DFlash2 and continuous batching

Once you confirm the model fits your workflow, match the quant to your VRAM ceiling first, isolate the raon1_mini or krafton-ai/vllm runtime from your daily server, and budget ~2.15 GB for the full 256K MLA KV cache alongside the fixed RDA states and runtime buffers.

FAQ

Why does Ollama or upstream llama.cpp fail to load Raon-1-mini?

Raon-1-mini uses Raon Delta Attention (RDA), Gated MLA, SiTU-GLU, and Raon-mHC 4-stream residuals, which are not yet supported in stock upstream builds. Until those tensor types and kernels merge upstream, you need either the custom raon1_mini branch in llama.cpp or the krafton-ai/vllm fork.

Can a 24 GB GPU run Raon-1-mini at the full 262,144-token context?

On a dedicated 24 GB card like an RTX 3090, Q4_K_M takes 18.3 GB and leaves roughly 5.7 GB, which covers the ~2.15 GB 256K BF16 KV cache plus RDA states and runtime buffers. On 24 GB unified-memory systems or Q5_K_M (20.7 GB), OS memory overhead makes full 256K tight.

Should you use MXFP8 or NVFP4 on a single 32 GB RTX 5090?

Choose NVFP4 on krafton-ai/vllm, or Q6_K (24.1 GB) on the raon1_mini llama.cpp branch. MXFP8 weighs roughly 30.5 to 32.5 GB before KV cache, RDA states, or DFlash2 draft weights, leaving little or no margin on a single 32 GB card.

Found it useful? Pass it on.

Share
Esc
↑↓ select↵ openCtrl K or / to search