Topics / #speculative-decoding
Speculative-decoding projects on GitHub
Inference technique that speeds up language model generation by drafting and verifying tokens in parallel.
As of , the most-starred Speculative-decoding projects on GitHub are vllm (97.8K stars), Strata (45.5K stars) and ds4 (24.4K stars). GitHub.Locker tracks 45 Speculative-decoding repositories with 298.7K stars combined. The fastest-growing on November 30 was Strata, with +357 stars in a day.
Hot right now
Most stars gained in a day · Nov 30
Strata
Niko1221/Strata · ★ 45.5KStrata runs Qwen3.8-Flash-Next, a 125-billion-parameter AI model, on a normal gaming PC with one NVIDIA GPU (12-24GB VRAM) and 64GB of RAM, with a one-click installer for Windows and Linux.
+79vllm
vllm-project/vllm · ★ 97.8KvLLM is a library for fast LLM inference and serving, built around PagedAttention for efficient memory management of attention keys and values.
kapitsa
nace-ai/kapitsa · ★ 824Kapitsa is a local inference engine for Apple Silicon Macs that runs Qwen, Nemotron and Recursive's Flint models, built specifically to power coding agents.
+27project-maya
mw00/project-maya · ★ 3KProject Maya lets you run GLM-5.3-Flash, a 321-billion-parameter mixture-of-experts AI model, on your own NVIDIA GPU(s) by streaming the model's experts across VRAM, RAM and NVMe SSD as the conversation needs them.
The all-time top
45 projects · by stars
- 97.8K
#1 · vllm-project/vllmvllm
vLLM is a library for fast LLM inference and serving, built around PagedAttention for efficient memory management of attention keys and values.
- 45.5K
#2 · Niko1221/Strata
Strata
Strata runs Qwen3.8-Flash-Next, a 125-billion-parameter AI model, on a normal gaming PC with one NVIDIA GPU (12-24GB VRAM) and 64GB of RAM, with a one-click installer for Windows and Linux.
- 24.4K
#3 · antirez/ds4
ds4
DwarfStar (ds4) is a small, self-contained local inference engine specialized for running DeepSeek V4 Flash and PRO, plus GLM 5.2/5.3, on consumer hardware like high-memory Macs, NVIDIA GPUs, and AMD Strix Halo systems.
- 4

TensorRT-LLM
15.1KNVIDIA/TensorRT-LLM · PythonTensorRT LLM is NVIDIA's Python framework for defining large language models (and now visual generation models) and compiling them into highly optimized inference engines that run on NVIDIA GPUs, with specialized kernels and Python/C++ runtimes.
- 5

PaddleNLP
13KPaddlePaddle/PaddleNLP · PythonPaddleNLP is a large language model (LLM) and small language model (SLM) development toolkit built on the PaddlePaddle deep learning framework, offering efficient training, lossless compression, and high-performance inference for large models.
- 6

MiniCPM
11.9KOpenBMB/MiniCPM · Jupyter NotebookMiniCPM is OpenBMB's family of small, open-source LLMs built for on-device and resource-constrained use. The newest release, MiniCPM5-2B, is a dense 2B-parameter model that reaches open-source state-of-the-art for its size class while staying competitive with much larger 4B-class models.
- 7

Soup
10.6KMakazhanAlpamys/Soup · PythonSoup is a command-line tool for fine-tuning and post-training LLMs from a single YAML config file, automating GPU detection, batching and quantization so you just write a config and run one command.
- 8
GLM-5
7.5Kzai-org/GLM-5GLM-5 is a family of large open-weight language models from Z.ai built for agentic engineering and complex, long-horizon coding tasks, scaling up to 744B parameters with sparse attention for efficient long-context serving.
- 9

DeepSpec
7.3Kdeepseek-ai/DeepSpec · PythonDeepSpec is DeepSeek's full-stack Python codebase for training and evaluating draft models for speculative decoding — the technique where a small draft model accelerates a larger target LLM.
- 10

