deepseek-ai/deepspec

DeepSpec: a full-stack codebase for training and evaluating speculative decoding algorithms

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 5 minutes ago
Added to GitGenius on August 12th, 2026
Created on June 26th, 2026
Open Issues & Pull Requests: 57 (+0)
GitHub issues: Enabled
Number of forks: 651
Total Stargazers: 6,962 (+2)
Total Subscribers: 29 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 11.9 hours
Mean response time: 2.8 days
90th percentile: 5.8 days
Tracked items: 18

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 9% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 26
New in 7 days: 2
Closed in 7 days: 1
Avg open age: 37 days
Stale 30+ days: 18
Stale 90+ days: 0

Recent activity

Opened in 7 days: 2
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Detailed Description

DeepSpec is a full-stack codebase for training and evaluating draft models used in speculative decoding.

The tool addresses the problem of accelerating language model inference through speculative decoding, a technique where a smaller draft model generates candidate tokens that a larger target model validates. DeepSpec provides an end-to-end pipeline: it prepares training data by downloading prompts, regenerating target model answers, and building cached target outputs; trains draft models against these cached outputs using configurable algorithms; and evaluates the resulting models on benchmark tasks to measure acceptance rates during speculative decoding. The workflow is sequential, with each stage's output feeding into the next.

Developers should choose this tool if they are researching or implementing speculative decoding algorithms and need a complete, reproducible framework rather than building from scratch. It suits projects targeting language model inference optimization where reducing latency through token prediction acceleration is valuable. The codebase includes multiple algorithm configurations and supports various target models, with released checkpoints available for immediate evaluation. The tool assumes a single-node setup with eight GPUs by default, though it can be adapted for fewer GPUs by adjusting environment variables. Users should be aware that data preparation can require substantial storage—the default configuration generates approximately 38 TB of cached target outputs.

The project shows active development with recent commits addressing core functionality. Work spans the full stack from data pipeline implementation through model training orchestration to evaluation harness construction. The codebase maintains multiple algorithm variants and target model configurations, indicating ongoing experimentation and refinement of the speculative decoding approach.