Run the DeepSeek V4 Flash model locally on a Mac with enough memory instead of using a cloud API.
Serve the model over an HTTP API for coding agents to call.
Use the on disk KV cache to keep long context sessions without exhausting RAM.
Generate and quantize custom GGUF files for this model using the included tooling.
| ngc-shj/ds4 | alichraghi/linux-audio-headers | calmh/pre-git | |
|---|---|---|---|
| Stars | 0 | — | — |
| Language | C | C | C |
| Last pushed | — | 2024-01-08 | 2016-08-12 |
| Maintenance | — | Dormant | Dormant |
| Setup difficulty | hard | easy | hard |
| Complexity | 4/5 | 2/5 | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Needs a Mac with Metal (96GB+ RAM) or an NVIDIA CUDA GPU, plus the project's own specially prepared model files.
DwarfStar 4, also called ds4, is a small inference engine built to run one specific AI model, DeepSeek V4 Flash, as fast and correctly as possible on your own computer. Unlike general purpose model runners that try to support many different models, this project is narrow on purpose. It does not wrap another runtime and is self contained, handling model loading, prompt formatting, tool calling, and memory state for that one model, along with a server API and a command line interface for coding agents or direct use. The project targets Apple computers with Metal graphics, starting from MacBooks with 96 gigabytes of memory, as well as NVIDIA GPUs using CUDA, with a separate community maintained branch for AMD hardware. It builds on the ideas and code from the well known llama.cpp and GGML projects, and the authors credit that work directly, including keeping some of its licensed code and copyright notices inside this project. The authors explain why they picked this particular model for a dedicated engine. DeepSeek V4 Flash is described as faster than similarly capable dense models because it activates fewer parameters at a time, its internal reasoning text tends to be shorter and scales with how hard the question is, it supports a context window of one million tokens, and its memory state compresses well enough that it can be saved to disk instead of only living in RAM. The README also states this software was built with heavy assistance from an AI coding tool, with humans directing the design, testing, and debugging, and says plainly that people uncomfortable with AI assisted code should not use it. The project is labeled alpha quality, since it has only existed for a short time and inference engines are complex to get right. It only works with specially prepared DeepSeek V4 Flash model files released for this project, not arbitrary GGUF files from elsewhere. Additional documentation covers contributing guidelines, tools for generating and quantizing model files, quality testing against official outputs, and benchmark results, each in its own linked file within the repository. The full README is longer than what was shown.
A narrow, self contained local inference engine built specifically to run the DeepSeek V4 Flash AI model fast on Mac and NVIDIA hardware.
Mainly C. The stack also includes C, Metal, CUDA.
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.