Raon-1-mini 30B-A4B with experts in RAM and KRAFTON's DFlash2 drafter19.69 GB of Q4_K_M (imatrix) on 12 GB
KRAFTON's 30B-A4B hybrid MoE (Q4_K_M, 19.7 GB) on their llama.cpp fork with the full 262k window: every routed expert in RAM, a 4900 MiB MoE cache, q8_0 KV and the DFlash2 drafter at 3 tokens. 62.7 tok/s decode (stock 44.0), 34.6 at 128k, needles exact at 247k.
- Decode · default (DFlash2 n 3, q8_0 KV, 4900 MiB MoE cache), empty context, thinking off, coding answers
- 62.7tok/sstock 44
- Prefill · 8k prompt, default
- 820tok/sstock 497
- Context
- 262k tokens
- VRAM peak
- 11,789MiB
TUNED STOCK FLAGS CEILING FROM MEASURED BANDWIDTH
Run it
./serve.sh
| Model | KRAFTON/Raon-1-mini on Hugging Face · Apache-2.0 |
|---|---|
| Weights | GGUF Q4_K_M (imatrix), 19.69 GB from KRAFTON/Raon-1-mini-ggufraon-1-mini-Q4_K_M.gguf at 5369b6d7a035Gated repo (access on request). Drafter: dflash-raon-1-mini-Q8_0.gguf (0.73 GB) from the same repo. Needs KRAFTON's llama.cpp fork. |
| Engine | krafton-ai llama.cpp fork raon-1-mini at b5547cce7 · CUDA sm_86 build |
| Placement | Every routed expert in RAM with llama.cpp's MoE cache holding hot experts in 4900 MiB of VRAM; attention, shared experts, LM head, the q8_0 KV cache (7 MLA layers) and the DFlash2 drafter on the GPU. |
| Hardware | NVIDIA GeForce RTX 3060 12 GB · 62 GB RAM · Intel Core i5-12500 · NVMe SSD The desktop is on the same card (about 1 GB). Weights are read into ~20 GB of process memory; the memory cap was 44 GB. |
| API | OpenAI-compatible /v1 (llama-server) on port 8110 |
| Key flags | RA_PROFILE=default|nospec|prompt|stock|card --cpu-moe --moe-cache-mib 4900 --load-mode none --spec-type draft-dflash --spec-draft-n-max 3 --spec-draft-n-ubatch 128 -ctk q8_0 -ctv q8_0 -ub 1024 -c 262144 reasoning_effort none|low|...|max per request |
- Quant drift is not measured: no Q8_0 or BF16 reference fits on disk.
- The card's drafter setting (7 draft tokens) is 38% slower than no drafter when experts are in RAM; this recipe uses 3.
- A prompt near the top of the window takes about 18 minutes to the first token (228 tok/s at 247k).
- Upstream llama.cpp lacks the release file's reasoning-effort steering; the recipe depends on KRAFTON's fork.
- Decode on the default read 58.5-61.2 tok/s on a busier host; 62.7 is the quiet-host repeat.
Measured results
| Metric | Conditions | Measured | Stock | Ceiling | Source line |
|---|---|---|---|---|---|
| Decode | default (DFlash2 n 3, q8_0 KV, 4900 MiB MoE cache), empty context, thinking off, coding answers | 62.7 tok/s | 44 | 114 | RESULTS.md:40 |
| default at 128k depth | 34.6 tok/s | 24.7 | RESULTS.md:41 | ||
| default at 245.9k depth | 24.5 tok/s | RESULTS.md:42 | |||
| card's llama-server line, empty context | 41.6 tok/s | RESULTS.md:40 | |||
| Prefill | 8k prompt, default | 820 tok/s | 497 | RESULTS.md:43 | |
| 32k prompt, default | 655.3 tok/s | RESULTS.md:44 | |||
| 247.4k prompt, default | 227.8 tok/s | RESULTS.md:45 | |||
| Time to first token | 247.4k prompt, default | 1,086 s | RESULTS.md:45 | ||
| Needles | 3/3 exact at 130.6k and 247.4k (50% / 94% of the window) | 3/3 found | RESULTS.md:46 | ||
| Quality | codeeval, thinking off | 8/8 tasks | RESULTS.md:108 | ||
| codeeval, thinking on (effort low) | 7/8 tasks | RESULTS.md:109 | |||
| VRAM peak | card total incl. desktop, default | 11,789 MiB | RESULTS.md:47 | ||
| RAM peak | RSS, default | 20,346 MiB | RESULTS.md:48 | ||
| Startup | ready, warm page cache, default | 8-18 s | RESULTS.md:49 |
Reproductions
None yet. If you ran this on your own 3060, report your numbers and they appear here with your hardware.
Thanks
- KRAFTON AI The model, the GGUF file and the drafter the Raon-1-mini recipe serves.
- krafton-ai/llama.cpp (raon-1-mini branch) The engine of the Raon-1-mini recipe (upstream llama.cpp has the preview architecture but not the release file's steering vectors).
- z-lab Measured against MTP on the 3D coder: fastest while writing code (163 tok/s), not used because acceptance falls to 4-7% while reasoning.
- llama.cpp (ggml-org and contributors) The engine for Flint, the 3D coder and Inkling-2-Mini, and the base of the Kintsugi fork.
- ggml-org Flint-Q4_K_M.gguf and Inkling-2-Mini-IQ4_NL.gguf are the files the two recipes serve; the Q8_0 files are the KLD references.
- Hugging Face Every model, quant and drafter in these recipes is fetched from the Hub at a pinned revision and checked against the API's sha256; the base model's MTP tensors were fetched with HTTP range requests.
- 0xSero / Sybil Solutions The tuning method behind the Flint and Inkling recipes; its q8_0 KV gotcha is one we confirmed on Flint.
Full write-up
Serving KRAFTON/Raon-1-mini on the RTX 3060 12 GB with KRAFTON's llama.cpp fork. It is a 30B MoE with ~4B active per token (128 routed experts, 6 active, plus one shared expert), 25 layers: 18 Raon Delta Attention layers (a linear-attention variant with a fixed-size state) and 7 gated-MLA full-attention layers, four mHC residual streams, a 259,840-token vocabulary and a 262k window. The weights are KRAFTON's own Q4_K_M GGUF (19.7 GB), and KRAFTON ships a DFlash2 draft model next to it.
- The Hugging Face repos are gated: access is granted on request (the licence is Apache-2.0).
- It needs KRAFTON's fork (krafton-ai/llama.cpp, branch
raon-1-mini). Upstream llama.cpp has the preview architecture but not the release file's reasoning-effort steering, the fused mHC/SiTU kernels or the DFlash2 target hooks.
The 19.7 GB file does not fit in 12 GB, so experts live in RAM. This recipe is about three things:
- where the experts go. Every routed expert stays in RAM, and 4.9 GB of the card holds llama.cpp's MoE cache of
the hot ones. That beats --fit's static split by 16% without the drafter (THEORY.md).
- the drafter's length. KRAFTON's card runs DFlash2 with 7 draft tokens. With experts in RAM that is 38% slower
than no drafter: each verify batch reads the union of every token's experts from RAM. Three draft tokens are
+14% at empty context and +42% at 128k, where the verify batch shares one pass over the attention cache.
- the whole window works. Only 7 layers keep a KV cache (576 values per token), so 262k at q8_0 is 1.1 GB.
Needles come back exact at 131k and 247k.
Numbers and quality are in RESULTS.md. The experiment log is PLAN.md, the ceilings are in
THEORY.md, and the raw data is in runs/.
Result
| Single user, 262k window | Stock llama.cpp --fit (same fork) |
This recipe |
|---|---|---|
| Decode, coding answer | 44.0 tok/s | 62.7 tok/s (1.43×) |
| Decode at 128k context | 24.7 tok/s | 34.6 tok/s (1.40×) |
| Decode at 245k context | not measured | 24.5 tok/s |
| Prefill, 8k prompt | 497 tok/s (16 s to first token) | 820 tok/s (10 s, 1.65×); 1,186 with RA_PROFILE=prompt |
| Prefill, 32k / 131k / 247k prompt | not measured | 655 / 353 / 228 tok/s (49 s / 6.2 min / 18 min) |
| Needles at 131k / 247k (50% / 94% of the window) | not run | 3/3 / 3/3 |
| codeeval, thinking off / on | 8/8 / 7/8 (effort low) | |
| Card / RAM | 10.96 GB / 21 GB | 11.7 GB / 20 GB (25–34 GB with page cache) |
- A prompt near the top of the window takes about 18 minutes to the first token (247k tokens at 228 tok/s). Prefill is attention-bound at depth: 820 tok/s at 8k, 353 at 131k. Plan long sessions around the prefix cache.
- The model card's own
llama-serverline loads on 12 GB (--fitpicks the split) and runs at 41.6 tok/s, 2.4 below stock flags: its presence penalty 1.5 and--reasoning oncost a little. - 62.7 tok/s is 77% of the practical ceiling (81.8 tok/s, every expert in VRAM, which does not fit) and 55% of the bandwidth ceiling. Without the drafter the best is 55 tok/s.
- Repeated runs of the default on a busier host gave 58.5–61.2 tok/s (five controls in PLAN rows 13–16).
Which config
RA_PROFILE= |
KV | MoE cache | ubatch | Drafter | Decode empty / at 128k | Prefill 8k | Use |
|---|---|---|---|---|---|---|---|
default |
q8_0 | 4900 MiB | 1024 | DFlash2 n 3 | 62.7 / 34.6 | 820 | everything |
nospec |
f16 | 5000 MiB | 1024 | none | 51.1 / 26.7 | 917 | prompt-heavy work with short answers |
prompt |
f16 | 4200 MiB | 2048 | none | 47.1 / not measured | 1,186 | long documents read once (RAG, agents reading files) |
stock |
default (f16) | none | 512 | none | 44.0 / 24.7 | 497 | the baseline |
card |
default | none | 512 | none | 41.6 / not measured | 493 | the GGUF card's line, verbatim |
nospec and prompt numbers come from the tuning runs (PLAN rows 3, 3/4 deep, 10), not from the qualification batches.
Use it
# 1. weights (gated repo: request access first; pinned in ../notes/batch2/downloads.tsv) # KRAFTON/Raon-1-mini-gguf @ 5369b6d7 -> $MODELS/raon-1-mini/krafton/ # raon-1-mini-Q4_K_M.gguf (sha256 38e9910c…), dflash-raon-1-mini-Q8_0.gguf (sha256 7ddb4223…) # 2. engine: krafton-ai/llama.cpp branch raon-1-mini @ b5547cce7, CUDA build (tools/build.sh) # -> $SCRATCH/llama.cpp/krafton-raon-b5547cce7/bin # 3. serve (through gpu_run, OpenAI-compatible on 127.0.0.1:8110, model name raon-1-mini) ./serve.sh # default: experts in RAM + 4900 MiB cache, q8_0 KV, DFlash2 n 3, 262k RA_PROFILE=nospec ./serve.sh # no drafter, f16 KV, cache 5000 RA_PROFILE=prompt ./serve.sh # ub 2048 for long prompts RA_THINK=0 ./serve.sh # thinking off unless a request asks for an effort RA_PRESENCE=1.5 ./serve.sh # the card's chat setting (default 0, the card's coding setting)
The launch line serve.sh runs:
llama-server -m raon-1-mini-Q4_K_M.gguf -ngl 99 --cpu-moe --fit off -c 262144 -np 1 -fa on --jinja \ --moe-cache-mib 4900 --load-mode none -ctk q8_0 -ctv q8_0 -ub 1024 \ --spec-draft-model dflash-raon-1-mini-Q8_0.gguf --spec-type draft-dflash --spec-draft-n-max 3 \ --spec-draft-sampling probabilistic --spec-draft-ngl all --spec-draft-n-ubatch 128 \ --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0
- It runs under
gpu_runwithGPU_RUN_MEM=44G:--load-mode nonereads the experts into ~20 GB of process memory, and the memory cap counts page cache too. Every knob has anRA_*override (see the header ofserve.sh). --spec-draft-n-ubatch 128is required: at the main ubatch of 1024 the drafter's LM-head logits buffer is 1,081 MiB and the server fails to start.- Thinking: send a top-level
"reasoning_effort"ofnone,low,medium,high,xhighormaxper request. The fork turns it into the template's switch and the model's effort-steering vectors.noneturns thinking off. The model's default effort ishigh. - Sampling follows the card: temperature 1.0, top-p 0.95, top-k 20, presence 1.5 for chat and 0 for coding and math. Presence 1.5 lowers the drafter's acceptance a little (−8% decode, PLAN row 16).
Tools
| Tool | What it does |
|---|---|
serve.sh |
the launcher: profile, placement, cache, KV, ubatch, drafter; holds the GPU lock while serving |
tools/build.sh |
builds the fork in its own worktree and build directory (same flags as the shared r2 build) |
tools/run.sh <label> <mode> [args] |
one server start/stop through ../scripts/with_server.sh on port 8110, then tools/gate.sh |
tools/gate.sh |
one test mode: speed, speedpp, deep, pp, needles, code, refusal, quality, load; logs host load, RSS, cgroup peak and VRAM to runs/ledger.jsonl |
tools/srvtest.py |
speed, prefill and needle client (llama-server's own timings, drafter acceptance; from ../maxwell-v1-flash/, switched to top-level reasoning_effort) |
tools/batch.sh |
one GPU-lock hold per batch file (GPU_RUN_MEM=44G) |
tools/lbench.sh |
llama-bench on the fork, inside a batch |
tools/gguf_info.py |
GGUF header and tensor summary (runs/gguf-info-*.txt) |
Credits
- KRAFTON AI (X, krafton.ai), for Raon-1-mini (Apache-2.0), its Q4_K_M GGUF, the DFlash2 drafter and the llama.cpp fork with Raon-1 support and effort steering.
- z-lab, for DFlash, the block-draft method the drafter uses.
- llama.cpp and ggml-org, for the engine the fork builds on,
--cpu-moe, the MoE cache,--load-mode, speculative decoding andllama-bench. - The sibling recipes
../maxwell-v1-flash/(tools and the MoE-cache layout) and../inkling-2-mini/(layout and the needle client). - The tuning method comes from 0xSero's inference-optimisation-skill: ceilings first, one change at a time between controls, output gated as well as speed.
recipe.json · Markdown · Folder with scripts and raw runs · Full results log