mrkeyoor.com_
Wed 16 Sept 18:59 UTC
AI Toolsevaluationupdated 26 Aug 2026

ds4 review

DwarfStar is a native inference engine for a deliberately short list of large open models, chiefly DeepSeek V4 Flash and PRO plus GLM 5.2. It trades broad model compatibility for tight control of model loading, prompt rendering, tool calls, caching, serving, and hardware-specific execution.

+240stars / 7d
Verdict

Our DwarfStar build finished in 5 seconds, but its 56-second test step stopped when nvcc was missing, so a clean CPU-only checkout did not clear the project's default test path. Try it if you own one of the named high-memory systems and specifically want DeepSeek V4 or GLM 5.2. Use llama.cpp or Ollama when you want broad model choice, and keep DwarfStar out of an unattended service until you have tested its memory behavior on your exact hardware.

We ran it

Lab card: what happened when we ran ds4Screenshot of ds4 (github.com/antirez/ds4)
Install✓ · 4s
Build✓ · 5s
Tests✗ · 56sran, no count parsed
Repo1471 files~92,980 lines of source · 112.5 MB · 0 CI workflows · tests dir

Answers from our run

Does ds4 build from source?

Dependencies installed in 4 seconds, and the build succeeded in 5 seconds. We cloned commit c1d4597 into a clean Debian container with 3 CPUs and no project-specific setup.

Do ds4's tests pass?

The test command failed in our container, and its output did not report a pass or fail count.

Who should not use ds4?

Anyone who wants to load arbitrary GGUF files: the README says unsupported tensor layouts, quantization mixes, metadata, and MTP state will not work.

What are the alternatives to ds4?

llama.cpp, vLLM, Ollama. Our DwarfStar build finished in 5 seconds, but its 56-second test step stopped when nvcc was missing, so a clean CPU-only checkout did not clear the project's default test path.

Setup2/5Build passed, but tests required an unavailable CUDA compiler
Docs4/5Detailed hardware, model, server, cache, and distributed guidance
Community4/521,782 stars and active issues and PRs through August 2026
Maturity2/5The README says beta; open crash and memory reports remain

Discussed on

  1. hnDeepSeek 4 Flash local inference engine for Metal499 points
  2. hnA few words on DS4440 points
  3. hnDS4, a specialized inference engine for DeepSeek v4 Flash23 points
  4. hnAsk HN: Anyone got DeepSeek-v4-flash-0731 running using antirez/ds4?3 points
  5. hnCommits · antirez/ds4 glm5.2 branch3 points

Who it’s for

Developers with a 96 GB or larger Mac who want to run one of DwarfStar's supported models locally.
Teams repurposing supported NVIDIA multi-GPU hardware for an OpenAI-compatible or Anthropic-compatible model server.
Inference engineers willing to tune Metal, CUDA, ROCm, SSD streaming, or distributed execution for a fixed model family.
Coding-agent users who want a native agent or a local Responses API endpoint for Codex CLI.

Who it’s NOT for

Anyone who wants to load arbitrary GGUF files: the README says unsupported tensor layouts, quantization mixes, metadata, and MTP state will not work.
Operators requiring stable production behavior: the README calls the project beta quality and says it is changing very fast.
Mac users below the stated 96 GB primary target who expect the resident path to work: open issue 860 reports a 64 GB M2 Max freezing and rebooting after launch.
Teams unwilling to monitor long-running server memory: open issue 836 reports an overnight server process being killed for running out of memory.
Developers who need a portable CPU setup: the useful paths target Metal, CUDA, or specific ROCm systems, while the CPU build is described as diagnostic.

Setup reality

Our sandbox installed DwarfStar in 4 seconds and built it in 5 seconds. The test step failed after 56 seconds with exit code 2. Its log reached the CUDA object build, then stopped because /usr/local/cuda/bin/nvcc did not exist.

Running a model is a separate, much larger job. You must download one of the listed GGUFs, choose a matching Metal, CUDA, or ROCm build, and budget from 96 GB of memory for the primary Mac target up to 512 GB for the PRO Q2 model. Public downloads can work without a Hugging Face token.

The repository has SSD streaming, multi-GPU, and multi-machine paths, but each has model and hardware restrictions. The README labels the software beta quality, and the server needs explicit context and KV-cache sizing.

DwarfStar supports a short model list on purpose

DwarfStar runs DeepSeek V4 Flash, DeepSeek V4 PRO, and selected GLM 5.2 GGUF files. It is explicit about what it does not do: arbitrary GGUFs are unsupported because the engine expects particular tensor layouts, quantization mixes, metadata, and sometimes extra speculative-decoding state. That is the central buying decision. You get one native program whose loader, prompt formatter, KV cache, HTTP server, and coding agent were designed together, but only for models the repository names.

