localairecipes launch configs for local inference

DSV4.1-Flash-1017 + Qwen3.8-Flash-Next EXL3 4x R9700 — Radiance TP4

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by recipe by mikoskinen (github.com/mikoskinen/r9700-exact-serving, results of 15.11.2026)↗, StillDeadcode (Radiance engine, codeberg base 1.15.1 + PR #396)↗, Dyluhn (radiance-exl3 EXL3 routed-expert plugin + QFN EXL3 weights)↗ · listed by localai-recipes

revision r6 · commit 944268ad39 · updated 44 h ago · license CC-BY-4.0

chat code vision rdna4 amd radiance prefix-caching concurrent-sessions community-recipe moe mtp-speculative gfx1201 long-context tensor-parallel dual-model exl3 expert-offload tp4

DeepSeek-V4.1-Flash-1017 EXL3 2.25bpw (sibling Qwen3.8-Flash-Next EXL3 4.05bpw, same host, one model at a time) served by a C++/HIP fork of StillDeadcode/radiance (1.15.1 + PR #396, server 1.17.0) with the Dyluhn radiance-exl3 EXL3 routed-expert plugin, TP4 across 4x AMD Radeon AI PRO R9700 (RDNA4 gfx1201, 32 GB, one card per EPYC root complex) behind a LiteLLM proxy. Byte-identical output solo or beside 32 concurrent requests; DS41 serves 1M-token contexts and keeps 4.2 full 1M sessions in KV. Measured 15.11.2026, stock 300 W: DS41 decode 107.5 prose / 187.4 code tok/s c1, aggregates 247 c4 / 305 c8 / 346 c16 / 415 c32, prefill 4482-6329 tok/s; 210 W -50 mV: 102.7/177.1, 227-378; 210 W prefill re-measured 17.11: 4640-5860. QFN 268.7 c1 to 1344.8 c32 aggregate, prefill 9419-9541 tok/s; 210 W 265-1284. Needs 512 GB host RAM (DS41 pins ~276 GiB, QFN ~166 GiB) + ppfeaturemask/ttm.pages_limit kernel args + host-tuning unit (else decode -15-18%). Recipe by mikoskinen (r9700-exact-serving).

Launch command

docker run -d --name deepseek --init --network host --device /dev/kfd --device /dev/dri --group-add '$(getent group render | cut -d: -f3)' --group-add '$(getent group video | cut -d: -f3)' --security-opt seccomp=unconfined --ulimit memlock=-1 --user '$(id -u):$(id -g)' -v '~/models/ds41-exl3:/models:ro' -v /dev/shm/ds41ng:/ngram -v '$PWD/run/deepseek:/cfg:ro' --env-file run/deepseek/deepseek.env ghcr.io/mikoskinen/r9700-exact-serving:deepseek-d3874235 --model /models/deepseek-v4.1-flash-1017-exl3-2.25bpw.rad --vision-tower-placement ram --served-model-name deepseek-v4.1-flash --host 127.0.0.1 --port 8090 --tp 4 --tp-wire exact --placement expert_tiered --host-pool-mib 19456 --ngram-placement ram=/ngram --max-num-seqs 32 --max-model-len 1048576 --max-num-batched-tokens 4160 --kv-cache-dtype bf16 --checkpoint-interval 2048 --num-speculative-tokens 5 --prefix-cache-mib 86016 --prefix-cache-ttl 28800 --checkpoint-slots 512 --checkpoint-policy keep-all --prefill-span 2 --prefill-interleave 8 --live --draft-window adaptive --draft-coupling on --gpu-headroom-mib 256 '# pre-step: mkdir -p /dev/shm/ds41ng (start writes the 103 GiB n-gram tables there, ready in ~5 min)' '# post-step: run/switches.sh run/deepseek/switches.json (79 runtime switches applied + verified)' '# QFN variant block: see config.runtime.notes (image qwen-4f74a8fa, qwen3.8-flash-next-exl3.rad, max-model-len 262144, kv-cache-dtype fp8, placement all_vram)' '# host setup: gpu02-host-tuning unit + 90-gpu02-numa.conf sysctl + amdgpu.ppfeaturemask=0xffffffff ttm.pages_limit=104857600 + run/power.sh 300|210'

runtime

notes: 'QFN sibling block (README Run it @ 45f442ae, verbatim flags): docker run -d --name qwen --init --network host --device /dev/kfd --device /dev/dri --group-add render/video --security-opt seccomp=unconfined --ulimit memlock=-1 -v ~/models/flashnext-exl3:/models:ro --env-file run/qwen/qwen.env ghcr.io/mikoskinen/r9700-exact-serving:qwen-4f74a8fa --model /models/qwen3.8-flash-next-exl3.rad --served-model-name qwen3.8-flash-next --host 127.0.0.1 --port 8090 --tp 4 --tp-wire exact --tp-wire-min-kb 128 --max-num-seqs 32 --max-model-len 262144 --max-num-batched-tokens 8192 --prefill-span 4 --prefill-interleave 0 --prefix-resume nearest --placement all_vram --gpu-headroom-mib 108 --kv-cache-dtype fp8 --ngram-placement ram --prefix-cache-mib 61440 --prefix-cache-ttl 28800 --checkpoint-slots 512 --checkpoint-policy keep-all --num-speculative-tokens 3 --reasoning-effort medium --reasoning-effort-map high=xhigh --thinking-token-budget 16000 --default-max-tokens 32768; then run/switches.sh run/qwen/switches.json (13 runtime switches applied + verified). Ready in ~2 min. Both models use all four cards, one at a time; server samples by default - send temperature 0 for exact output. Power: sudo run/power.sh 300 (stock columns) or 210 (everyday). QFN Claude Code lane (README 2026-11-16 @ af02c1a2): same image line ghcr.io/mikoskinen/r9700-exact-serving:qwen-30903db6 with --env-file run/qwen/claude-code.env; per-concurrency/context commands 16/32 max-num-seqs × 262144/524288 ctx (yarn:2 rope at 512K, --kv-resident host-RAM variants).'

Use this recipe with your agent

Paste this into any agent chat — it fetches and applies the recipe:

Fetch https://localairecipes.com/api/v1/recipes/dsv4-1-flash-1017-qwen3-8-flash-next-exl3-4x-r9700-radiance-tp4.json and apply the inference recipe it describes (engine flags, model, quant, context) to my setup. Ask before overwriting any existing config.

Or fetch it directly:

curl -fsSL https://localairecipes.com/api/v1/recipes/dsv4-1-flash-1017-qwen3-8-flash-next-exl3-4x-r9700-radiance-tp4.json

Engine

Install note: Serving runs prebuilt ghcr.io/mikoskinen/r9700-exact-serving images (ROCm inside; host needs only the inbox amdgpu driver, /dev/kfd + /dev/dri): Qwen image qwen-4f74a8fa, DeepSeek image deepseek-d3874235 (results of 15.11 ran on predecessor deepseek-5e86593e; 17.11 prefill re-measure on deepseek-d3874235). Engine code = this repo's deepseek/, qwen/ and exl3/ branches (fork of StillDeadcode/radiance 1.15.1 + PR #396 at server version 1.17.0, keeping 1.x flag-grammar serving; the StillDeadcode 2.0.0 YAML-config break does not apply) with the radiance-exl3 EXL3 routed-expert plugin built 4a67be32/6e9a897. One model at a time on port 8090. Host: gpu02-host-tuning systemd unit + 90-gpu02-numa.conf sysctl + run/power.sh 300|210. Weights: hf download of the two EXL3 repos (see artifacts).; QFN Claude Code lane @ af02c1a2: image qwen-30903db6 + run/qwen/claude-code.env

Model

Context

  • max context: 1M tokens

KV pool

  • 4,380,530 tokens across concurrent requests

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
1,0241—107.5 tok/s—reported
1,0244—247.2 tok/s—reported
1,0248—304.7 tok/s—reported
1,02416—345.6 tok/s—reported
1,02424—374.8 tok/s—reported
1,02432—414.7 tok/s—reported
2,0481—268.7 tok/s—reported
2,0484—635 tok/s—reported
2,0488—849.4 tok/s—reported
2,04816—1122.6 tok/s—reported
2,04824—1249.1 tok/s—reported
2,04832—1344.8 tok/s—reported
10,2401—187.4 tok/s—reported
15,536—9419 tok/s—1650 msreported
15,777—4640 tok/s—3400 msreported
53,800—9541 tok/s—5640 msreported
65,650—5799 tok/s—11320 msreported
119,540—9395 tok/s—12720 msreported
131,137—5808 tok/s—22580 msreported
137,135—5860 tok/s—23400 msreported
262,14416—69.2 tok/s—reported
262,14424—53 tok/s—reported
262,14432—41.9 tok/s—reported
524,28816—72.6 tok/s—reported
524,28824—55.7 tok/s—reported
524,28832—29.9 tok/s—reported

prefill = prompt processing · decode = generation. All decode/prefill figures are shown as reported.

reported

notesAll figures submitter-T0, README results matrix + DETAILS.md per-number sources @ 45f442ae (results of 15.11.2026), 210 W prefill cells re-measured @ c1492d6 (17.11.2026, README + DETAILS). Points carry the stock 300 W column; every point's notes give the 210 W -50 mV counterpart (everyday setting via run/power.sh 210). Aggregate rows count generated tokens over all concurrent requests on the fixed-schedule mb harness (fixed prompts, gens windows, means after discarded warm-ups); decode c1 split prose/code for DS41. Prefill rows are prompt tokens / TTFT from one cold read after a prefix-cache reset; cards cooled to <=45 C before each section. DS41 prefill rows carry the 17.11 re-measure (image deepseek-d3874235 + prefill switches); 15.11 values kept in the point notes. Batch-invariance: 160/160 DS and 100/100+48/48 QFN identity probes byte-identical alone and beside up to 32 streams. QFN rows share this recipe (dual-model submission); its launch and weights are in config.runtime.notes and artifacts. Both models listen on port 8090, one at a time. The six 2026-11-16 Claude Code simulation rows are the author Qwen-for-Claude-Code table @ af02c1a2: per-stream decode on follow-up turns (15-turn temperature-0 sessions) — a distinct posture from the aggregate mb rows above, not comparable.

Install requirements

NVIDIA driver floor: unknown - check the image tag

Source: NVIDIA CUDA Toolkit Release Notes - driver compatibility tables (https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/, fetched 2026-10-03).

Map the placeholders to your rig

Downloads

Revision notes

r1 (2026-11-16): submitted from lar-scout ingest card t_7ed263ad (sweep 2026-11-16); source github.com/mikoskinen/r9700-exact-serving @ 45f442ae5bf8038d5869bb072e042673f9eea5cc (HEAD main, ls-remote + fresh clone at ingest). Engine lineage: C++/HIP fork of StillDeadcode/radiance 1.15.1 + PR #396, server version 1.17.0 per CMakeLists @ qwen/current; engine branches deepseek/current @ 71d613a1, qwen/current @ 19862d6a, exl3/current @ ce9e7a6d (builds of 15.11.2026). CARD CORRECTIONS: (1) QFN weights live at Dyluhn/qwen3.8-flash-next-exl3 (prebuilt 120.5 GB .rad, sha256 187ae818..26f) - the card's turboderp Qwen3.8-Flash-Next-exl3 4.05bpw branch is the quant SOURCE, not the served file; (2) slug_candidate 79 chars > 64 cut - title re-worded to 63-char slug; (3) the 11-15 Radiance 2.0.0 CLI-grammar break (qwen3-8-flash-next-fp8-iq4r r2) no effect here: the fork keeps 1.x flag-grammar serving at 1.17.0 and pins its own image state. DS41 results columns ran on image deepseek-5e86593e (id cbea3b0178df); README @ pin points at successor deepseek-5f60dee1 (adds --vision-tower-placement ram; KV 4,380,530 vs results-start 4,427,562) - launch transcribed from the @ pin block, kv_pool_tokens = the @ pin start's 4,380,530. Numbers are submitter-T0 (method + identity/soak evidence in performance notes and DETAILS.md [S1]-[S20]); context_len 1024/2048 aggregate rows are tuple markers; prefill rows carry real prompt lengths. QFN has no second model row (single-model schema) - its weights repo, launch and matrix live in artifacts + config.runtime.notes. HF verified live at ingest: mikoskinen -rad sha 57e019d8 (lastModified 2026-11-15T21:55Z), Dyluhn qfn sha 5e0ecc37. GHCR fetched at ingest: qwen-4f74a8fa = sha256:25d00d1e8131fdefb6af64919e7f0d3942313c1c0adb2f95766840d6b133ef1b (== DETAILS' stated results image), deepseek-5f60dee1 = sha256:9c1846fa4eacf0b1bbcd030fa9e25d1cb3b2d03fdc2557a03a6240abbb5cbac8. 2026-11-19 revision r2: repo pin bumped 45f442ae→af02c1a2 after re-validation (8 commits dated 2026-11-16 — Qwen-for-Claude-Code README section + per-concurrency commands, run/qwen/claude-code.env NEW, prose edits; launch argv unchanged pin→HEAD). The six-row Qwen-for-Claude-Code serving table (README @ af02c1a2) ingested verbatim as a distinct decode posture with KV/preemption/TTFT columns in point notes. HF sidecars 57e019d8 / 5e0ecc37 and GHCR digests qwen-4f74a8fa sha256:25d00d1e… / deepseek-5f60dee1 sha256:9c1846fa… re-verified live at write. Upstream moved past af02c1a2 on 2026-11-17 (deepseek-lane commit c1492d6 — separate delta, not this recipe). 2026-11-19 revision r3: deepseek-lane bump af02c1a2→c1492d6 (17.11). pinned_commit c1492d6de6a; image_digest switched qwen image sha256:25d00d1e… → deepseek-d3874235 sha256:278c3335… (registry-verified 2026-11-19; README Run it image @ c1492d6, built from d3874235 ∈ deepseek/current @ 081a7e44, server 1.17.0 unchanged). artifacts[3] deepseek pin → d3874235/digest, artifacts[4] reference → c1492d6 (HEAD 2026-11-19 ls-remote; deepseek/current 081a7e44, qwen/current 3a1d6b36, exl3/current ce9e7a6d). DS41 prefill points: 210 W -50 mV cells now the 17.11 re-measure (16k 4640/TTFT 3400, 64k 5799/11320, 128k 5808/22580, cold 5860/23400; 15.11 values kept in point notes), 300 W columns untouched; prefill switches (ds41_bi 6→7, ds41_shexp_lane 0→2, stage_pick 0→1, stage_short 0→1025; new sched_tail_inner, stage_lone). Launch argv unchanged except image tag → deepseek-d3874235. run/qwen/switches.json 14→41 2026-11-22 c89e403db4e1→1d07b122b9ed,qwen.env same,unadopted(reg-gated); sched_bi_chunk 6→5 sole OPEN HELD OUT,QW-L371-f needs-check(rows@6); ar_laneblocks*/ar_lanethreads* REJECTED QW-L89/L47/L382-a/L384-a,0-reg added keys old,moe_pair PARKED old; qwen-7d70dccc sha256:af91e2ae UNTESTED manifest-only never-pulled,hero runs radiance-local:qfn-ff94ef27 sha256:be5001de,HOLD qwen-4f74a8fa; perf 0-move,pin c1492d6de6a,radiance held;TP8 t_61ca8c4f. 26 submitter points resupplied, no carry loss.

Revision history

Fork

Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.

Export

recipe.yaml (raw)