{"slug":"deepseek-v4-1-flash-1017-dsx-2-6-bit-gptq-2x-rtx-3090-engram","title":"DeepSeek-V4.1-Flash-1017 dsx 2.6-bit GPTQ 2x RTX 3090 (Engram)","summary":"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.","license":"MIT","tier":"community","beta":false,"revision":{"no":5,"commit_sha":"14b16cc533dfeea43dba5683d6c71793bf220a9e","content_hash":"5645832cdb3943f96bf99f0c3a2f716eb5ae4c40","created_at":"2026-11-21 10:55:27.430492-07","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)."},"engine_source":{"type":"release","git_url":"https://github.com/lxe/dsx","base_engine":"dsx","pip_package":null,"base_version":"dsx @ 60e9870b7","image_digest":null,"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.","pinned_commit":"60e9870b74509825f2f8de088306d82260f0fd87"},"credit":[{"name":"lxe (dsx engine + 2bit reference quant)","url":"https://github.com/lxe/dsx"},{"name":"icecubetr (2.6-bit GPTQ quant + measurements)","url":"https://huggingface.co/icecubetr/DeepSeek-V4.1-Flash-1017-dsx-2.6bit"},{"name":"deepseek-ai (DeepSeek-V4.1-Flash-1017 checkpoint)","url":"https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017"},{"name":"Lucebox (1017 eval set)","url":"https://huggingface.co/Lucebox/DeepSeek-V4.1-Flash-1017-ROCMFP-GGUF"},{"name":"engine published calibration set (calib4, T16 v1 release): lxe/dsx-calibration","url":"https://github.com/lxe/dsx-calibration"}],"author":{"name":"localai-recipes","isSite":false},"uploaded_by":"localai-recipes","config":{"launch":["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."},"max_context_len":262144,"storage_requirements":{"note":"~187.6 GB quant GGUF + ~203 GB Engram shards 47-48 + tokenizer (engine README says ~350-400 GB disk; model card says ~400 GB for GGUF+Engram+tokenizer).","ram_gb":192,"nvme_gb":400}},"models":[{"slug":"deepseek-v4-1-flash-1017","name":"DeepSeek-V4.1-Flash-1017","hf_repo":"deepseek-ai/DeepSeek-V4.1-Flash-1017","quant":"dsx-mixed-2-6bit-per-expert-ptq1-0-q2-0-q3-k-gptq-dense-q8-0"}],"hardware":[{"slug":"rtx-3090-x2","vendor":"nvidia","card":"RTX 3090","card_family":"rtx-3090","vram_gb":24,"device_count":2}],"generation":"ampere","tags":["3090","cpu-experts","custom-engine","dsx","engram","exact-routing","gptq","hybrid-experts"],"tasks":["chat","code"],"aa":{"aa_index":32.590000000000003410605131648480892181396484375,"aa_provenance":"measured","aa_source_url":"https://artificialanalysis.ai/models/deepseek-v4-1-flash-1017","aa_index_version":"Index v5.0.1 (2026-11-14)","aa_methodology_version":"v5.0.1","aa_published_fetched_at":"2026-11-18 22:27:52.619159-07","aa_family_slug":"deepseek-v4-1-flash-1017","aa_resolved_slug":"deepseek-v4-1-flash-1017"},"performance":[{"claimed_by":"submitter","metrics":"{\"notes\": \"claimed_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.\", \"tok_s\": 26, \"points\": [{\"notes\": \"all experts resident, 192 GB RAM box; 2x RTX 3090\", \"concurrency\": 1, \"context_len\": 262144, \"decode_tok_s\": 26}, {\"notes\": \"prompt processing, 2x RTX 3090; concurrency omitted (NULL) so the row never collides with the c=1 decode tuple\", \"context_len\": 262144, \"prefill_tok_s\": 170}], \"context_len\": 262144}"}],"perf_points":[{"id":13676,"context_len":262144,"prefill_tok_s":170,"decode_tok_s":null,"ttft_ms":null,"concurrency":null,"claimed_by":"submitter","notes":"prompt processing, 2x RTX 3090; concurrency omitted (NULL) so the row never collides with the c=1 decode tuple"},{"id":13675,"context_len":262144,"prefill_tok_s":null,"decode_tok_s":26,"ttft_ms":null,"concurrency":1,"claimed_by":"submitter","notes":"all experts resident, 192 GB RAM box; 2x RTX 3090"}],"agent":{"prompt":"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.","curl":"curl -fsSL https://localairecipes.com/api/v1/recipes/deepseek-v4-1-flash-1017-dsx-2-6-bit-gptq-2x-rtx-3090-engram.json"},"requirements":null,"artifacts":[{"kind":"model_weights","pointer_type":"hf_model","pointer":"https://huggingface.co/icecubetr/DeepSeek-V4.1-Flash-1017-dsx-2.6bit","pin":"70794f816419731761a8ff07af8ee457020faff1 - 187.6 GB single GGUF; Engram NOT included (read from official shards at runtime)"},{"kind":"model_weights","pointer_type":"hf_model","pointer":"https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017","pin":"official checkpoint - only index + shards 47-48 + tokenizer needed (Engram + tokenizer source)"},{"kind":"engine_image","pointer_type":"git_commit","pointer":"https://github.com/lxe/dsx","pin":"60e9870b74509825f2f8de088306d82260f0fd87 (HEAD at revision 2026-11-19; no release tags; MIT; universal multi-backend Dockerfile in-repo since 3afb18d). NVIDIA runner in nvidia/; AMD MI325X runner (amd/) is a separate future card."}],"links":{"self":"/api/v1/recipes/deepseek-v4-1-flash-1017-dsx-2-6-bit-gptq-2x-rtx-3090-engram.json","alternate":"/r/deepseek-v4-1-flash-1017-dsx-2-6-bit-gptq-2x-rtx-3090-engram","describedby":"/openapi.json"},"updated_at":"2026-12-02 23:22:59.772528-07","created_at":"2026-10-20 21:49:11.030299-06","speeds":{"decode_tok_s":26,"prefill_tok_s":170,"leaderboard":"/api/v1/leaderboard.json"}}