DeepSpec: Full-stack speculative decoding framework by DeepSeek

Repositorydeepseek-ai/DeepSpecTool

DeepSpec is an open-source codebase by DeepSeek for training and evaluating draft models used in speculative decoding. The suite covers the entire pipeline across data preparation, multi-GPU model training, and performance benchmarking.

Key points

  1. End-to-end speculative decoding pipeline covering data extraction, draft model training, and acceptance rate evaluation.
  2. Supports algorithms such as Eagle3 alongside target models including Qwen3-4B, Qwen3-8B, Qwen3-14B, and Gemma-4-12B-it.
  3. Requires significant storage for target answer caching (approximately 38 TB for the default Qwen3-4B setup).
  4. Configured out-of-the-box for single-node multi-GPU hardware (typically 8 GPUs).
  5. Includes evaluation scripts for benchmark suites such as GSM8K, MATH500, AIME25, HumanEval, MBPP, and MT-Bench.

Why it matters

Speculative decoding is a key method for reducing latency during LLM inference. DeepSpec provides an end-to-end open-source toolkit under an MIT licence, making the training and evaluation of speculative draft models accessible and reproducible.

Analysis

The project solves the tooling gap in training custom speculative draft models. It relies on Python, distributed PyTorch/CUDA training, and Hugging Face datasets and checkpoints. It is designed for machine learning researchers and engineers optimising model serving efficiency. DeepSpec demonstrates high maturity with over 7,000 stars, an MIT licence, released pre-trained weights, and backing by an arXiv research paper (2607.05147), though its steep hardware and storage requirements make it primarily viable for well-resourced teams.

Found in

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.