lectures
7.1Kgpu-mode/lectures · Jupyter NotebookThis is the supplementary material repository for the GPU MODE lectures YouTube channel — a growing collection of notebooks, slides and code from each numbered lecture on GPU and CUDA programming.
- 11

dflash
6.2Kz-lab/dflash · PythonDFlash is a lightweight block diffusion model built for speculative decoding, drafting tokens in parallel blocks so a larger target LLM can verify them faster than generating one token at a time.
- 12

tiny-llm
5.8Kskyzh/tiny-llm · Pythontiny-llm is a hands-on course that teaches systems engineers how LLM inference works end to end by having them build a small Qwen3 model and a mini vLLM-style serving stack on Apple Silicon using MLX.
- 13

Model-Optimizer
5.6KNVIDIA/Model-Optimizer · PythonNVIDIA Model Optimizer (ModelOpt) is a Python library that bundles state-of-the-art model-compression techniques - quantization, pruning, neural architecture search, distillation, speculative decoding and sparsity - to shrink and speed up deep learning models before deployment.
- 14

how-to-train-your-gpt
4.2Kraiyanyahya/how-to-train-your-gpt · Jupyter NotebookA 12-chapter, 7,500+ line interactive textbook that teaches you how to build, train and run a modern GPT-style language model completely from scratch, with every line of code commented and explained in plain English.
- 15

Rapid-MLX
4.2Kraullenchai/Rapid-MLX · PythonRapid-MLX is a local LLM inference server for Apple Silicon Macs, built on MLX, that exposes OpenAI- and Anthropic-compatible APIs and focuses on reliable tool calling for coding agents like Claude Code and Codex CLI.
- 16

project-maya
3Kmw00/project-maya · C++Project Maya lets you run GLM-5.3-Flash, a 321-billion-parameter mixture-of-experts AI model, on your own NVIDIA GPU(s) by streaming the model's experts across VRAM, RAM and NVMe SSD as the conversation needs them.
- 17

inference-optimisation-skill
2.9Ksybil-solutions/inference-optimisation-skill · PythonIt is an agent skill that hill-climbs the speed of a local LLM server: decode, speculative decoding, prefill, KV cache, startup and time to first token, on any hardware and quantization. It works with Claude Code and any agent that loads SKILL.md-style skills.
- 18

HyperQwen
2.8Ksyv-ai/HyperQwen · PythonHyperQwen is a self-hosted serving setup that runs the Qwen3.8-27B model on a single 24 GB consumer GPU (like an RTX 3090) using vLLM, exposing it through an OpenAI-compatible API.
- 19

mlx-serve
2.5Kddalcu/mlx-serve · Zigmlx-serve is a native local inference server for Apple Silicon Macs that runs MLX and GGUF language models and exposes OpenAI-, Anthropic-, and Ollama-compatible APIs, plus generates images, video, music, speech, and 3D models, all without Python or a cloud connection.
- 20

TensorFold
2.3Kashhart/TensorFold · ZigTensorFold is an LLM inference engine that serves open-weight language models through an OpenAI-compatible API, running them on Apple Silicon via MLX or on NVIDIA GPUs via CUDA.
- 21

zero-to-sglang
2.3Kdatawhalechina/zero-to-sglang · PythonThe official SGLang x Datawhale course on LLM inference: it teaches how inference engines work, has you build a mini-sglang from scratch, and then digs into the real SGLang source code.
- 22

ai-engineering-interview-questions-company-wise
2.1Kpallavi-shekhar/ai-engineering-interview-questions-company-wise · MarkdownA free, continuously updated cheat sheet of real interview questions asked in AI Engineering interviews at 35 companies (Anthropic, OpenAI, Google DeepMind, Meta, NVIDIA, Databricks and more), organized company by company with answers linked wherever available.
- 23

halogen-flash-server
1.4Kpeonist-ai/halogen-flash-server · Shellhalogen-flash-server is a purpose-built inference server for running the Qwen3.8-Flash-Next model as fast as possible on AMD's Strix Halo (gfx1151) GPU, exposing an OpenAI-compatible API.
- 24
EAGLE-4
1.3Keagle-hq/EAGLE-4 · PythonEAGLE-4 is a speculative decoding method that speeds up LLM inference, and this repo ships eagle-harness, the package that lets serving engines use EAGLE-4 draft models without changing the model's output.
- 25

