AIAny
AI Infra2026
Icon for item

DwarfStar 4

Native local inference engine for DeepSeek V4 Flash (also supports GLM 5.2 and PRO on high‑memory machines). Focused features include model-specific loading, SSD expert streaming, asymmetric routed-expert 2-bit quant support, multi-GPU/tensor/pipeline parallelism, and an OpenAI-compatible server plus a native coding agent.

Introduction

DwarfStar 4 targets a narrow but increasingly important niche: running routed-expert large models locally or on commodity multi‑GPU servers without relying on a general-purpose GGUF runner. As model weights and compressed KV caches grow, practical local inference becomes possible on high‑memory laptops and workstations — DwarfStar 4 trades generality for an optimized, end-to-end inference path tuned for DeepSeek V4 Flash (and a tested subset of GLM 5.2).

What Sets It Apart
  • Model-specialized path: deliberately not a generic GGUF loader — tensor layouts, quant mixes, and optional MTP/DSpark support are expected and exploited for speed and correctness.
  • Routed-expert quant strategy: asymmetric 2-bit quantization (IQ2_XXS / Q2_K mix) that quantizes routed experts but keeps other tensors higher-precision to preserve quality under aggressive compression.
  • SSD streaming for experts: lets machines with insufficient RAM still run Flash/PRO models by caching routed experts on NVMe and dynamically loading them, with configurable expert-cache budgets.
  • Parallel and distributed modes: pipeline parallelism (layer-slicing), tensor parallelism (RDMA/TCP across Macs or CUDA tensor-parallel across GPUs), and CUDA multi-GPU topologies for production multi-user serving.
  • Server and agent integration: OpenAI/Anthropic/Responses-compatible HTTP server, disk-backed KV cache with exact DSML tool-call replay, native coding agent and CLI for low-latency local workflows.
  • Practical tooling: imatrix-backed quant tunes, quality/speed benchmarking, ds4-eval capability suite, and utilities for GGUF/DSpark/MTP workflows.
Who it's for — and tradeoffs

Great fit if you run or plan to run DeepSeek V4 Flash/PRO or validated GLM 5.2 weights locally (Macs with 96–512 GB, DGX Spark, Strix Halo) and need a highly tuned, model-specific inference runtime with SSD streaming and multi‑host parallelism. It is useful for local coding agents, multi-user on-prem serving, and experiments that require exact tool-call replay and large context KV caching. Look elsewhere if you need a general-purpose GGUF runner that supports arbitrary models, a fully stable production release (the project moves fast and is labeled beta), or a lightweight client-only SDK — DwarfStar intentionally prioritizes DeepSeek-specific optimizations over broad model compatibility.

Where it fits compared to similar tooling
  • Compared to llama.cpp: DwarfStar owes much to llama.cpp's kernels/quant approaches but implements a self-contained C inference path specialized for Flash/PRO and GLM 5.2 layouts rather than a generic GGUF runner.
  • Compared to vLLM-style servers: DwarfStar focuses on routed-expert workloads, SSD streaming, and tight model-specific correctness (tool-call replay, DSML handling) rather than being a general GPU inference orchestration layer.
Key implementation notes
  • Imatrix and calibration tooling are provided to produce high-quality quant variants tuned for routed MoE shapes.
  • DSpark speculative decoding and MTP are supported as opt-in experimental paths to reduce generation passes when beneficial.
  • Disk KV snapshot format and exact DSML replay are engineered to keep stateless API clients aligned with live checkpoints across restarts.

Overall, DwarfStar 4 is a pragmatic, hardware-aware inference engine for teams and users who need to run DeepSeek‑family models locally or across trusted multi‑host setups and are willing to accept the project's narrow model compatibility and active development status.

Information

  • Websitegithub.com
  • Organizationsantirez (GitHub), DeepSeek
  • AuthorsSalvatore Sanfilippo
  • Published date2026/05/06

Categories

More Items

AI Infra2026

Indexes chemistry literature as provenance-bearing atomic claims and provides a faceted taxonomy, evidence graph, and REST/SDK/MCP APIs so researchers and AI agents can retrieve verifiable, claim-level findings across papers; live index contains 2.4M claims from 147K papers.

GitHub
AI Infra2026

Measures multiline text layout and block height without triggering browser reflow: it measures text segments once via Canvas+Intl.Segmenter and caches widths, then computes line breaks with pure arithmetic. Useful for streaming AI text, virtualization, and custom per-line rendering.

GitHub
AI Infra2026

Provides high-performance CUDA/CUTLASS kernels implementing Kimi Delta Attention (KDA), accelerating KDA prefill on SM90+ (Hopper) GPUs. Integrates as a drop-in backend for flash-linear-attention, supports native variable-length batching, and targets K=V=128; requires CUDA 12.9+/PyTorch 2.4+.