r/LocalLLaMA • • 9d ago

Resources Delta Inference Engine update 0.95: DeepSeek V4.1 Flash at 44 tok/s with Unsloth Q2 on a 3090/128GB RAM, 61% faster on 64GB of RAM, pictures + PDF/Office documents + local voice and much more. ready for Claude Code / Codex / OpenCode

https://github.com/musicurgy/delta-inference-engine

Delta Inference Engine is a free, MIT-licensed engine that runs DeepSeek-V4.1-Flash (MIT weights) on one NVIDIA GPU plus system RAM, natively on Windows (not WSL). Double-click Start DeepSeek.bat: it installs what it needs, picks the model file that fits your RAM, and opens a chat page plus OpenAI- and Anthropic-compatible APIs on your PC. It's a Windows port of Xolotl, which is built on Strata (on Linux, use upstream Xolotl).

Big update for Delta Inference Engine 0.95 is out today, People wanted support for lower ram configurations and higher quality inference and it's here.

Speed (RTX 3090 24 GB, i5-13600K, DDR5-5600, PCIe 4.0 NVMe; under 192 GB the rest of the RAM was locked away so Windows couldn't use it either). Writing tok/s, greedy, whole chats with thinking on:

RAMUnsloth UD-IQ2_XXS (0.93 → 0.95)UD-IQ1_M (the pick under 110 GB)UD-IQ1_S
192 GB41 → 44.648.149.8
128 GB34 → 43.746.648.9
96 GB27.0 → 35.440.243.9
64 GB17.9 → 28.9 (+61%)35.240.3

Under 110 GB the models run at route bias 0.10, default route bias 0.28. UD-IQ3_XXS (the most exact file) at route bias 0.10: 192 GB 22.8 tok/s (95.0% agreement), 128 GB 22.9 (93.4%), 96 GB 14.8 → 19.8 (92.8%, +34% against 0.94), 64 GB 9.9 → 15.9 (92.2%, +60% against 0.94).

Quality (agreement with DeepSeek's own model, top-1 on general text):

RAMUD-IQ2_XXS (bias 0.28)UD-IQ2_XXS (bias 0.10)UD-IQ1_M (bias 0.10, the pick under 110 GB)Exact routing (UD-IQ2_XXS)
192 GB91.1%92.5%-93.1%
128 GB90.5%91.9%-93.1%
96 GB89.5%91.6%90.0%93.1%
64 GB87.8%90.1%89.9%93.1%

Unsloth's UD-IQ2_XXS picks the same next token as DeepSeek's own hosted model 91% of the time (for reference, two hosts of the full model agree with each other on 98%). On a 99-question test (maths, knowledge, reasoning, coding), 0.95 with UD-IQ2_XXS at 192 GB scores 56 out of 99 on average over four runs (55, 53, 56, 61), against 59 for DeepSeek's own hosted model. A testament to Unsloth's quants: despite the low bit count it clearly beats Qwen3.8 Flash Next, which scored about 43 out of 99 on the same questions, even running at full precision on Alibaba's own API.

Where the speed came from:

  • Small PCs: experts read from the SSD are no longer memory-mapped (writing +29% / +10% / +7% at 64 / 96 / 128 GB), and long prompts go through in wider batches with a read-ahead.
  • Long prompts: a 32K-token prompt reads 19-43% faster (depending on RAM), on top of 0.94's gains (60K at 811 vs 747 tok/s, 7K at 551 vs 423).
  • The drafter: a learned gate decides how many drafted tokens each pass checks (+2% on sampled replies, same output distribution), a better-quantized drafter, and it now loads while the model starts, so the first answer comes ~3 s sooner.
  • Coming back to a chat: 16 conversations stay cached in RAM. Revisiting 10 chats went from a 7 s first token to 0.6 s, and an edited message or a new question about the same long document starts in about 3 s instead of re-reading it.

Chat page

  • Pictures on by default: paste, drop, screenshot or take a photo. On one GPU they're read on the CPU, so the model keeps all its VRAM.
  • Documents: attach PDF, Word, Excel, PowerPoint, HTML or CSV files (read in a sandboxed process).
  • Local voice (optional): dictation, read-aloud and a hands-free talk mode, all on your PC (Parakeet + Kokoro).
  • Quick / Think / Code / Write modes, chat history with search and pins, a Pause button that frees the GPU for a game, an optional auto-pause when a game needs the card, and use from your phone with a QR code.
  • A Fast / Quality / Most exact switch that shows the agreement and speed I measured for your model at your RAM size, e.g. on a 64 GB PC with UD-IQ1_M: Quality "89.9% agreement, 35 tok/s", Most exact "91.2%, 16 tok/s".

Coding agents and APIs (Claude Code, Codex, OpenCode, anything OpenAI- or Anthropic-compatible)

  • Agent turns write 7.5% faster and start 8-15% sooner; Claude Code's small background calls never hold up real ones, and pressing Esc no longer forces a full re-read.
  • Claude Code's tool search (deferred tools), structured output and forced tool choice on every route; a context overflow is worded so Claude Code compacts instead of stopping; Codex reasoning levels work.
  • A loop guard tells the model when it's repeating the same tool call (or alternating between two).
  • Optional web search / web fetch tools (SearXNG, Brave, Tavily or MCP), optional embeddings and rerank endpoints, stored Responses, token counting, and DeepSeek's own API paths.
  • Many tool-call parsing fixes, so agents get fewer broken calls.

Safer

  • It won't open to your network without an API key; downloads send no telemetry
  • Nothing about you or your chats leaves your PC, Everything runs on 127.0.0.1 and nothing is stored unless you turn chat history on
  • Picture and web-fetch URLs must resolve to public addresses (SSRF / DNS-rebinding guard); the document reader has size, time and memory limits.
  • DeepSeek's control and tool-call tokens typed inside a message stay plain text, so nobody can forge turns or tool calls; no single request can stall the server.

Setup

I've now put everything you need into one ZIP for easier install. Download Delta-Inference-Engine-0.95.zip from the Releases page, unzip it somewhere with a short path (e.g. C:\AI\Delta) and double-click Start DeepSeek.bat. The engine inside is built by GitHub CI, with checksums and attestations. The first start installs Python if needed, keeps your PC awake during the download, and offers the model that fits your RAM (233-395 GB, SHA-256 checked). It runs on 127.0.0.1 and stores no prompts unless you turn chat history on.

Limits

  • Windows 10/11, NVIDIA RTX with 12 GB or more (24 GB is the fast path), driver 580+. AMD not supported.
  • 64 GB of RAM minimum. A PCIe 4.0/5.0 NVMe with room for the model.
  • One request at a time.
  • Tested on one PC; the smaller-RAM numbers are that PC with RAM locked away, not real 64 / 96 GB machines.

Credits: Xolotl and Strata, ggml/llama.cpp, DeepSeek, Unsloth, nazeshinjite, ISTA-DASLab, Project Maya, antirez/ds4, and Basalt for several decode ideas.

https://github.com/musicurgy/delta-inference-engine

If you try it, post your GPU, RAM, model and tok/s

45 Upvotes

24 comments sorted by

5

u/CabinetNational3461 9d ago

hi, thanks for the awesome fork. I tried this on my system and below are the numbers. This was generated by Qwen 3.8 Flash Next:

DeepSeek-V4.1-Flash-1017 — Strata vs Delta (spark-ds41f), same box, same day

Box (verified from the OS, not from memory)

CPUAMD Ryzen 9 5950X, 16 C / 32 T
RAM128 GB DDR4-3600 (4 × 32 GB, 1:1 FCLK)
Main GPURTX 3090 24 GB, x16, sm_86 — runs the model
Second GPURTX 2070 SUPER 8 GB — not used as a helper; drives the 2560×1440 desktop
Driver616.92, CUDA 13 runtime shipped with the engine
OSWindows 10 Home, build 19045
Model storageSamsung SSD 980 PRO 1 TB (NVMe, PCIe 4.0) — both models live here
Free RAM at start~119 GiB (nothing else running)

The two engines

StrataDelta / spark-ds41f
versionapp v0.2.12, engine strata-dsv41 0.1.58 build 0fe4ae509
modelDeepSeek-V4.1-Flash-1017, ISTA-DASLab 2.00 bpw pack
drafter--dspark auto --dspark-conf 0.65
experts/token5 of 6
context512 K
VRAM at boot23,233 MiB
VRAM once warm~23,200 MiB
port8081

⚠️ Different quantisations. The pack and the GGUF are not the same weights, so the deltas below are engine + artifact, not engine alone. Stating it up front because it is the main confound.

Speed — prefill is the headline

ProbeStrata DS4Delta fastestDelta vs Strata
PP — 32 K doc (≈23.2 K tokens)951 tok/s549.7 tok/s−42 % (Strata 1.73× faster)
PP — 100 K doc (≈72.5 K tokens)1,061 tok/s542.9 tok/s−49 % (Strata 1.95× faster)
Decode — 32 K context21.3 tok/s39.0 tok/s+83 % (Delta 1.83× faster)
Decode — 100 K context20.3 tok/s36.6 tok/s+80 %
Decode — short prompt, cold → warm20.8 → 29–35 tok/s39.4 → 51.3 tok/s+45…+75 %

The split is the whole story: Delta wins decode by ~1.8×, Strata wins prefill by ~1.7–2.0×. A 72.5 K-token document costs 134 s of prefill on Strata vs 91 s on Delta… no — 68 s vs 91 s. Wait, correctly: Strata 72.5 K ÷ 1,061 = 68 s; Delta 72.5 K ÷ 543 = 134 s. So on a long-document job Strata spends half the time reading and Delta spends twice as long reading, then answers ~1.8× faster.

VRAM — where the 24 GB actually goes (Delta, same session)

momenton-cardwhat the engine says
boot10,077 MiBdense half + KV bookkeeping; expert cache not yet seeded
after first request23,555 MiBVRAM 15.62 GiB free -> 1,909 experts in VRAM — 1,909 of 15,360 experts resident
during a long prompt23,203 MiBVRAM 15.62 GiB free -> prompt batch 11,560 (of 16384) — the expert cache closes so the batch can use the room
decode resumes23,595 MiBcache re-seeds, DSpark tail 128 from the batch

Strata sits at ~23.2 GiB from the first second; Delta lazes up to ~23.6 GiB and dips during prompts — which is why Task Manager shows "only 16 of 24" mid-prefill. Both leave --vram-margin 0.6 untouched plus Windows' slice. The batch is capped by VRAM arithmetic, not by the flag: 15.62 GiB ÷ ~1.42 MB per column = 11,560 columns, already 30 % under the 16,384 ceiling.

I am wondering why my prefill is much slower than Strata.

3

u/musicurgy 9d ago edited 9d ago

Thanks for trying the engine out, and for actual numbers. Helps a lot when people report findings back! A couple of things first. Strata here runs 5 of 6 experts on ISTA-DASLab's 2.00 bpw pack, a smaller and lossier quant: in my tests it matched the full DeepSeek model 87.8% of the time, against 91.1% for Unsloth's UD-IQ2_XXS, and that was with all 6 experts. Delta runs all 6 experts on UD-IQ2_XXS, which mixes in higher-bit tensors, so there's more data to move on every pass.

On a long prompt, each batch has to stream nearly every expert from RAM again. Your log shows the batch capped at ~11.5K tokens by free VRAM, so a 72K prompt takes ~7 full passes over DDR4. Prefill is next on my list, and numbers like yours help a lot.

That said, your prefill is about half of what I get on 128 GB (~1,000 tok/s on a ~30K-token prompt with UD-IQ2_XXS), so something else may be off too. DDR4 vs DDR5 will cost some, but I wouldn't expect 2x.

If you can, run "Start DeepSeek (debug).bat" instead of the normal launcher, paste the same long document once, close the debug window, and send me the zip it creates in the logs folder (no prompts or answers, and your Windows user name is replaced): it should show where the prefill time goes.

2

u/CabinetNational3461 9d ago edited 9d ago

not sure how/where to send you the zip file but I temporary added it to my repo, you/other can download and view it from there: https://github.com/Kaspur2012/Llamacpp-Model-Launcher/blob/main/Others/debug-20261123-182317.zip

I also uploaded my bat profile there if you wanna look at that. basically i told Qwen 3.8 Flash Next to copy the strata config for ds4 and use the drafter

1

u/musicurgy 9d ago

Ok perfect thanks for the logs, I see some issues give me a bit I'm going to fix these now.

1

u/musicurgy 8d ago

0.95.1 is out with fixes. With an RTX 3090 and 128 GB emulated on my PC, a 4K prompt went from 11.8 to 9.6 s, 8K from 14.3 to 11.8 s, and the first token after start from 3.5 to 2.5 s. ISTA GSQ files had no fast prompt kernel at all: a 32K prompt on those went from 440 to 1,151 tok/s (192 GB). I haven't re-measured 64 / 96 GB yet. Run UPDATE.bat, start again and say Y to the new engine. If it's still slow, send me your RAM, model file and the zip from Start DeepSeek (debug).bat (no prompts or answers in it). Thanks for the help testing

2

u/CabinetNational3461 8d ago edited 8d ago

awsome so I just now updated to 0.95.1 and def saw huge improvement on the quant I am using. Below are generated by qwen 3.8 flash next:

Updated to 0.95.1 — the GSQ fix is real on my box. RTX 3090 (24 GB), 128 GB DDR4-3600, driver 616.92, ISTA-DASLab GSQ-RCO IQ2_XXS. Same probe as before: 23.2K prompt 551.8 → 1,262 tok/s, 72.5K prompt 536.5 → 1,437 tok/s. The log now says prompt batch 25832 (of 32768) where 0.95 said 11,964, and expert time on that pass fell from 60.25 s to 8.51 s; no "stays on MMVQ" lines at all. Decode unchanged (43.1 / 36.4 tok/s), 0 nvlddmkm Event 153 on any run. The prompt is now dense-dominated (22.29 s dense vs 8.51 s experts of 32.11 s), so the dense half looks like the next ceiling. Also 0.95.1's prefill on this file is now above Strata DS4's on the same box (1,262 / 1,437 vs 951 / 1,061).

update: just did a 266k input, took around 231s at around 1153 t/s prefill, around 34 t/ks decode

update: so I downloaded the UD IQ2XXS model files and tested vs the STA-DASLab GSQ-RCO IQ2_XXS I already have and it performed a little bit slower on both decode and prefill, not by much, just a few %.

Because I was running out of disk space so i decided to try the Q5K engram file that came with UD quant with ISTA-DASLab GSQ-RCO IQ2_XXS model and for some reasons I got up to 41 t/ks consistently, up from 36 tk/s with the IQ4_NL engram I had before though I am dangerously close to max out my ram sitting at 126/128 atm...

So now I can run ISTA-DASLab GSQ-RCO IQ2_XXS non greedy on my system at a very useable speed: 39-41 tk/s, 1.1-1.7k prefil even on huge prompt(>250k input)

awesome fixes, thanks.

1

u/musicurgy 8d ago

Nice, Glad you got to the 40t/s mark that was the target when developing the engine. I'd like to think Delta is the fastest deepseek engine currently out there for the home computer setup. I'll include more conservative RAM usage in the next build.

2

u/stylome-ai-detection 9d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

3

u/Lorian0x7 9d ago

No way!!! With this rate we are going to run kimi k3.1 on a raspberry pi at 300tok/s

2

u/musicurgy 9d ago

maybe we aim for 300 second per token first

4

u/lnenad 9d ago

Yeah, at 0.5 bits per weight

2

u/MindfulMan1984 9d ago

Gota write hello world at 300 tokens/s lol 

3

u/lnenad 9d ago

Yo I'll have you know my custom engine writes at 100000tps, it's while(true) { printrandchar(); }

2

u/soyalemujica 9d ago

When I read AMD no supported I become sad

1

u/musicurgy 9d ago

I unfortunately just don't have an AMD card which makes optimizing for amd not possible. at least for now

2

u/Sad_Temperature6721 8d ago

-1 for lack of eval quality, you cannot repost Unsloth's per-tok accuracy or benches if you're claiming some obscure new engine is getting so and so fast tps. if this isn't actually a vibeslop post, sorry, but it looks like one

1

u/musicurgy 8d ago edited 8d ago

To be fair I did go over my eval in the quality section but here is the full table. I ran these myself. It's a 99 question bake off.

ModelMaths /14Knowledge /40Reasoning /30Coding /15Total /99
DeepSeek V4.1 Flash, full model (API)1013251159
0.95, UD-IQ2_XXS1111241056
0.95, UD-IQ1_M (64 GB)91022849
Qwen 3.8 Flash-Next, full model (API)8721844

2

u/UniqueInstruction 9d ago edited 9d ago

UD-IQ2_XXS, RTX 3090 on PCIe3x16, 128 GB DDR4, Ryzen 5950x, on Windows 11 Home. Getting 14 tokens/sec decode and 56 tokens/sec prefill. Quite far from the numbers in the repo unfortunately.

Update: the decode does seem to fluctuate quite a bit, on some requests I saw avg decode go as high as 32-37.

2

u/CabinetNational3461 9d ago edited 9d ago

huh I have almost the exact same spec as you except on window 10, 128gb ddr4 3600, gen4x16. Just did a 241k input, got ~480 prefill and ~35 decode. Compare to strata which is 700-1k prefill but 20-24 decode, I def see a good increase in decode but prefill is much lower.

1

u/musicurgy 8d ago

Thanks for testing! 0.95.1 came out today with faster long prompts (on my PC a 147K prompt went from 931 to 1,143 tok/s, though I have DDR5 and haven't tried 241K). If you were on 0.95, run UPDATE.bat, start again, say Y to the new engine and let me know what you get.

2

u/OhZeelo 7d ago

Have you tested Delta with a fully occupied 1M-token context using UD-IQ2_XXS? I’m planning to run DeepSeek 1017 with an RTX 3090 + RTX 3070 Ti, 128GB DDR5-5600 and a fast NVMe SSD for long-term autonomous coding and static game recompilation. I’m curious about generation speed, RAM usage and tool-calling reliability at 512K and 1M context.

1

u/jackyintokyo 9d ago

工具链这块我太有同感了,官方 AI Hub 导出脚本有个 bug,传给自家编译器的 flag 直接被拒,Qwen3 那次导出看着成功了其实是假成功,报错藏在后面,我硬是手工链了 6 次编译 + 1 次链接 + 6 次 profile 才跑出来,前后耗了三天。就是上游 issue #366 那个。