tokenspeed

lightseekorgMIT活跃维护

面向 Blackwell 架构 GPU 的高速 LLM 推理引擎,支持 DeepSeek、Kimi、GLM 等模型,主打极致推理吞吐与低延迟。

TokenSpeed is a speed-of-light LLM inference engine.

v0.1.1发布于 2026-10-06 05:42 UTC2,913star +27 / 7 天407fork同步于 2026-11-10 17:44 UTC

怎么上手

由 README 提炼,执行前请确认
README 未提供安装命令,请参考官方 Getting Started 文档:https://lightseek.org/tokenspeed/guides/getting-started
硬件要求按 README 说明

README 未给出具体显存或 CPU 运行要求;性能与优化案例集中在 NVIDIA Blackwell/GB200/GB300/Vera Rubin 及 AMD Instinct MI355X 等 GPU 上

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

面向 Agent 负载的开源 LLM 推理引擎,追求 TensorRT-LLM 级性能与 vLLM 级易用性

面向 Blackwell 架构 GPU 的高速 LLM 推理引擎,支持 DeepSeek、Kimi、GLM 等模型,主打极致推理吞吐与低延迟。

核心能力

  • 控制面用 C++ 有限状态机,编译期保证 KV 缓存与请求生命周期安全
  • 执行面用 Python,便于快速迭代和二次开发
  • 内核作为可插拔子系统,通过统一 API 与注册表接入异构加速器
  • 提供面向 Blackwell 优化的 MLA 实现
  • 入口层由 Rust 通过 msgpack 驱动,请求路径不经过 Python

容易踩的坑

README 未给出安装步骤,需按官方文档单独配置环境;部分模型与内核优化依赖特定 GPU 架构(如 Blackwell、MI355X),其他硬件未必可用;README 未说明默认端口与依赖版本,部署前需查阅 Server Parameters 文档

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

2 个版本v0.1.1
  1. v0.1.1TokenSpeed 0.1.1最新正式版2026-10-06 · 2026-10-06 05:42 UTC

    Biweekly component versions

    PackageVersion
    tokenspeed-mla0.2.16
    tokenspeed-scheduler0.1.25
    tokenspeed-kernel-amd0.1.4
    tokenspeed-kernel0.1.4
    tokenspeed0.1.1

    Docker: lightseekorg/tokenspeed:0.1.1 (linux/amd64, linux/arm64).

    Stable pip indexes: cu129, cu130, rocm7.2.

    Publication runs:

    What's Changed

  2. v0.1.0TokenSpeed 0.1.02026-07-24 · 2026-07-24 09:22 UTC
    查看更新说明

    What's Changed

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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 and Dynamo drive the engine from Rust over its msgpack wire, with no Python on the request path.

    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/11] Kimi K3.1 Pro at Day 0: Sparse attention on the Kimi K3 stack with TokenSpeed. [blog]
    • [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 TokenSpeed. [blog]
    • [2026/07] TML Inkling at Day 0: FP4 Inference on NVIDIA and AMD with TokenSpeed. [blog]
    • [2026/06] Deep dive into the design and optimization of TokenSpeed-Kernel. [PyTorch blog]
    • [2026/05] 🚀 TokenSpeed hits 580 TPS on Qwen3.5-397B-A17B for agentic workloads. [PyTorch blog]
    • [2026/05] 🚀 TokenSpeed is a brand new inference engine purpose-built for speed-of-light agentic workloads. [NVIDIA AI X]
    • [2026/05] TokenSpeed announced — a speed-of-light LLM inference engine for agentic workloads. [blog]

    Blogs and talks

    For technical blogs, conference talks, and engineering articles from the LightSeek Foundation, visit the LightSeek Blog.

    Sponsors and partners

    LightSeek's work is advanced by the support of sponsors and partners across the AI ecosystem.

    Performance comparison

    Documentation

    Start here:

    Citation

    @misc{tokenspeed2026,
      author       = {{TokenSpeed Team}},
      title        = {{TokenSpeed}: A Speed-of-Light {LLM} Inference Engine},
      year         = {2026},
      howpublished = {\url{https://github.com/lightseekorg/tokenspeed}}
    }