Inference Engineering

II. Inference Engines

The runtimes that actually execute models: batching requests, managing the KV cache, and launching kernels.

46 entries · 5 subsections

Editor’s pick

II.1 Datacenter Engines 13

  1. vLLM Tool

    High-throughput serving engine built on paged KV cache management, continuous batching, and a broad hardware plugin ecosystem.

    Apache-2.0 · 97k stars · Updated 2026-11

  2. SGLang Tool

    Serving engine with RadixAttention prefix reuse, fast constrained decoding, and large-scale expert-parallel deployments.

    Apache-2.0 · 39k stars · Updated 2026-11

  3. TensorRT-LLM Tool

    NVIDIA's engine with a PyTorch-based runtime, in-flight batching, and kernels tuned for Hopper and Blackwell GPUs.

    Apache-2.0 · 15k stars · Updated 2026-11

  4. LMDeploy Tool

    Toolkit pairing the C++ TurboMind engine with a PyTorch engine, with weight and KV-cache quantization and Ascend support.

    Apache-2.0 · 8.2k stars · Updated 2026-11

  5. Modular MAX Tool

    Graph compiler, Mojo kernel library, and OpenAI-compatible serving stack that targets NVIDIA and AMD GPUs from one codebase.

    Apache-2.0 + custom · 30k stars · Updated 2026-11

  6. DeepInfer Tool

    DeepSeek's production engine, released for offline inference with expert parallelism, batch invariance, and Blackwell and Ascend support.

    Apache-2.0 · 26k stars · Updated 2026-11

  7. TokenSpeed Tool

    Engine for agentic workloads that splits a C++ state-machine control plane from a Python execution plane, with pluggable kernels.

    MIT · 3k stars · Updated 2026-11

  8. LightLLM Tool

    Pure-Python serving framework with token-level KV cache management, often used as the base for serving research prototypes.

    Apache-2.0 · 4.4k stars · Updated 2026-11

  9. RTP-LLM Tool

    Alibaba's in-house engine behind Taobao and other services, with a C++ scheduler and prefill-decode separation.

    Apache-2.0 · 1.4k stars · Updated 2026-11

  10. xLLM Tool

    Engine built at JD.com for Chinese accelerators such as Ascend, Cambricon, and Hygon, with a service layer decoupled from compute.

    Apache-2.0 · 1.6k stars · Updated 2026-11

  11. FastDeploy Tool

    PaddlePaddle-based LLM and VLM deployment toolkit from Baidu, with prefill-decode disaggregation and many Chinese accelerator backends.

    Apache-2.0 · 3.7k stars · Updated 2026-09

  12. Chitu Tool

    Engine from Tsinghua's PACMAN group for NVIDIA and Chinese accelerators that scales from CPU+GPU hybrid boxes to clusters.

    Apache-2.0 · 3k stars · Updated 2026-11

  13. ATOM Tool

    AMD's lightweight vLLM-style engine built on AITER kernels for Instinct GPUs, also usable as a vLLM plugin.

    MIT · 209 stars · Updated 2026-11

  14. Text Generation Inference Tool

    Hugging Face's Rust and Python LLM server; archived in 2026 in favour of vLLM and SGLang.

    archived · Superseded by vLLM · Apache-2.0 · 11k stars · Updated 2026-03

II.2 Local & Desktop Runtimes 16

  1. llama.cpp Tool

    Dependency-free C/C++ inference with GGUF quantization, running on CPUs, GPUs, and Apple silicon.

    MIT · 136k stars · Updated 2026-11

  2. Ollama Tool

    Go tool that pulls, manages, and serves local models through a CLI and REST API, with ggml- and MLX-based backends.

    MIT · 188k stars · Updated 2026-11

  3. MLX LM Tool

    Python package for running, quantizing, and fine-tuning LLMs on Apple silicon with MLX, including a local OpenAI-style server.

    MIT · 7.7k stars · Updated 2026-11

  4. LM Studio Tool

    Closed-source desktop app and local API server for Mac, Windows, and Linux that runs models on llama.cpp and MLX engines.

    proprietary · 5.4k stars · Updated 2026-11

  5. vLLM Metal Tool

    Hardware plugin that runs vLLM on Apple silicon Macs, using MLX for compute and a paged varlen Metal attention kernel.

    Apache-2.0 · 2k stars · Updated 2026-11

  6. exo Tool

    Pools Macs and other devices into one inference cluster with automatic discovery, tensor parallelism, and RDMA over Thunderbolt.

    Apache-2.0 · 49k stars · Updated 2026-11

  7. Jan Tool

    Open-source desktop chat app with a bundled llama.cpp engine that runs models offline and exposes a local OpenAI-compatible server.

    Apache-2.0 · 46k stars · Updated 2026-11

  8. LocalAI Tool

    Self-hosted OpenAI-compatible API server that routes text, image, audio, and embedding requests to pluggable CPU or GPU backends.

    MIT · 51k stars · Updated 2026-11

  9. llamafile Tool

    Packs model weights and a llama.cpp server into one executable that runs across operating systems and CPUs via Cosmopolitan Libc.

    Apache-2.0 · 27k stars · Updated 2026-11

  10. Docker Model Runner Tool

    Pulls models as OCI artifacts and serves them through llama.cpp, vLLM, or SGLang, inside Docker or as a standalone binary.

    Apache-2.0 · 666 stars · Updated 2026-11

  11. RamaLama Tool

    Runs and serves models inside rootless containers, picking a GPU-specific image for the host and treating models like images.

    MIT · 3.1k stars · Updated 2026-11

  12. ExLlamaV3 Library

    Inference library for consumer NVIDIA GPUs built around the QTIP-based EXL3 format, with tensor parallelism and TabbyAPI as its server.

    MIT · 1.9k stars · Updated 2026-11

  13. KoboldCpp Tool

    Single-executable llama.cpp distribution with a bundled web UI and compatible APIs, plus image, speech, and music generation.

    AGPL-3.0 · 12k stars · Updated 2026-11

  14. TextGen (text-generation-webui) Tool

    Desktop app and API for local models that switches between llama.cpp, ExLlamaV3, and Transformers backends, with portable builds.

    AGPL-3.0 · 48k stars · Updated 2026-08

  15. Foundry Local Tool

    Microsoft's on-device runtime and SDKs that pick NPU, GPU, or CPU execution through ONNX Runtime for apps that embed local models.

    MIT + proprietary

  16. Lemonade Tool

    Local server with OpenAI-, Anthropic-, and Ollama-compatible APIs, tuned by AMD engineers for Ryzen AI NPUs and Radeon GPUs.

    Apache-2.0 · 6.3k stars · Updated 2026-11

