localairecipes launch configs for local inference

DeepSeek-V4.1-Flash-1017 dsx 2.6-bit GPTQ 2x RTX 3090 (Engram)

00 upvotes — sign in to vote sign in to vote

community Community submission — verify on your own hardware.

recipe by lxe (dsx engine + 2bit reference quant)↗, icecubetr (2.6-bit GPTQ quant + measurements)↗, deepseek-ai (DeepSeek-V4.1-Flash-1017 checkpoint)↗, Lucebox (1017 eval set)↗, engine published calibration set (calib4, T16 v1 release): lxe/dsx-calibration↗ · listed by localai-recipes

revision r5 · commit 14b16cc533 · updated 3 d ago · license MIT

chat code 3090 custom-engine cpu-experts gptq hybrid-experts engram dsx exact-routing

DeepSeek-V4.1-Flash-1017 (552B MoE + 196B Engram) quantized to 187.6 GB single GGUF (2.6127 bpw routed-expert average: 5717 PTQ1_0 / 2545 Q2_0 / 7098 Q3_K per-expert GPTQ with allocator-spent bit budget; dense Q8_0 attention/shared expert/head, F16 embedding/compressor/indexer/Engram-wkv, F32 norms/router/mHC), served by dsx, a Rust+CUDA engine built for this checkpoint, on two RTX 3090s with 192 GB RAM. ~26 tok/s decode / ~170 tok/s prefill at --ctx 262144 with all 15,360 routed experts resident. Exact routing: no expert pruning, no router bias - the rank file orders placement only. Engram n-gram tables (~203 GB) are NOT quantized: read at runtime from the official safetensor shards by a prefetch thread. Hottest ~3,300 experts in VRAM across both GPUs (GPU0's set adapts to the conversation, DSX_ADAPT=8 swaps/token), remaining experts computed on 14 CPU threads from a hugepage RAM arena. Quality vs FP8/FP4 teacher (dsx eval, Lucebox 1017 set): KL 0.1972, top-1 82.59%, PPL 9.3626.

Launch command

'hf download icecubetr/DeepSeek-V4.1-Flash-1017-dsx-2.6bit --local-dir dsx-2.6bit' 'hf download deepseek-ai/DeepSeek-V4.1-Flash-1017 --local-dir v41-1017 --include model.safetensors.index.json model-00047-of-00048.safetensors model-00048-of-00048.safetensors tokenizer.json' 'CUDA_ARCHS=86 cargo build --release -p dsx --features cuda' './target/release/dsx-server --model dsx-2.6bit/DeepSeek-V4.1-Flash-1017-dsx-2.6bit.gguf --engram v41-1017 --tokenizer v41-1017/tokenizer.json --host 0.0.0.0 --port 8090 --ctx 262144 --chunk 4096 --gpu0-gb=-1.0 --gpu1-gb=-1.0 --arena-gb 120 --rank dsx-2.6bit/expert-rank.json --vision dsx-2.6bit/vision.safetensors'

runtime

env: "Placement flags: --gpu0-gb/--gpu1-gb = GB of experts per GPU (negative = all free VRAM minus that; --gpu1-gb 0 for one GPU); --arena-gb = RAM for CPU-computed experts; --rank = expert hotness order (expert-rank.json from the quant repo); --vision / --no-vision; DSX_ADAPT=N = GPU0 expert swaps per token (default 8, 0 = static). 192 GB box uses --gpu0-gb=-1.0 --gpu1-gb=-1.0 --arena-gb 120 (the 2.6-bit card's sizing); 128 GB: --gpu0-gb=-1.5 --gpu1-gb=-1.0 --arena-gb 110. Thinking on by default; reasoning_effort:none or thinking:{type:disabled} turns it off. The launch line above is the quant card's own run command (--ctx 262144); --ctx 1048576 is the model's full 1M but lower it unless you need it. Multi-session serving (dsx aa2dc5c6, additive defaults): --cache-sessions N>1 keeps N conversation lineages, parking inactive ones in a bounded host cache with LRU eviction so A->B->A resumes instead of re-prefilling from token 0; --session-cache-gb X sets the hard host-cache budget in decimal GB (default 8, ignored by --cache-sessions 1); --prefix-anchor-tokens N sets the sparse prefix-anchor interval in prompt tokens (default 16384, 0 disables) so a new session sharing a long system/tools prefix replays only its divergent tail. Prompt-boundary checkpoint history is always on since 27df47e (up to 8 checkpoints, nvidia/src/server/prefix.rs MAX_PROMPT_CHECKPOINTS; an exact retry replays nothing). Startup refuses --arena-gb + --session-cache-gb + 8 GB headroom exceeding available RAM (on this 192 GB box --arena-gb 120 + the 8 GB default fits). Rank calibration alternative: run the server once with DSX_LOG_ROUTES=/path/routes, stop it gracefully, then python3 quant/rank_from_routes.py --calib /path/routes --out rank.json --stats rank-stats.json (defaults layers 40 / experts 384 / picks 6; --single-token-only for coding workloads) and serve with --rank rank.json -- there is no server-side --rank-from-log flag. Debug: DSX_TIMING_LOG=1 logs per-request prefill/decode/CPU counters; with DSX_EVPROF also set it adds CUDA-event stage deltas. This quant GGUF uses PTQ1_0/Q2_0/Q3_K expert blocks, not Q2_K/IQ3_XXS; the native decode path matters for mixed GGUFs like UD-IQ2_XXS exports. New server flags since c3cd33a (additive defaults; deliberately NOT in the launch line above): --overlay PATH (env DSX_OVERLAY) lays a small GGUF of replacement tensors over the model at load (docs/overlays.md) -- the published uncensored overlay targets the T16 model, and its dsx.overlay.base check refuses a mismatch, so as published it does not load against this 2.6-bit GGUF (a custom overlay via quant/overlay_gguf.py would be needed first); --vision-max-tokens N (env DSX_VISION_MAX_TOKENS) caps tokens per image (default 1024 = DeepSeek vision_max_n_token, minimum 4): larger images scale down to fit, higher keeps detail but goes past what the model was tuned on."

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/deepseek-v4-1-flash-1017-dsx-2-6-bit-gptq-2x-rtx-3090-engram.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/deepseek-v4-1-flash-1017-dsx-2-6-bit-gptq-2x-rtx-3090-engram.json

Engine

Install note: Source build: clone github.com/lxe/dsx, CUDA_ARCHS=86 cargo build --release -p dsx --features cuda (no release tags; in-repo multi-backend Dockerfile, no published image; MIT). Weights: hf download icecubetr/DeepSeek-V4.1-Flash-1017-dsx-2.6bit (187.6 GB single GGUF + vision.safetensors + expert-rank.json). Engram+tokenizer from deepseek-ai/DeepSeek-V4.1-Flash-1017: --include model.safetensors.index.json model-00047-of-00048.safetensors model-00048-of-00048.safetensors tokenizer.json. Needs 2x 24 GB (sm_86; sm_89/sm_120 build too; sm_70 V100 via CUDA_ARCHS=70), ~140 GB VRAM+RAM, x86 AVX2 (VNNI preferred), ~350 GB disk. Source builds pin target-cpu=native (build on the run machine); CI/Docker build x86-64-v3 (VNNI/AVX-512 kernels dispatch at run time). Native Q2_K/IQ3_XXS expert decode since aa2dc5c (GGUF types 10/18; CPU + CUDA fast store; format-triggered, no flag; DSX_OLD_MOE=1 rejects them). OpenAI /v1 + Anthropic /v1/messages + web UI on :8090.

Model

Context

  • max context: 256K tokens

Performance

Speed by context

ContextConc.PrefillDecodeTTFT
262,144—170 tok/s——reported
262,1441—26 tok/s—reported

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

reported

notesclaimed_by=submitter T0 (quant author's own box: 2x RTX 3090, 192 GB RAM, --ctx 262144, all 15,360 experts resident): ~26 tok/s decode, ~170 tok/s prompt processing. Quality via dsx eval on Lucebox/DeepSeek-V4.1-Flash-1017-ROCMFP-GGUF eval set (8x1024 held-out tokens; KL/top-1 vs FP8/FP4 teacher top-256 log-probs): KL 0.1972, top-1 82.59%, PPL 9.3626, NLL 2.236722 over 8,184 tokens. Comparators, same set: FP8/FP4 teacher KL 0 / 100% / 8.56; Lucebox ROCMFP 2.5 bpw KL 0.253 / 78.7% / 9.78; engine author's 2.03 bpw (lxe/dsx-2bit, 128 GB box, 30-37 tok/s decode) KL 0.462 / 71.5% / 11.66.

Downloads

Revision notes

Community ingest surfaced via r/LocalLLaMA 2026-10-19 (quant author's release thread; not re-verified from .55 - Reddit hard-403). Ingest corrections vs scout card: launch argv re-transcribed at dsx HEAD 971c072 (README quickstart + icecubetr model card Run section); quant ships a SINGLE GGUF named DeepSeek-V4.1-Flash-1017-dsx-2.6bit.gguf (card's 00001-of-00004 shard name belongs to the 2-bit sibling), --chunk 4096 and --vision added per the quant card, placement flags follow the quant card's 192 GB sizing. Card said 'speculative' tag: DSpark exists in dsx core but is wired only into the offline runner (nvidia/src/main.rs), FINDINGS.md section 9 lists speculative decoding as a negative result (off in serving) - tag dropped. Engine source_type=release (built from the git repo, but engine_source.type mirrors the submission enum, not 'git'). All numbers claimed_by=submitter T0; import via POST /api/v1/benchmarks to upgrade. amd/ MI325X runner (110-114 tok/s @256K, MXFP4, KL 0.049) is a deliberate SEPARATE candidate - not folded into this card. Revision 2026-11-02 (t_3ab63ebd, owner-gated): engine pin bump 98f1259732 -> aa2dc5c6b12 (HEAD; 12 commits in 11-01/02 window) after reading the arg parser at aa2dc5c6 (nvidia/src/bin/server.rs) - no flags invented. Documents: bounded multi-session prompt cache #24 (--cache-sessions / --session-cache-gb / --prefix-anchor-tokens, docs/server.md); prompt-boundary checkpoint history #22 (always-on, max 8); DSX_TIMING_LOG per-request timing #14; native Q2_K/IQ3_XXS expert decode #12 (format-triggered, no flag - this recipe's GGUF formats and all perf/quality numbers are unchanged, same weights rev 70794f81); rank_from_routes.py calibration CLI #13 (the scout card's '--rank-from-log' is not a real flag: DSX_LOG_ROUTES env + quant/rank_from_routes.py + --rank); CI builds for x86-64-v3 while source builds stay target-cpu=native (269726e). V100/SM70 (#19) noted only as a CUDA_ARCHS=70 build variant; not a separate card family. Revision 2026-11-06 (t_a6d7c68b, owner-approved Option B): engine pin bump aa2dc5c6b12c -> c3cd33aeb36a (5 commits in the 11-02 window: overlay GGUFs b06f6b7, quant/overlay_gguf.py + uncensored overlay docs 528fc55/fcbcf10, --rank error-message e624413, --vision-max-tokens c3cd33a; all additive, arg parser read at the new pin - no flags invented). Documented as prose-only additions to config.runtime.env; launch argv and all perf/quality numbers untouched. --overlay/DSX_OVERLAY + --vision-max-tokens/DSX_VISION_MAX_TOKENS (default 1024) per docs/server.md at c3cd33a. The published uncensored overlay (lxe/DeepSeek-V4.1-Flash-1017-dsx-t16-uncensored-overlay, 1.54 GB, from dealignai's FP8 uncensored checkpoint) targets the T16 model - its dsx.overlay.base check refuses this 2.6-bit GGUF, so --overlay is deliberately absent from the launch line (Option C rejected as factually wrong); an uncensored 2.6-bit variant needs a custom overlay via quant/overlay_gguf.py first and is deferred to a separate ingest card (Option D deferred). Revision 2026-11-19 (t_f2172bc8, owner GO 2026-11-19): engine pin bump c3cd33aeb36a -> 60e9870b74 (now upstream HEAD again; 1 commit past the previous pin, quant/README.md +2 lines linking the engine's published calibration set at lxe/dsx-calibration - README-only, no engine code or perf tables). Provenance credit row added: 'engine published calibration set (calib4, T16 v1 release): lxe/dsx-calibration' - the calib4 set is the T16 v1 release's calibration set per quant/README at 60e9870, NOT this 2.6-bit quant's own calibration (v3a/v4b), so the row attributes the engine's published set only. Weights rev 70794f81, launch argv, config.runtime, and all perf/quality numbers unchanged. artifacts[2] engine_image pin re-dated to the new pin (HEAD at revision 2026-11-19).

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)