Inference Engineering

Language

C++

77 entries · 14 sections

Editor’s pick

II Inference Engines 16

  1. TensorRT-LLM Tool

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

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

  2. LMDeploy Tool

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

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

  3. TokenSpeed Tool

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

    Datacenter Engines · MIT · 3k stars · Updated 2026-11

  4. RTP-LLM Tool

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

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

  5. xLLM Tool

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

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

  6. llama.cpp Tool

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

    Local & Desktop Runtimes · MIT · 136k stars · Updated 2026-11

  7. llamafile Tool

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

    Local & Desktop Runtimes · Apache-2.0 · 27k stars · Updated 2026-11

  8. KoboldCpp Tool

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

    Local & Desktop Runtimes · AGPL-3.0 · 12k stars · Updated 2026-11

  9. 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.

    Local & Desktop Runtimes · MIT + proprietary

  10. Lemonade Tool

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

    Local & Desktop Runtimes · Apache-2.0 · 6.3k stars · Updated 2026-11

  11. 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.

    Hybrid CPU–GPU & Offloading · Apache-2.0 · 20k stars · Updated 2026-11

  12. 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.

    Hybrid CPU–GPU & Offloading · MIT · 3.4k stars · Updated 2026-11

  13. FastLLM Tool

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

    Hybrid CPU–GPU & Offloading · Apache-2.0 · 5.1k stars · Updated 2026-11

  14. 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.

    Hybrid CPU–GPU & Offloading · maintenance · MIT · 9.9k stars · Updated 2026-05

  15. gemma.cpp Tool

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

    Language-Native Runtimes · Apache-2.0 · 7.1k stars · Updated 2026-11

  16. tiny-vllm Tool

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

    Minimal & Educational Engines · Apache-2.0 · 1.2k stars · Updated 2026-11

III Distributed Serving & Orchestration 5

  1. xLLM Service Tool

    Cluster service layer for JD's xLLM engine that co-schedules online and offline traffic and shifts instances between prefill and decode roles at runtime.

    Distributed & Disaggregated Serving · Apache-2.0 · 100 stars · Updated 2026-10

  2. Dynamo-Triton (Triton Inference Server) Tool

    Multi-framework model server with dynamic batching, model ensembles, and TensorRT, PyTorch, ONNX, OpenVINO, and Python backends.

    Serving Frameworks & Platforms · BSD-3-Clause · 11k stars · Updated 2026-11

  3. OpenVINO Model Server Tool

    C++ model server for OpenVINO with OpenAI-compatible endpoints for LLMs and KServe APIs for classic models, on Intel CPUs, GPUs, and NPUs.

    Serving Frameworks & Platforms · Apache-2.0 · 965 stars · Updated 2026-11

  4. ONNX Spec

    Open graph format and operator set for moving models from training frameworks to runtimes such as ONNX Runtime, TensorRT, and OpenVINO.

    Model Packaging, Loading & Cold Starts · Apache-2.0 · 22k stars · Updated 2026-11

  5. Model Streamer Library

    Streams safetensors tensors from local disk or object storage into GPU memory with concurrent reads; vLLM exposes it as a load format.

    Model Packaging, Loading & Cold Starts · Apache-2.0 · 414 stars · Updated 2026-11

V Model Compression 1

  1. BitNet b1.58 and bitnet.cpp Tool

    Ternary (1.58-bit) weights trained from scratch, with bitnet.cpp lookup-table kernels for running such models on CPUs and GPUs.

    Number Formats & Specs · MIT · 42k stars · Updated 2026-07

VI Decoding Acceleration 1

  1. XGrammar Library

    Grammar engine that prechecks context-independent tokens to build masks cheaply; XGrammar-2 adds tag-triggered structures for tool calls.

    Structured Outputs & Constrained Decoding · Apache-2.0 · 2k stars · Updated 2026-11

VII KV Cache & Attention 1

  1. Mooncake Library

    Moonshot AI's KV-centric infrastructure, an RDMA transfer engine plus a distributed KV store, used as a backend by vLLM, SGLang, and TensorRT-LLM.

    KV Cache Management & Offloading · Apache-2.0 · 7.1k stars · Updated 2026-11

VIII Scheduling & Parallelism 1

  1. NIXL Library

    Transfer library with one API over GPU, CPU, file, and object memory, used by engines to move KV blocks through UCX, libfabric, GDS, and other plugins.

    Prefill–Decode Disaggregation · Apache-2.0 · 1.4k stars · Updated 2026-11

