A small native inference engine for running DeepSeek V4, GLM 5.x and Qwen Flash models on Macs, DGX Spark and Strix Halo.
open sourceMITfree
DwarfStar (ds4.c) is a self-contained C inference engine for running a few large open-weight models on hardware people can own: DeepSeek V4 Flash and PRO, DeepSeek V4.1 Flash, GLM 5.2 and 5.3, GLM 5.3 Flash and Qwen3.8 Flash Next. Metal on Apple Silicon is its main target, with CUDA (DGX Spark and multi-GPU, including Ada Lovelace cards) and ROCm on Strix Halo. It has an interactive CLI, an HTTP server, a native coding agent (ds4-agent) and SSD streaming for machines with less RAM. Its own README says it's developed with strong help from AI coding agents and draws on llama.cpp's kernels and GGUF formats.
Problems it solves
- run DeepSeek V4 Flash locally on my 128 GB Mac
- serve a large open-weight model from my DGX Spark
- run a model bigger than my RAM by streaming weights from the SSD
Features
- runs DeepSeek V4 Flash and PRO, GLM 5.x and Qwen3.8 Flash Next locally
- Metal, CUDA and ROCm backends
- SSD streaming for machines with less RAM
- HTTP server for API access and multiple sessions
- native coding agent that runs inference directly
- tensor and pipeline parallelism across machines
Limitations
Alternatives
The same job
These do what DwarfStar (ds4) does.
