Redis creator's ds4 engine squeezes a handful of open models into 96GB to 128GB of memory
Salvatore Sanfilippo's open-source ds4 engine runs a short list of large open-weight models locally by compressing their routed experts to about two bits. Even compressed, the supported builds need high-memory Macs or GPU systems that most people do not already own.
The Engineer · Build desk

What happened
- Sanfilippo published the ds4 repository on May 7, 2026, according to independent coverage by RunLocal.
- Supported models are limited to some DeepSeek V4 and V4.1 models plus GLM 5.x and Qwen3.8 Flash Next; layouts and capabilities differ from one backend to another.
- ds4 writes prompt-prefix cache state to SSD and restores a matching prefix after a restart instead of recomputing it.
- A single model state backs three interfaces: a command-line tool, a native agent, and an HTTP server whose endpoints are compatible with OpenAI and Anthropic APIs.
Why it matters
- What it costs cost Most teams would have to buy hardware before they could evaluate ds4 at all, so its audience is people who already own high-memory machines.
- Who has to decide decision Anyone needing a model outside the supported list has to choose between a broader runtime and porting ds4, with Sanfilippo betting coding agents make the port cheap.
- What's now possible capability Agent tooling written for OpenAI or Anthropic APIs can drive a local model unchanged, so a long coding session can move off a hosted service.
- What it limits constraint Buyers comparing ds4 with other engines still need their own runs, because the published speeds come from the project and share no common baseline.
Next story · Build · yesterday
NVIDIA's Bolt packs 74B parameters into a claimed 24GB by storing them at 2 bitsConfirmed12 publishers
The two-bit cut lands on routed experts because they hold much of a large mixture-of-experts model's parameter count [5][11]. Shared components, and other paths the project identifies as critical, keep higher precision [5]. Choosing those paths is a model-specific decision, and the narrow support list is what lets Sanfilippo make it [13]. Sanfilippo, who created Redis, built DwarfStar around that limit: support fewer models, then tune the whole stack for them [1].
The project says it tests the model, prompt handling, tool calls, cache and interfaces together [4]. I think that joint test is the best engineering decision in the repo. A compression scheme is worth little if tool calls or the cache misbehave on top of it, and testing them as one system is how that gets caught. Users pay for that rigour: they cannot assume an arbitrary model file will work [4].
The benchmark table is the project's own, and Runtimewire's coverage says its figures are not independent or apples-to-apples comparisons against other engines [8]. Inside the table, the M5 Max loses about 30% of its generation rate when context grows 32-fold [21]. A 128GB DGX Spark posts 18.1 and 13.8 tokens per second at the same two context lengths, a drop of about 24% [16][22]. The Mac is roughly twice as fast at both [23].
For those figures to transfer, a team needs the same supported build, a machine of the same memory class and a workload dominated by generation. Prompt prefill is reported separately, since ingesting input and producing tokens are different parts of a workload [17]. Runtimewire's write-up does not reproduce the prefill rates or say which model produced the rows. A coding agent that resends a long prompt every turn spends time in prefill that a generation rate does not count. The SSD cache restores only a matching prefix, so its saving depends on how much of each new prompt matches the stored state [14].
Memory sets the floor. Documentation puts supported builds at roughly 96GB to 128GB [6]. DwarfStar's website lists Apple Silicon machines with at least 64GB for some supported configurations, while the baseline DeepSeek V4 Flash Q2 setup targets higher-memory systems [9]. Streaming from SSD extends what fits but does not remove the capacity trade-off, according to the coverage [10]. Both benchmark machines have 128GB [15][16]. By the coverage's own account, the approach needs hardware well above what most people already have [12].
Sanfilippo's reason for accepting that floor is ownership. "AI is too critical to be just a provided service," he wrote about ds4 [18]. In an essay on software distribution, he argued that a repository can be a template that users and their agents adapt to other hardware and needs [19]. He points to DwarfStar itself as an example [19]. In my view the narrow scope is the right call for an engine built around a handful of targets. An agent can port a backend, though it cannot add memory to the machine it tests on. The same write-up treats the agent argument as a wager on how developers will use open-source software, and says it does not mean ds4 already supports every machine or model [20].
What to watch
- Independent runs of ds4 against other engines on the same 128GB machines, with prefill rates published alongside generation.
- Agent-made or community ports that extend ds4 to models or devices outside its supported list, which would test Sanfilippo's template argument.
- Whether SSD streaming brings any supported DeepSeek V4 build below the 64GB Apple Silicon floor.
Clarity's read
What the record supports and how the coverage leans. The claims behind it follow.
Reality
- Evidence55
- Adoption30
- Hype gap+20
- Incentives
- Not scored
- Confidence60
Claim ledger
Ranked by verification strength, evidence, and original report placement.
- [1]
Salvatore Sanfilippo, who created Redis, built DwarfStar around a constraint: support fewer models, then tune the whole stack for them.
- [2]
The open-source engine ds4 compresses selected large models to run on high-memory Macs and GPU systems, with a command-line interface, local APIs and a coding agent.
- [3]
DwarfStar is not a general-purpose GGUF runner; its documentation lists selected DeepSeek V4 and V4.1 models, GLM 5.x and Qwen3.8 Flash Next, with supported model layouts and capabilities varying by backend.
- [4]
The project says it tests the model, prompt handling, tool calls, cache and interfaces together; users cannot assume any arbitrary model file will work.
- [5]
ds4 compresses the routed experts in mixture-of-experts models to roughly two-bit precision while preserving higher precision for shared components and other paths the project identifies as critical.
- [6]
DwarfStar's documentation says its approach lets supported builds fit in roughly 96GB to 128GB of memory.
- [7]
The same model state is exposed through a CLI, an HTTP server with OpenAI- and Anthropic-compatible endpoints, and a native agent, letting users keep long coding sessions local without a DwarfStar-only client.
- [8]
The benchmark figures are project-published measurements, not independent or apples-to-apples comparisons against other inference engines.
- [9]
DwarfStar's website lists Apple Silicon machines with at least 64GB for some supported configurations, while its baseline DeepSeek V4 Flash Q2 setup is aimed at higher-memory systems.
- [10]
SSD streaming can extend what fits in memory but does not make the capacity trade-off disappear.
- [11]
In a large model, routed experts account for much of the parameter count, so lowering their precision can cut memory use substantially.
- [12]
The ds4 approach requires hardware well above what most people already have.
- [13]
The narrow support surface lets Sanfilippo make model-specific choices.
- [14]
ds4 treats the key-value cache as persistent data: it can save prompt-prefix state to SSD and restore a matching prefix after a restart, avoiding recomputing that work from scratch.
- [15]
DwarfStar's benchmark table reports 39.4 tokens per second of generation on an M5 Max with 128GB of memory at a 2,048-token context, and 27.6 tokens per second at 65,536 tokens.
- [16]
For a 128GB DGX Spark, DwarfStar's table reports 18.1 and 13.8 tokens per second of generation at 2,048 and 65,536 tokens of context.
- [17]
The benchmark table separates generation from prompt prefill, which measures how quickly the system ingests input; the two rates describe different parts of a workload.
- [18]
"AI is too critical to be just a provided service," Sanfilippo wrote about ds4.
- [19]
In an essay on software distribution, Sanfilippo argued that a repository can be a template for users and their agents to adapt to different hardware and needs, and pointed to DwarfStar as an example.
- [20]
Sanfilippo's argument that coding agents lower the cost of adaptation is a bet on how developers will work with open-source software, not a promise that ds4 already supports every machine or model.
- [21]
On the M5 Max, generation falls about 30% when context grows 32-fold from 2,048 to 65,536 tokens.
- [22]
On the DGX Spark, generation falls about 24% between 2,048 and 65,536 tokens of context.
- [23]
The M5 Max generates roughly twice as fast as the DGX Spark at both context lengths in the project's table.
- [24]
Sanfilippo published the ds4 repository on May 7, 2026, according to independent coverage by RunLocal.
Sources
2 independent publishers whose own reporting we read for this story.
- dev.toThe Redis Guy Wrote a Local LLM Engine That Refuses to Be General. That's Why It Works.
2 articles · October 3, 2026
- runtimewire.comDwarfStar compresses frontier models to run them on local machines
1 article · October 2, 2026
Topics and entities
Entities
- Qwen3.8-Flash-Next
- Ollama
- DeepSeek V4
- GLM-5
- DGX Spark
- GGUF
- Salvatore Sanfilippo
- llama.cpp
- Redis