HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
antirez
ds4
C2026–2026
antirez / ds4

ds4

DeepSeek 4 Flash and PRO local inference engine for Metal, CUDA and ROCm

57Distinct people
74Mentions
0Explicit recommenders
24.3KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

DeepSeek 4 Flash and PRO local inference engine for Metal, CUDA and ROCm

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 10:01:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by week74 dated mentions

Observed mentions: 2026-05-07 15:40:24 UTC to 2026-10-13 07:15:23 UTC. Weeks start Monday, UTC.

0369122026-05-04 00:00:00 UTC to 2026-05-11 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsMay 42026-05-11 00:00:00 UTC to 2026-05-18 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2026-05-18 00:00:00 UTC to 2026-05-25 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2026-05-25 00:00:00 UTC to 2026-06-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-06-01 00:00:00 UTC to 2026-06-08 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-06-08 00:00:00 UTC to 2026-06-15 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2026-06-15 00:00:00 UTC to 2026-06-22 00:00:00 UTC (exclusive): 12 mentions; 0 submissions, 12 comments2026-06-22 00:00:00 UTC to 2026-06-29 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2026-06-29 00:00:00 UTC to 2026-07-06 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-07-06 00:00:00 UTC to 2026-07-13 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments2026-07-13 00:00:00 UTC to 2026-07-20 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-07-20 00:00:00 UTC to 2026-07-27 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsJul 202026-07-27 00:00:00 UTC to 2026-08-03 00:00:00 UTC (exclusive): 6 mentions; 0 submissions, 6 comments2026-08-03 00:00:00 UTC to 2026-08-10 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-08-10 00:00:00 UTC to 2026-08-17 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-08-17 00:00:00 UTC to 2026-08-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-08-24 00:00:00 UTC to 2026-08-31 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-08-31 00:00:00 UTC to 2026-09-07 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2026-09-07 00:00:00 UTC to 2026-09-14 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2026-09-14 00:00:00 UTC to 2026-09-21 00:00:00 UTC (exclusive): 3 mentions; 2 submissions, 1 comments2026-09-21 00:00:00 UTC to 2026-09-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-09-28 00:00:00 UTC to 2026-10-05 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2026-10-05 00:00:00 UTC to 2026-10-12 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-10-12 00:00:00 UTC to 2026-10-19 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 12

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
May 42026-05-04 00:00:00 UTC2026-05-11 00:00:00 UTC211
May 112026-05-11 00:00:00 UTC2026-05-18 00:00:00 UTC505
May 182026-05-18 00:00:00 UTC2026-05-25 00:00:00 UTC404
May 252026-05-25 00:00:00 UTC2026-06-01 00:00:00 UTC202
Jun 12026-06-01 00:00:00 UTC2026-06-08 00:00:00 UTC202
Jun 82026-06-08 00:00:00 UTC2026-06-15 00:00:00 UTC505
Jun 152026-06-15 00:00:00 UTC2026-06-22 00:00:00 UTC12012
Jun 222026-06-22 00:00:00 UTC2026-06-29 00:00:00 UTC505
Jun 292026-06-29 00:00:00 UTC2026-07-06 00:00:00 UTC202
Jul 62026-07-06 00:00:00 UTC2026-07-13 00:00:00 UTC514
Jul 132026-07-13 00:00:00 UTC2026-07-20 00:00:00 UTC202
Jul 202026-07-20 00:00:00 UTC2026-07-27 00:00:00 UTC202
Jul 272026-07-27 00:00:00 UTC2026-08-03 00:00:00 UTC606
Aug 32026-08-03 00:00:00 UTC2026-08-10 00:00:00 UTC202
Aug 102026-08-10 00:00:00 UTC2026-08-17 00:00:00 UTC202
Aug 172026-08-17 00:00:00 UTC2026-08-24 00:00:00 UTC000
Aug 242026-08-24 00:00:00 UTC2026-08-31 00:00:00 UTC202
Aug 312026-08-31 00:00:00 UTC2026-09-07 00:00:00 UTC303
Sep 72026-09-07 00:00:00 UTC2026-09-14 00:00:00 UTC211
Sep 142026-09-14 00:00:00 UTC2026-09-21 00:00:00 UTC321
Sep 212026-09-21 00:00:00 UTC2026-09-28 00:00:00 UTC000
Sep 282026-09-28 00:00:00 UTC2026-10-05 00:00:00 UTC404
Oct 52026-10-05 00:00:00 UTC2026-10-12 00:00:00 UTC101
Oct 122026-10-12 00:00:00 UTC2026-10-19 00:00:00 UTC101