The hardware target is equally narrow. Metal is the primary backend, with 96 GB or more recommended for Macs. CUDA covers DGX Spark and multi-GPU servers, while ROCm work focuses on Strix Halo systems. The listed PRO Q2 download calls for a 512 GB machine. Users below those memory levels can investigate SSD streaming or distributed execution, but neither turns this into a casual laptop runner.

Our 5-second build did not make the CUDA test path portable

The checkout at commit c1d4597 contained 1,471 files, about 92,980 source lines, and occupied 112.5 MB. Our sandbox install succeeded in 4 seconds, followed by a successful 5-second build. That quick compile is useful because DwarfStar is mostly native code with a Makefile rather than a large package-manager stack.

The test command told a different story. After 56 seconds it stopped with exit code 2 while compiling ds4_cuda.cu. The final error was plain: /usr/local/cuda/bin/nvcc did not exist. The log does not say whether the test command should have selected a CPU-only target, so we will not invent that explanation. It shows that the default test path at this commit required a CUDA compiler that our fresh Debian container did not have.

What happened when we ran it

Our run installed the project in 4 seconds and built it in 5 seconds on 3 CPUs with 8 GB of RAM. The test step failed in 56 seconds when Make tried to invoke /usr/local/cuda/bin/nvcc. No benchmark or model inference ran in this sandbox, and none should be inferred from the successful compile.

The repository scan found no CI workflow files and no Dockerfile, although it does have a tests directory. That makes the 56-second failure more important for adopters: there is no root-level workflow in this checkout showing which toolchain the maintainers use for the same command. The README instead points contributors to a separate release QA matrix covering remote Metal, CUDA, and ROCm machines.

Model downloads and memory dwarf the source checkout

Building the binary is the small part. The download script fetches a chosen model from the project's Hugging Face repository and links it as the default model. Public files do not require authentication, though the script can use HF_TOKEN or a local token cache. The README lists different quantizations for 96 GB, 128 GB, 256 GB, and 512 GB classes of machine, and GLM files have their own supported layouts.

SSD streaming keeps non-routed weights resident and pulls expert weights from storage as needed. It expands what a high-memory Mac or supported ROCm machine can attempt, while adding cache sizing and storage behavior to the job. Distributed modes go further: pipeline parallelism can split model layers across machines, and tensor parallelism can divide work across supported GPUs or two Macs. Those paths require exact agreement on model IDs, layer slices, context capacity, and networking.

The server speaks familiar APIs but needs careful sizing

ds4-server exposes OpenAI-style chat completions and Responses endpoints plus an Anthropic-compatible Messages route. Tool schemas are converted into the model's DSML representation, and a replay map preserves exact sampled tool-call blocks across cached histories. Codex CLI can use the Responses endpoint, while other agent examples cover opencode and Pi. This is more useful than a bare text-generation binary if the supported model is your coding model.

Memory planning remains visible. Resident server sessions allocate separate KV states, so the number of sessions and chosen context window directly affect capacity. The README warns that a large context can consume tens of gigabytes on top of model weights. Open issue 836 reports a server left idle overnight being killed after exhausting memory. It is one report, not proof of a general leak, but it is enough reason to monitor resident memory during a long trial.

Beta status is credible, not boilerplate

GitHub showed 21,782 stars and 527 combined open issues and pull requests when fetched. The last push was August 23, 2026, and recent issue and pull-request activity continued through August 26. There was no latest GitHub release returned by the release endpoint. The repository is active, while its README still calls the code beta quality and very fast changing.

A second open report describes a 64 GB M2 Max freezing and rebooting after launching ./ds4. That machine sits below the README's 96 GB primary Metal target, so it is not evidence against the stated configuration. It does show why the memory floor matters. DwarfStar is worth a measured trial on the exact Mac, NVIDIA server, or Strix Halo box you plan to operate. It is a poor default for anyone who mostly wants to browse models and press Run.

Alternatives

ProjectWhat it isPick it when
llama.cpp gh↗A general GGUF inference engine with broad model and hardware coverage.pick this instead when model choice and an established cross-platform ecosystem matter more than DwarfStar's narrow tuning.
vLLM gh↗A Python server focused on high-throughput model serving, mainly on accelerators.pick this instead when you need a production serving stack for supported models and GPUs rather than a specialized native engine.
Ollama gh↗A local model manager and runner with a simpler model download experience.pick this instead when easy local trials and a wider model catalog matter more than low-level control.

What people are saying

  1. [github-trending] antirez/ds4

Sources

  1. DwarfStar README
  2. DwarfStar repository
  3. Issue 836: ds4 server memory leak?
  4. Issue 860: ds4 crash my Mac on launch

More ai tools reviews

eve · MemOS · LongCat-Video · Concat · DLSS5-Feeder · Concat · the whole board →