Speculators: Fast LLM Inference Get unified decoding algorithms for LLM inference with Speculators, a Python library for startup founders, with 614 GitHub stars.
615 stars 155 forks Python Quality 8/10 Updated 7/15/2026100% free ยท open source
Speculators provides a unified library for building, evaluating, and storing speculative decoding algorithms for Large Language Model (LLM) inference
pip install git+https://github.com/vllm-project/speculators.git
โข When you need to optimize LLM inference for your startup's natural language processing tasksโข When you want to compare and evaluate different decoding algorithms for your LLM modelsโข When you need to store and manage multiple speculative decoding algorithms for different LLM models1 Clone the Speculators repository using `git clone https://github.com/vllm-project/speculators.git` 2 Navigate to the repository directory using `cd speculators` 3 Install the required dependencies using `pip install -r requirements.txt` 4 Run the example script using `python examples/example.py` to see Speculators in action 5 Explore the `speculators/decoders` directory to see the available decoding algorithms and their implementations Ready-to-paste prompt Copypython examples/example.py --model_name-or-path vllm/lm_base --decoder topk --topk 5 Heads up: Make sure you have the necessary dependencies installed, including PyTorch and transformers, as Speculators relies on these libraries to function correctly
๐ค Like this skill Saves to your device
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.