RepositoryCITItaly
antirez

antirez/ds4

DeepSeek 4 Flash and PRO local inference engine for Metal, CUDA and ROCm

24.5kstars
2.4kforks
330issues
0views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

2
TINIX TRENDING·Quốc gia: IT

#2 Repository Của Tháng

1
TINIX TRENDING·Quốc gia: IT

#1 Repository Của Tuần

1
TINIX TRENDING·Quốc gia: IT

#1 Repository Của Ngày

🚀 DwarfStar: DeepSeek V4 Inference Engine for High-End Machines

A narrow, fast, self-contained engine built solely to run DeepSeek V4 Flash and PRO models well.

DwarfStar (ds4) is a native C inference engine developed by the creator of Redis (antirez) and collaborators. It focuses exclusively on running DeepSeek V4 Flash and DeepSeek V4 PRO models efficiently across Metal, CUDA, and ROCm backends. Unlike general-purpose runners, it is not a wrapper around other runtimes — it is fully self-contained, offering model loading, prompt rendering, tool calling, KV state management (RAM and disk), HTTP server API, and an integrated coding agent.

✨ Highlights

  • DeepSeek V4 Focus: Optimized specifically for DeepSeek V4 Flash and PRO models, ensuring high performance and accuracy.
  • Multi-Backend Support: Runs on Metal (macOS), CUDA (Linux/NVIDIA), and ROCm (AMD/Strix Halo).
  • SSD Streaming: Treats fast SSDs as first-class storage for KV caches, enabling large-context inference without requiring all RAM.
  • Integrated Coding Agent: Includes a built-in coding agent for interactive use or automation via CLI or HTTP API.
  • Self-Contained Design: No external runtime dependencies — everything needed is included in the single binary.
  • GGUF Tools Included: Provides utilities for GGUF and imatrix generation, along with speed and quality testing.
  • Official Validation: Tested against logits from the official DeepSeek implementation at various context sizes.
  • Beta Quality: Actively developed with advanced features like distributed inference and SSD streaming.

💡 Why it matters

DwarfStar breaks the traditional assumption that KV caches must reside in RAM. By leveraging fast SSDs, it turns available memory into a continuous performance spectrum rather than a hard limit. This allows users with machines like MacBook Pros, DGX Spark, or Strix Halo systems to run powerful models locally even when full model weights don’t fit in RAM.

It also emphasizes correctness and completeness over generality — validating outputs against official logits and integrating tightly with coding agents. While currently focused on DeepSeek V4, the architecture is flexible enough to adapt to future models based on capability and size.


#DeepSeek #InferenceEngine #OpenSource #TiniX