gufo
1.2Kgufo-org/gufo · C++Gufo is a local inference engine built specifically for AMD Strix Halo hardware (Ryzen AI MAX+ 395 with Radeon 8060S / gfx1151, up to 128 GiB unified memory), serving text, speech, image and video models through an OpenAI-compatible API.
- 26

backburner
1.2KStayLameBro/backburner · PythonBackburner lets a nearby iPhone act as a coprocessor for your Mac so a locally-run 27B LLM (Qwen3.8-27B) reads prompts faster and holds far more context. The phone connects over a 10 Gb/s USB-C cable and offloads part of the model's layers plus storage/attention for old context.
- 27

ai-system-design
898amitshekhariitbhu/ai-system-design · MarkdownA free, open-source guide that teaches AI System Design step by step: how to combine GPUs, inference servers, caches, vector databases, AI agents, guardrails, and evals into one system that is fast, cheap, reliable, and safe.
- 28
kapitsa
824nace-ai/kapitsa · C++Kapitsa is a local inference engine for Apple Silicon Macs that runs Qwen, Nemotron and Recursive's Flint models, built specifically to power coding agents.
- 29

kaggle-tpu-lab
810ARahim3/kaggle-tpu-lab · PythonA recipe that serves frontier-class open LLMs — GLM-5.3-Flash 320B MoE and Qwen3.8-27B bf16 — on Kaggle's free TPU v5e-8, exposing a public OpenAI-compatible (and Anthropic-compatible) endpoint you can plug into coding agents like Claude Code, Codex, opencode, or pi.
- 30

GLM-5.3-Flash-EXL3-2x-DGX-Sparks
762MiaAI-Lab/GLM-5.3-Flash-EXL3-2x-DGX-Sparks · PythonA deployment recipe and Docker image that serves the GLM-5.3-Flash model as an OpenAI-compatible vLLM endpoint across 2-4 NVIDIA DGX Spark (GB10) kits, using a custom EXL3/TR3 4-bit quantization of the weights.
- 31

janas
734prabanta-dev/janas · CJanas-LLM is a C-based inference engine that runs large mixture-of-experts LLMs (even ones bigger than your RAM) on ordinary laptops, by streaming the experts each token needs from an NVMe SSD and caching the hot ones in memory.
- 32
slotstream
673carloslfu/slotstream · SwiftSlotstream lets you run a 105 GB AI model (Qwen3.8-Flash-Next, a 125B-parameter mixture-of-experts model) on Macs with only 16 to 64 GB of RAM, by streaming most of the model from SSD and caching the busiest experts in memory.
- 33
pooled
658Nehanth/pooled · JavaScriptSwarmLLM pools the WebGPU power of several devices open in browser tabs to run large open models that no single device could hold on its own, splitting the model into layer slices and passing a small activation vector between devices over WebRTC.
- 34

Qwen3.8-Flash-Next-Single-DGX-Spark
641MiaAI-Lab/Qwen3.8-Flash-Next-Single-DGX-Spark · PythonA self-contained recipe for serving the Qwen3.8-Flash-Next-NVFP4 checkpoint from a single NVIDIA DGX Spark machine's unified memory, using vLLM with the PLE table offloaded and memory-mapped.
- 35

qwen3.8-Flash-DGX
537blazux/qwen3.8-Flash-DGX · PythonA recipe (scripts plus a patched Docker image) for serving the ~176B-parameter Qwen3.8-Flash-Next model with vLLM on a single NVIDIA DGX Spark (GB10). It solves the problem that the 126 GiB NVFP4 checkpoint doesn't fit next to a usable KV cache in the Spark's 128 GB unified memory, by streaming a 48 GiB lookup table from NVMe via mmap instead of keeping it resident.
- 36

