Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Speculative Decoding Python Packages

Python packages with the GitHub topic speculative-decoding. Sorted by monthly downloads, with stars and forks.
raullenchai
rapid-mlx

Rapid-MLX is an open-source (Apache 2.0) OpenAI- and Anthropic-compatible LLM inference server for Apple Silicon, built on MLX, focused on reliable tool calling for coding agents. Up to 4× faster than Apple's MLX (mlx-lm) on the same weights.

17K 4K 445
youssofal
mtplx

The fastest way to run Inkling 2 Mini, Qwen 3.8 and Ternary Bonsai 2 27B on a Mac: Inkling 2 Mini at up to 128.8 tok/s and Flash Next at 125 tok/s in OpenCode on an M5 Max, and a 27B model on 16 GB Macs. Native MTP speculative decoding on Apple Silicon, exact at any temperature. OpenAI and Anthropic compatible local server.

9K 3K 226
vllm-project
speculators

A unified library for building, evaluating, and storing speculative decoding algorithms for LLM inference in vLLM

7K 980 303
ARahim3
mlx-dspark

Up to 4× faster LLM decoding on Apple Silicon, lossless. Native MLX port of DeepSeek's DSpark & z-lab's DFlash speculative decoding — Gemma-4, Qwen3.8, Muse-Glimmer, Nemotron, LFM2.5, Ornith-1.0, ternary Bonsai-27B.

6K 806 69
asher
gmlx

Local inference platform for K/IQ-quant GGUF models on Apple Silicon

5K 52 4
ilan4ever
dflash-console

Open-source Windows control panel for local LLMs: DFlash speculative decoding, llama.cpp/llama-server, vLLM and an OpenAI-compatible gateway. An open-source LM Studio alternative (not affiliated).

4K 3 1
defai-digital
ax-engine

Local AI inference on Apple Silicon with MLX, a native macOS app, and an OpenAI-compatible server.

4K 34 2
intel
intel-extension-for-transformers

⚡ Build your chatbot within minutes on your favorite device; offer SOTA compression techniques for LLMs; run LLMs efficiently on Intel Platforms⚡

4K 2K 213
dphnAI
aphrodite-engine

Large-scale LLM inference engine

3K 2K 211
amirrouh
inferhost

Self-hosted multi-modal AI server: chat/vision LLMs (Qwen, Llama, Gemma, DeepSeek), text-to-speech (OuteTTS, Qwen3-TTS) and image generation (SDXL, Flux, Z-Image, Qwen-Image) behind one OpenAI-compatible endpoint. Wraps llama.cpp + stable-diffusion.cpp, auto-fetches GGUF models from Hugging Face, VRAM hot-swap, speculative decoding, no compiling.

3K 4 0
FedericoTs
quantprobe

Run a 110B on a 2016 PC with 16 GB RAM. Know your tok/s before you download. Placement beats budget: predicts speed + memory fit for any GGUF on your exact hardware, self-calibrates, emits the exact llama.cpp command — or 'quantprobe auto' does it all. Falsification-tested laws; misses published at full size. pip install quantprobe

3K 93 11
Thiggel
economize

Composable efficiency techniques (speculative decoding, early exit, quantization, sparsity, KV compression) for Hugging Face models

3K 3 0
mobilint
transformers-mblt

Python toolkit for running pre-quantized Hugging Face Transformers models (LLMs, VLMs, speech recognition) on Mobilint NPUs.

3K 1 0
Prajwal7-2002
mini-infer

Minimal, educational continuous-batching LLM inference engine with Paged KV-cache, prefix caching, and speculative decoding for Qwen2.5 in pure PyTorch.

3K 5 0
YuhuanStudio
yunshu

Fast local LLM / VLM inference engine for Apple Silicon (MLX). OpenAI- and Anthropic-compatible, lossless speculative decoding (DFlash2 / MTP), hybrid-model prefix cache with RAM/SSD tiers, native Claude Code / Codex / opencode support. Qwen3.8-27B tuned first.

2K 3 0
Prajwal7-2002
infersize

Analytical performance modeling, VRAM capacity planning, speculative decoding sizing, and hardware roofline prediction for LLM serving.

2K 2 0
defai-digital
ax-engine-sglang

Official AX Engine CUDA platform. Speculative decoding on SGLang for NVIDIA GPUs on Linux amd64 and arm64.

2K 0 0
pegainfer-project
kern-llm

Model-agnostic GPU runtime for LLM inference in Rust. Ship models as verified manifests + CUDA kernels — run standalone or drop into vLLM & SGLang.

1K 248 29
Tencent
angelslim

A toolkit for compress llm model.

1K 2K 204
al-jshen
flashmap

Flow Map Speculative Decoding

1K 59 5
Mattral
flashspec

Lossless speculative decoding for HuggingFace causal language models, with a static-cache CUDA-graph fast path.

820 17 0
SafeAILab
eagle-llm

Official Implementation of EAGLE-1 (ICML'24), EAGLE-2 (EMNLP'24), and EAGLE-3 (NeurIPS'25).

569 3K 298
amagilabs
amagi-draftbench

Find the draft model (or n-gram lookup) that speeds up your local LLM: speculative-decoding sweeps for llama.cpp and vLLM with tok/s, acceptance rate, tokens per joule and peak VRAM, plus a pick per VRAM budget.

553 0 0
intutic
llama-index-llms-turing

LLM inference server for KV-cache and quantization research: int8/fp8/int4 KV caches that keep the layers low-bit storage would break in full precision, 4-bit GPTQ, EAGLE-3 speculative decoding, HuggingFace parity tests on 16 model types, and OpenAI, Anthropic and Ollama APIs on one port

521 10 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology