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
PLATE 1 · TUNED VS STOCK, TOK/S2026-11-29
DECODEDEFAULT (DFLASH2 N 3, Q8_…62.7STOCK 44CEILING 114DECODEDEFAULT AT 128K DEPTH34.6STOCK 24.7PREFILL8K PROMPT, DEFAULT820STOCK 497DECODE · DEFAULT (DFLASH2 N 3, Q8_0 KV,…62.7STOCK 44CEILING 114DECODE · DEFAULT AT 128K DEPTH34.6STOCK 24.7PREFILL · 8K PROMPT, DEFAULT820STOCK 497

TUNED STOCK FLAGS CEILING FROM MEASURED BANDWIDTH

Decode and prefill share no scale; each metric is drawn to its own maximum. Stock means the engine's default flags on the same file.
→Exact file, build and flags

Run it

Serve · from raon-1-mini/ in a clone of the repo
./serve.sh
ModelKRAFTON/Raon-1-mini on Hugging Face · Apache-2.0
WeightsGGUF Q4_K_M (imatrix), 19.69 GB from KRAFTON/Raon-1-mini-gguf
raon-1-mini-Q4_K_M.gguf at 5369b6d7a035
Gated 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.
Enginekrafton-ai llama.cpp fork raon-1-mini at b5547cce7 · CUDA sm_86 build
PlacementEvery 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.
HardwareNVIDIA 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.
APIOpenAI-compatible /v1 (llama-server) on port 8110
Key flagsRA_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
Trap
  • 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.
14Every number links to its line

Measured results

MetricConditionsMeasuredStockCeilingSource line
Decodedefault (DFlash2 n 3, q8_0 KV, 4900 MiB MoE cache), empty context, thinking off, coding answers62.7 tok/s44114RESULTS.md:40
default at 128k depth34.6 tok/s24.7RESULTS.md:41
default at 245.9k depth24.5 tok/sRESULTS.md:42
card's llama-server line, empty context41.6 tok/sRESULTS.md:40
Prefill8k prompt, default820 tok/s497RESULTS.md:43
32k prompt, default655.3 tok/sRESULTS.md:44
247.4k prompt, default227.8 tok/sRESULTS.md:45
Time to first token247.4k prompt, default1,086 sRESULTS.md:45
Needles3/3 exact at 130.6k and 247.4k (50% / 94% of the window)3/3 foundRESULTS.md:46
Qualitycodeeval, thinking off8/8 tasksRESULTS.md:108
codeeval, thinking on (effort low)7/8 tasksRESULTS.md:109
VRAM peakcard total incl. desktop, default11,789 MiBRESULTS.md:47
RAM peakRSS, default20,346 MiBRESULTS.md:48
Startupready, warm page cache, default8-18 sRESULTS.md:49
0Other 3060s

Reproductions

None yet. If you ran this on your own 3060, report your numbers and they appear here with your hardware.

7This recipe stands on

Thanks

→README from the repo

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-server line loads on 12 GB (--fit picks the split) and runs at 41.6 tok/s, 2.4 below stock flags: its presence penalty 1.5 and --reasoning on cost 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_run with GPU_RUN_MEM=44G: --load-mode none reads the experts into ~20 GB of process memory, and the memory cap counts page cache too. Every knob has an RA_* override (see the header of serve.sh).
  • --spec-draft-n-ubatch 128 is 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" of none, low, medium, high, xhigh or max per request. The fork turns it into the template's switch and the model's effort-steering vectors. none turns thinking off. The model's default effort is high.
  • 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

recipe.json · Markdown · Folder with scripts and raw runs · Full results log