llm-inference-engineering
515amitshekhariitbhu/llm-inference-engineering · MarkdownA free, continuously growing blog series that teaches LLM inference engineering step by step, covering KV cache, PagedAttention, continuous batching, speculative decoding, and serving engines like vLLM, SGLang, TensorRT-LLM, and GGUF.
- 37

jeeves
444PostHog/jeeves · PythonJeeves is a reasoning-enhanced 'Jev-like' decision model built on Qwen3.5-9B with LoRA. It thinks through a reasoning chain before giving calibrated yes/no, multiple-choice, or rating answers, and ships with a diffusion drafter for faster inference.
- 38

resin
438ekzhang/resin · PythonResin is an experimental library of building blocks for constructing custom LLM inference engines, rather than a ready-to-use inference engine itself.
- 39

DeepSeek-v4-Flash-One-DGX-Spark
353MiaAI-Lab/DeepSeek-v4-Flash-One-DGX-Spark · PythonA single-node Docker launcher that serves the DeepSeek V4 Flash 0731 model (EXL3 3.0bpw quantization) with DSpark speculative decoding, tuned to run entirely on one NVIDIA DGX Spark machine.
- 40

alzeo
269hasso5703/alzeo · PythonA one-command installer that sets up a hardened, boot-persistent SGLang serving stack for the Qwen3.8 model family on a single NVIDIA DGX Spark (GB10), reaching 50 tok/s greedy median and up to 1M context on the 27B NVFP4 config, with a 176B Flash-Next MoE model also fitting on one box.
- 41
GLM-5.3-Flash-NVFP4-DFlash2-2x-DGX-Spark
245tonyd2wild/GLM-5.3-Flash-NVFP4-DFlash2-2x-DGX-Spark · PythonA deployment recipe and set of patched Docker images for serving GLM-5.3-Flash (320B total / 18B active MoE) as an OpenAI-compatible API across two NVIDIA DGX Spark nodes, using vLLM tensor-parallel 2, NVFP4 quantization, and DFlash2 speculative decoding.
- 42

Qwen3.8-27B-DFlash2-EXL3-5.0bpw
232MiaAI-Lab/Qwen3.8-27B-DFlash2-EXL3-5.0bpw · PythonA deployment kit for serving Qwen3.8-27B (quantized to EXL3 3.5bpw) through an OpenAI-compatible server, using speculative decoding to speed up generation. It bundles the launcher, server, and config; the model weights live on Hugging Face and inference runs on the team's exllamav3 fork.
- 43

tpu-megakernels
189Inferact/tpu-megakernels · PythonA companion research repo with fused 'megakernel' decode implementations for two models on Google TPUs: Kimi K3 with DSpark speculative decoding, and Qwen3.8-27B with DFlash2 speculative decoding, written to accompany the blog post '700 TPS on Kimi K3: A Case for TPU Megakernels'.
- 44

v100-skinny
188dnv2003/v100-skinny · Pythonv100-skinny provides hand-written NVFP4 (W4A16) and FP8 (W8A16) CUDA kernels that let four Tesla V100-SXM2-16GB GPUs run Qwen3.8-27B's published mixed NVFP4/FP8 weights directly, serving the model through an OpenAI-compatible API.
- 45

vllm-torchtpu
142vllm-project/vllm-torchtpu · Pythonvllm-torchtpu is a PyTorch-native TPU backend plugin for vLLM, letting the same vLLM CLI, OpenAI-compatible server, and model definitions run on Google Cloud TPUs via torch.compile and custom JAX/Pallas kernels, with no model code changes.
Related topics
Often tagged together
- llm1,590
- quantization192
- llm-inference129
- gpu798
- python2,386
- inference314
- cuda382
- linux4,256
- benchmark465
- local-llm246
- open-source5,461
- self-hosted1,988
- nvidia343
- openai-compatible248
- large-language-models210
- server1,346
- vllm135
- inference-engine59
- llm-serving34
- model-serving57
- qwen172
- deep-learning582
- huggingface349
- machine-learning767