What Hacker News says

12 sources
I started with antirez' DwarfStar[1] on one spark and that (~11-14tok/s generation, ~300-400 tok/s prompt processing) was enough of a taste for me to jump into 2 sparks, running the native quant of DSv4 Flash. Now at 40-50tok/s generation and ~2000 tok/s prefill with a model that I've seen reason through race conditions and be able to trivially pull off any straight-forward coding task, and remain coherent at 500k context. With a preview checkpoint of the weights! I'm excited for the future of local LLMs. There is some buy-in but apparently not an extreme amount to get access to models that can stand in the for the giants on all but the most challenging and/or hands-off coding tasks. [1]: https://github.com/antirez/ds4
In Two Qwen3 models on one DGX Spark: the residency math
ds4: prefill: 150.18 t/s, generation: 48.47 t/s together with https://github.com/antirez/ds4 + RTX Pro 6000, local provider :) I guess you could rent one too, get similar speed. https://gist.github.com/embedding-shapes/eceefa1b2699dca448f... The weights I've tried is the "DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix" ones which fits just about within 96GB VRAM. With some tuning, I've managed to get it to get up to ~60 t/s, I'm sure there is other things to do there too :)
In Anthropic's Safety Superpower
DwarfStar and other end-user inference engines should also support batched/concurrent inference IMHO. Not so much for the overly naïve "serving multiple users" case (the local hardware cannot really compete with ordinary datacenter gear, much less with the big proprietary suppliers; the compute headroom is too small to begin with once the model is in RAM) but rather to improve SSD streamed decode in the unattended inference scenario, where the goal is to meaningfully raise aggregate tok/s whilst facing an overly tight constraint on disk bandwidth, and CPU/GPU compute have a lot of slack. Of course this requires wide enough batches to have at least some reuse of fetched experts across a batch, but that seems feasible in the "unattended" case, where firing off multiple inferences to be processed together seems quite natural. (We may also ha
Read the rest
ve some benefit from better use of the resident experts cache and/or of SSD transfer bandwidth.) https://github.com/antirez/ds4/issues/275 seems to provide intriguing rough results while https://github.com/antirez/ds4/issues/314 is a valuable contrast where one commonly suggested solution ("just run multiple instances of the engine in parallel") ran into real issues. Neither of these discuss the combined use of batching and SSD streaming yet, so there's room for experimentation.
In Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?
mbp16 m5 max 128gb, antirez/ds4, deepseekv4-flash. Works well for relatively dense (let's say <20k LoC per project) C codebases that are essentially a bunch of custom specialized stores, http servers, network infra, media transformers, etc. Runs through Pi with a custom prompt (basically "don't speculate blindly, isolate things, make them traceable and measurable, then verify") and behind a pretty restrictive bwrap setup - RO bind everything other than ~/.pi, cdw and a separate tmpfs, unshare almost everything other than the network - for which I use a network namespace that only allows tcp connections to a specific ip and port (i.e the inference mac) - i.e. netns exec into bwrap. Can't compare it to SOTA or higher-requirements models on what I work on - policy. That said, on a bunch of test pieces - it obviously isn't gpt-5.5, it definit
Read the rest
ely lags behind k2.6/glm/ds4-pro, but it absolutely is usable. Of course, on such codebases, forget about one-shotting or trusting it blindly or anything of the sort - you ask it, guide it, restart the context from time to time to have a "fresh dice roll" and to keep the context small and clean, etc. Compared to anything smaller (incl. all the usual local qwen models) - on a test piece, it figured out that memfd and mmap were used for setting up a ring buffer with natural wraparound handling (double mapping the first page at the end) and didn't tell me "this is for sharing memory between processes" or some other BS. Performance as described in the tables in the readme here: https://github.com/antirez/ds4 ...with a bit less than half that at "low power" (30w). Both are usable.
In Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?
As an update, turns out Antirez created a brilliant 2 bit quant of Deepseek to fit into 128Gb systems along with a custom highlight tuned server. I've been running this the last few days and if I turn off envelope on OpenClaw, the performance is brilliant. Still to try with coding harnesses. It's a bit slow compared to the other models but so good that I'm willing to put up :-) https://github.com/antirez/ds4
In MAI-Code-1-Flash

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.