Tools/antirez/ds4

ds4

DeepSeek 4 Flash local inference engine for Metal

22.6k+176/wkgrowthCMIT Licensenew this week

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Sep 2026

DwarfStar (the repo is still named ds4) is antirez's local inference engine for running a short list of big open models on hardware you own. The creator of Redis built it first for DeepSeek V4 Flash, and it now also runs DeepSeek V4.1 Flash, V4 PRO, the GLM 5.x family, and Qwen3.8 Flash Next on Metal, behind an OpenAI- and Anthropic-compatible server. It only loads the GGUF files the project itself produces. MIT, free.

The price is hardware, not software. Macs with 96 GB or more are the primary target, and smaller machines can stream weights off SSD. On Linux it runs on CUDA, including older Ada Lovelace cards like the L40S, plus DGX Spark and Strix Halo boxes. Setup is a download script and make. Weight files run to hundreds of gigabytes, so budget a big, fast SSD too.

Beyond the chat CLI it ships ds4-agent, a built-in coding agent, plus image input, disk KV caching and inference split across machines. A solo developer with a loaded Mac Studio gets a near-frontier model with nobody else in the loop. Everyone else should stay on llama.cpp or vLLM until they own the metal.

The catch is churn. antirez calls it beta quality, warns that regressions are possible and that models get dropped when better ones arrive, and says openly it was built with strong help from AI coding agents. Run it to own your inference stack, not to ship a product on it.

Free vs Self-Hosted vs Paid

fully free

Free tier: MIT licensed, with retained llama.cpp and GGML pieces also under MIT. Supports DeepSeek V4 Flash (including an experimental vision model), DeepSeek V4.1 Flash, DeepSeek V4 PRO, GLM 5.2, GLM 5.3 and GLM 5.3 Flash, and Qwen3.8 Flash Next on Metal. Includes the CLI, the ds4-agent coding agent, an OpenAI- and Anthropic-compatible HTTP server, SSD weight streaming, disk KV cache, and distributed inference across machines. It only runs the project's own GGUF files, not arbitrary models.

Self-hosted: The only way it runs. Metal on Macs with 96 GB or more is the primary target; a 64 GB Mac can run Flash Q2 with SSD streaming. CUDA covers DGX Spark and multi-GPU Ada Lovelace systems such as L40S cards, and ROCm covers Strix Halo machines like the Framework Desktop. Two 128 GB Macs over RDMA can split a 4-bit Flash model with tensor parallelism. Weight files are very large (the DeepSeek V4.1 Flash Q2 download is 341 GiB), so fast storage is part of the bill.

Paid: None. The cost is the hardware.

Free under MIT. The bill is a 96 GB-plus Mac or serious GPUs, plus hundreds of gigabytes of fast SSD.

What to do by team size

Solo
free, if you own a 96 GB-plus Mac or a DGX Spark
Small team
free; hardware is the whole cost
Medium team
free, but beta quality makes it an experiment, not a platform
Large team
free; production serving belongs on vLLM or SGLang
Self-hosting ops:moderate

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
86/100 · A
Adoption27/30
Maintenance25/25
Community9/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Notable author: 26,628 followersAuthor also built: antirez/llama.cpp-deepseek-v4-flash (219 stars)

License: MIT License

Use freely, including commercial. Just keep the license.

Commercial use: ✓ Yes

About

Owner
Salvatore Sanfilippo (User)
Stars
22,650
Forks
2,168

Also by Salvatore Sanfilippo

Explore Further

More tools in the directory