lightseekorg / tokenspeed
git clone https://github.com/lightseekorg/tokenspeed.git
v0.1.1 · 17d ago
🔥 on GitHub Trending today
TokenSpeed is an LLM inference engine built for agentic workloads, with a C++ scheduler control plane and Python execution plane.
Why you might care
Aimed at production agentic serving, it pairs a C++ finite-state-machine scheduler that enforces KV cache and request lifecycle safety at compile time with a Python execution layer. It targets TensorRT-LLM-level performance with vLLM-level usability, and includes a pluggable kernel registry with an MLA attention implementation for Blackwell.
+25
stars, 24h · #1,495
+501
stars, 7 days · #435
+603
stars, 30 days · #1,372
2.8k
★ total · +22% this week
368
forks · 139 open issues
Star history (as recorded here)
LanguagePython
LicenseMIT
Created2026-05-06 (5mo ago)
Last pushtoday
Watchers16
OwnerOrganization
Seen on GitHub Trending
- 2026-10-23 — #13 monthly in python · +603 ★
- 2026-10-23 — #15 weekly in python · +386 ★
- 2026-10-22 — #12 weekly in python · +501 ★
GitHub topics
b200b300blackwelldeepseekgb200gb300glmgpt-ossinklingkimilightseekllmmi355xmi455xminimaxqwenrubinspeed-of-lighttokenspeedvlm
Links
- GitHub: github.com/lightseekorg/tokenspeed
- Homepage: https://lightseek.org/blog/lightseek-tokenspeed.html
- Releases · Issues · Hacker News mentions
README excerpt
TokenSpeed is a speed-of-light LLM inference engine designed for **agentic workloads**, with TensorRT-LLM-level performance and vLLM-level usability. The goal is to be the most performant inference engine for production agentic workloads. Core components: - **Scheduler**: C++ control plane and Python execution plane. Request lifecycle, KV cache ownership, and overlap timing are encoded as a finite-state machine, with safe KV resource reuse enforced by the type system at compile time. - **Kernels**: pluggable, layered kernel system with a portable public API and a centralized registry including one of the fastest **MLA** (Multi-head Latent Attention) implementations on Blackwell for agentic workloads. - **Entrypoint**: SMG-integrated AsyncLLM for low-overhead CPU-side request handling. ## Differentiation TokenSpeed takes a fundamentally different architectural approach from existing LLM inference engines. The **PyTorch Foundation highlighted these architectural differentiators** when welcoming TokenSpeed to the PyTorch Ecosystem Landscape: > TokenSpeed is an open source LLM inference engine and the first to separate the control plane from the execution plane. The control plane is implemented in C++ as a finite-state machine, using the type system to enforce safe resource management, including request lifecycles and KV cache state, at compile time rather than runtime. The execution plane is implemented in Python, enabling fast iteration and lowering the cognitive load for researchers and engineers. This architecture combines strong correctness guarantees in the core scheduling system with the development velocity of a high-level execution layer. > > TokenSpeed also treats kernels as a first-class, modular subsystem, separating them from the core engine through a portable public API, centralized registry and selection model, and an extensible plugin mechanism for heterogeneous accelerators. More importantly, TokenSpeed is the **Switzerland** of open-source LLM inference engines: neutral because it's backed by the non-profit LightSeek Foundation rather than a commercial company, with **serious hardware and engineering support** from vendors such as NVIDIA and AMD. ## News - [2026/10] EAGLE-4 training and serving with TorchSpec and TokenSpeed. [blog] - [2026/10] Reflection's Beam at day 0: 501B MoE serving in NVFP4 on NVIDIA GB200 with TokenSpeed. [blog] - [2026/10] 🔥 TokenSpeed MLA 2 for NVIDIA Vera Rubin. [blog] - [2026/10] 🔥 685 tokens/s per user: serving Qwen3.8-Flash-Next on NVIDIA GB300 with TokenSpeed. [blog] - [2026/10] 🔥 Advancing Kimi K3 inference on AMD Instinct MI355X GPUs with TokenSpeed. [AMD blog] - [2026/09] Kimi K3 Optimization on GB300 — Part I. [blog] - [2026/08] Qwen3.8 Flash Next at Day 0 and GLM 5.3 Flash at Day 0. - [2026/08] Qwen3.8 at Day 0: 2.4T-Scale Inference with TokenSpeed. [blog] - [2026/08] TokenSpeed joins the PyTorch Ecosystem. - [2026/07] Kimi K3 at Day 0: Frontier Model Enablement on Leading Platforms with Toke
Blurb generated by claude-haiku-5-5 today. Star deltas marked ~ are extrapolated from partial history.