IX Kernels & GPU Programming 11

  1. CUTLASS Library

    NVIDIA's C++ templates and CuTe layout abstractions for GEMM-class kernels, plus the Python CuTe DSL, from Ampere through Blackwell.

    Kernel Libraries · BSD-3-Clause · 11k stars · Updated 2026-11

  2. ThunderKittens Library

    Tile primitives embedded in CUDA C++ for writing attention and GEMM kernels; version 2.0 adds Blackwell, MXFP8, and NVFP4 support.

    Kernel Libraries · MIT · 3.8k stars · Updated 2026-09

  3. AITER Library

    AMD's operator library for inference and training on ROCm, combining Triton, Composable Kernel, and hand-written assembly backends.

    Kernel Libraries · MIT · 621 stars · Updated 2026-11

  4. Composable Kernel Library

    AMD's C++ templates for tiled GEMM, attention, and fused operators on Instinct GPUs; the source now lives in the rocm-libraries monorepo.

    Kernel Libraries · 476 stars · Updated 2026-11

  5. HipKittens Library

    ThunderKittens-style tile primitives for AMD CDNA 3 and CDNA 4 GPUs, also shipped as a kernel backend inside AITER.

    Kernel Libraries · MIT · 487 stars · Updated 2026-10

  6. CUDA Programming Guide Docs

    NVIDIA's normative reference for the CUDA execution model, memory hierarchy, C++ language extensions, and per-architecture features.

    Kernel Languages & DSLs

  7. CUDA C++ Best Practices Guide Docs

    Official optimization workflow for CUDA C++ covering memory coalescing, shared memory, occupancy, and the assess-parallelize-optimize cycle.

    Kernel Languages & DSLs

  8. NCCL Library

    NVIDIA's collective and point-to-point communication library over NVLink, PCIe, InfiniBand, and RoCE; the default PyTorch GPU backend.

    Collective Communication · Apache-2.0 + BSD-3-Clause · 5.3k stars · Updated 2026-11

  9. NVSHMEM Library

    OpenSHMEM-style global address space for NVIDIA GPUs with one-sided puts, gets, atomics, and signals issued from inside kernels.

    Collective Communication · Apache-2.0 · 607 stars · Updated 2026-11

  10. RCCL Library

    AMD's NCCL-compatible collective library for Instinct GPUs over Infinity Fabric and RDMA; its source now lives in the rocm-systems monorepo.

    Collective Communication · 568 stars · Updated 2026-11

  11. MSCCL++ Library

    GPU-driven communication stack with one-sided put, get, and signal primitives over NVLink, xGMI, and InfiniBand for custom collectives.

    Collective Communication · MIT · 576 stars · Updated 2026-11

X Compilers & Graph Runtimes 14

  1. AOTInductor Docs

    Compiles exported PyTorch programs into a shared library and package that load and run from C++ or Python without recompiling.

    PyTorch Compilation Stack

  2. Torch-TensorRT Tool

    Compiler backend that lowers torch.compile or torch.export graphs to TensorRT engines and falls back to PyTorch for unsupported ops.

    PyTorch Compilation Stack · BSD-3-Clause · 3k stars · Updated 2026-11

  3. TensorRT Tool

    NVIDIA's inference optimizer and runtime; version 11 removed weakly typed networks, implicit quantization, and IPluginV2.

    Vendor Runtimes · proprietary · 13k stars · Updated 2026-11

  4. ONNX Runtime Tool

    Cross-platform runtime for ONNX graphs that applies graph optimizations and dispatches to execution providers like CUDA, TensorRT, and QNN.

    Vendor Runtimes

  5. TensorRT for RTX Tool

    Lightweight TensorRT variant for RTX PCs and workstations that finishes engine optimization just-in-time on the end user's GPU.

    Vendor Runtimes · proprietary · 117 stars · Updated 2026-10

  6. ONNX Runtime GenAI Library

    Generation loop on top of ONNX Runtime with KV cache handling, sampling, and a model builder that exports LLMs to optimized ONNX.

    Vendor Runtimes

  7. OpenVINO Tool

    Intel's toolkit for converting, optimizing, and running models on Intel CPUs, integrated and discrete GPUs, and NPUs.

    Vendor Runtimes · Apache-2.0 · 12k stars · Updated 2026-11

  8. OpenVINO GenAI Library

    C++ and Python pipelines for LLMs, VLMs, Whisper, and image generation on OpenVINO, with continuous batching and speculative decoding.

    Vendor Runtimes · Apache-2.0 · 624 stars · Updated 2026-11

  9. MIGraphX Tool

    AMD's graph compiler for ROCm that imports ONNX models, fuses operators, and tunes kernels for Instinct and Radeon GPUs.

    Vendor Runtimes · MIT · 341 stars · Updated 2026-11

  10. XLA Tool

    Compiler behind JAX and TensorFlow, also usable from PyTorch, that turns StableHLO graphs into fused code for TPUs, GPUs, and CPUs.

    Open Compiler Stacks · Apache-2.0 · 4.7k stars · Updated 2026-11

  11. Apache TVM Tool

    Python-first ML compilation framework with the Relax graph IR and a tensor-level IR, used underneath MLC LLM and WebLLM.

    Open Compiler Stacks · Apache-2.0 · 14k stars · Updated 2026-11

  12. IREE Tool

    MLIR-based compiler and runtime that lowers models to one IR and deploys them from datacenter GPUs down to mobile and edge devices.

    Open Compiler Stacks · Apache-2.0 · 4k stars · Updated 2026-11

  13. MLIR Library

    LLVM subproject providing reusable IR dialects and pass infrastructure that many ML compilers, Triton and IREE included, are built on.

    Open Compiler Stacks · Apache-2.0 · 42k stars · Updated 2026-11

  14. StableHLO Spec

    Versioned operation set that acts as the portability layer between JAX, PyTorch, and TensorFlow and compilers such as XLA and IREE.

    Open Compiler Stacks · Apache-2.0 · 730 stars · Updated 2026-11

XI Hardware & Accelerators 1

  1. TT-Metalium Tool

    Tenstorrent's low-level kernel programming model and TT-NN operator library for its Wormhole and Blackhole accelerators.

    Other Accelerators & ASICs · Apache-2.0 · 139 stars · Updated 2026-11

XII Benchmarking & Capacity Planning 1

  1. llama-bench Tool

    Bundled llama.cpp tool that measures prompt-processing and token-generation speed across models, batch sizes, threads, and GPU offload settings.

    Benchmark Tools · MIT · 136k stars · Updated 2026-11

XIII Observability & Operations 2

  1. Perfetto Tool

    Browser-based trace viewer with a SQL trace processor, used to inspect PyTorch, Chrome-format, and Linux system traces without uploading them.

    Profiling & Debugging · Apache-2.0 · 6.8k stars · Updated 2026-11

  2. NVIDIA DCGM Tool

    Data Center GPU Manager library and dcgmi CLI for fleet health checks, active diagnostics, and policy alerts; the telemetry source behind dcgm-exporter.

    Monitoring & Telemetry · Apache-2.0 · 820 stars · Updated 2026-11

XIV Edge, Mobile & Browser 15

  1. ExecuTorch Library

    PyTorch's on-device runtime that exports models ahead of time and runs them on phones, wearables, and microcontrollers through pluggable hardware backends.

    Mobile & Embedded Runtimes · BSD-3-Clause · 5.2k stars · Updated 2026-11

  2. LiteRT-LM Library

    LLM orchestration layer on top of LiteRT for Android, iOS, web, desktop, and IoT, with GPU and NPU paths and multi-token prediction for Gemma 4.

    Mobile & Embedded Runtimes · Apache-2.0 · 6.9k stars · Updated 2026-11

  3. LiteRT Library

    Runtime that succeeds TensorFlow Lite, converting models and running them on phones and edge devices through CPU, GPU, and NPU accelerators.

    Mobile & Embedded Runtimes · Apache-2.0 · 3.6k stars · Updated 2026-11

  4. MNN Library

    Lightweight C++ inference engine from Alibaba for mobile and embedded devices, including an LLM module for running chat models on Android and iOS.

    Mobile & Embedded Runtimes · Apache-2.0 · 17k stars · Updated 2026-11

  5. MLC LLM Tool

    Compiler-based LLM deployment stack built on TVM that targets iOS, Android, desktop GPUs, and browsers from one model definition.

    Mobile & Embedded Runtimes · Apache-2.0 · 24k stars · Updated 2026-11

  6. Cactus Library

    Hybrid edge-and-cloud engine for phones and wearables with its own kernels, quantization, and OpenAI-style APIs; source-available under a revenue-gated license.

    Mobile & Embedded Runtimes · source-available · 15k stars · Updated 2026-11

  7. MLX Library

    Array framework for Apple silicon with NumPy-style Python and C++ APIs, lazy evaluation, and unified memory; the base layer under mlx-lm.

    Apple Silicon · MIT · 29k stars · Updated 2026-11

  8. Windows ML Docs

    Windows-managed copy of ONNX Runtime that routes models to NPU, GPU, or CPU through execution providers that Windows installs and keeps updated.

    PCs & NPUs · proprietary

  9. ONNX Runtime QNN Execution Provider Docs

    ONNX Runtime provider that offloads models to the Hexagon NPU on Snapdragon through Qualcomm AI Engine Direct, including Windows on Arm laptops.

    PCs & NPUs · MIT

  10. AMD Ryzen AI Software Docs

    AMD's stack for running ONNX and LLM workloads on Ryzen AI PCs, using the XDNA NPU and integrated GPU through ONNX Runtime and the Quark quantizer.

    PCs & NPUs · MIT · 902 stars · Updated 2026-11

  11. OpenVINO NPU Plugin Docs

    OpenVINO documentation for its NPU plugin, covering drivers, the model compiler, and model caching for running inference on Intel neural processors.

    PCs & NPUs · Apache-2.0 · 12k stars · Updated 2026-11

  12. Qualcomm AI Engine Direct SDK Library

    Qualcomm's low-level runtime API for the Hexagon NPU, Adreno GPU, and Kryo CPU, which Genie and ONNX Runtime's QNN provider build on; also called QAIRT.

    PCs & NPUs · proprietary

  13. wllama Library

    WebAssembly binding for llama.cpp that runs GGUF models in a browser tab, with worker isolation, split-file loading, and WebGPU support in v3.

    Browser & WebGPU · MIT · 1.4k stars · Updated 2026-11

  14. TensorRT Edge-LLM Library

    C++ runtime for LLMs and VLMs on Jetson, DRIVE, and DGX Spark with an export and engine-build workflow and no Python dependency at run time.

    Embedded Accelerators · experimental · Apache-2.0 · 637 stars · Updated 2026-11

  15. Hailo AI Software Suite Tool

    Hailo's compiler, HailoRT runtime, and model zoo for its accelerators, including precompiled LLM, VLM, and speech models served through a REST API.

    Embedded Accelerators · 235 stars · Updated 2026-10

