Analysis updated 2026-05-18
Run the DeepSeek V4 Flash AI model locally on a Mac with Metal or a machine with NVIDIA CUDA
Build a coding agent that calls tools through ds4's server API
Quantize and generate custom GGUF files tuned for this specific model
Persist long conversation context to disk instead of keeping it all in RAM
| alantsev/ds4 | adroxz1122/injected-host-enumeration | iamdaven/miraos | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | C | C | C |
| Setup difficulty | hard | moderate | hard |
| Complexity | 5/5 | 3/5 | 5/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Needs a Mac with 96GB+ RAM for Metal or an NVIDIA GPU with CUDA, plus specific DeepSeek V4 Flash GGUF files.
DwarfStar 4, also called ds4, is a small C based inference engine built specifically to run the DeepSeek V4 Flash AI model on your own computer. Unlike general purpose tools that can load many different model formats, this project intentionally supports only one model, in exchange for very tight and fast integration: it handles loading, prompt formatting, tool calling, and both memory based and on disk storage of the model's working state, plus a server API meant to work with coding agents or the included command line interface. The project targets Apple computers with Metal graphics, particularly MacBooks with 96GB of RAM or more, as its main platform, with NVIDIA CUDA support as a second target and community maintained AMD ROCm support kept on a separate branch. A CPU only mode exists for testing correctness, but it is not meant for regular use. The authors chose DeepSeek V4 Flash because it runs faster than other models of similar strength, produces shorter reasoning sections that scale with how hard the question actually is, supports a context window of one million tokens, and compresses its working memory well enough that long conversations can be saved to disk instead of staying only in RAM. The project also provides tools for creating and quantizing the special model files it needs, along with speed and quality testing utilities. Documentation covers testing for contributors, generating quantized model files, collecting calibration data, and running benchmarks. The engine only works with model files built specifically for it, not arbitrary DeepSeek or generic model files. The project is built with heavy use of AI coding assistance, is still labeled alpha quality software, and gives credit to the llama.cpp project for the groundwork it builds on. The full README is longer than what was shown.
A narrow, C based local inference engine built only to run the DeepSeek V4 Flash model fast on Mac Metal or NVIDIA CUDA hardware.
Mainly C. The stack also includes C, Metal, CUDA.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.