II.3 Hybrid CPU–GPU & Offloading 6

  1. KTransformers Tool

    CPU–GPU heterogeneous runtime that keeps MoE experts on AMX/AVX-512 CPU kernels and plugs into SGLang; also supports MoE fine-tuning.

    Apache-2.0 · 20k stars · Updated 2026-11

  2. ik_llama.cpp Tool

    Fork of llama.cpp with extra quantization types and faster CPU and hybrid CPU/GPU paths, widely used to run large MoE models at home.

    MIT · 3.4k stars · Updated 2026-11

  3. FastLLM Tool

    C++ engine without a PyTorch dependency that splits dense and MoE models across GPUs, CPU NUMA nodes, and disk.

    Apache-2.0 · 5.1k stars · Updated 2026-11

  4. AirLLM Library

    Streams weights layer by layer, or expert by expert for MoE, so very large models run on GPUs with only a few gigabytes of memory.

    Apache-2.0 · 43k stars · Updated 2026-11

  5. PowerInfer Tool

    Exploits activation sparsity by keeping frequently firing neurons on the GPU and computing the rest on the CPU, from the SOSP 2024 paper.

    maintenance · MIT · 9.9k stars · Updated 2026-05

  6. FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU Paper

    Offloading scheduler that searches placements of weights, activations, and KV cache across GPU, CPU, and disk for batch throughput.

    ICML 2023 · Code

II.4 Language-Native Runtimes 6

  1. mistral.rs Tool

    Rust engine with paged attention, in-situ quantization, multimodal models, and OpenAI- and Anthropic-compatible servers on CUDA and Metal.

    MIT · 7.9k stars · Updated 2026-11

  2. Candle Library

    Hugging Face's minimalist Rust ML framework with CPU, CUDA, Metal, and WebAssembly backends and many ready-made model ports.

    Apache-2.0 · 21k stars · Updated 2026-11

  3. Burn Library

    Rust deep learning framework that JIT-compiles tensor op streams with automatic fusion across CUDA, ROCm, Metal, Vulkan, and WebGPU.

    Apache-2.0 · 16k stars · Updated 2026-11

  4. ZML Tool

    Zig inference stack that compiles models through MLIR and OpenXLA for NVIDIA, AMD, Intel, TPU, and Trainium from one codebase.

    Apache-2.0 · 4.3k stars · Updated 2026-11

  5. gemma.cpp Tool

    Google's compact C++ CPU engine for Gemma models, built on Highway portable SIMD and aimed at research and experimentation.

    Apache-2.0 · 7.1k stars · Updated 2026-11

  6. llama3.java Tool

    Single-file, dependency-free Java inference for Llama-family GGUF models, also used to test JVM and GraalVM compiler optimizations.

    MIT · 818 stars · Updated 2026-04

II.5 Minimal & Educational Engines 5

  1. Nano-vLLM Tool

    Readable re-implementation of a vLLM-style engine in about a thousand lines of Python, with prefix caching and CUDA graphs.

    MIT · 17k stars · Updated 2026-04

  2. Mini-SGLang Tool

    Compact, type-annotated rewrite of SGLang in about 5,000 lines of Python, with radix cache, chunked prefill, and overlap scheduling.

    MIT · 5.6k stars · Updated 2026-05

  3. tiny-vllm Tool

    Course plus C++/CUDA codebase that builds a small vLLM-style server step by step, from safetensors loading to paged attention.

    Apache-2.0 · 1.2k stars · Updated 2026-11

  4. tiny-llm Course

    Course that builds a Qwen serving stack on MLX from array ops up, adding KV cache, batching, and hand-written Metal kernels.

    Apache-2.0 · 5.8k stars · Updated 2026-11

  5. gpt-fast Tool

    Under 1,000 lines of PyTorch showing how torch.compile, int8/int4 weight quantization, and speculative decoding speed up generation.

    maintenance · BSD-3-Clause · 6.3k stars · Updated 2025-08