XV Verticals 5

  1. stable-diffusion.cpp Tool

    Pure C/C++ inference for Stable Diffusion, Flux, Wan, and similar models on ggml, with GGUF weights and CPU, CUDA, Vulkan, and Metal backends.

    Image & Video Generation · MIT · 8.1k stars · Updated 2026-11

  2. whisper.cpp Tool

    Port of OpenAI's Whisper speech recognition to C/C++ on ggml, for CPUs, GPUs, and mobile devices.

    Speech & Real-Time Audio · MIT · 55k stars · Updated 2026-11

  3. sherpa-onnx Library

    Offline speech toolkit for recognition, synthesis, diarization, voice activity detection, and enhancement on ONNX Runtime, from servers to phones and boards.

    Speech & Real-Time Audio · Apache-2.0 · 16k stars · Updated 2026-11

  4. Triton FIL Backend Tool

    Triton backend that serves XGBoost, LightGBM, scikit-learn, and cuML tree ensembles with GPU or CPU forest inference.

    Classical ML & RecSys · Apache-2.0 · 94 stars · Updated 2026-11

  5. Treelite Library

    Library and file format for decision-tree forests that lets C++ applications load, exchange, and persist models from several tree-training frameworks.

    Classical ML & RecSys · Apache-2.0 · 833 stars · Updated 2026-11

XVIII Learning Resources 3

  1. CUTLASS Tutorial: Mastering the Tensor Memory Accelerator (TMA) Article

    Explains Hopper's TMA unit for asynchronous bulk copies, including loads, stores, and multicast, and how to drive it through CuTe.

    Deep Dives & Essays

  2. CUTLASS Tutorial: Fast Matrix Multiplication with WGMMA on Hopper Article

    Shows how warpgroup-level wgmma instructions work on Hopper and how CUTLASS and CuTe expose them in a GEMM mainloop.

    Deep Dives & Essays

  3. Fast LLM Inference From Scratch Article

    Builds a single-GPU inference engine in C++ and CUDA without libraries, profiling each step from a naive CPU loop to fused kernels.

    Deep Dives & Essays