Awesome Scalability for AI: A Curated List of AI Infrastructure for LLM Inference, Training, Vector Search and LLMOps
A curated, opinionated list of AI infrastructure for building and scaling LLM systems: inference engines, distributed serving on Kubernetes, kernels and quantization, training and fine-tuning frameworks, GPU orchestration, vector databases and ANN libraries, data ingestion, gateways, caching, observability, evaluation, guardrails, GPU clouds, hardware, and engineering blog posts worth reading. It is for ML platform engineers, AI engineers and SREs choosing a stack, and for anyone learning how large-scale AI systems are built.
Every link was checked by hand or script when this list was last reviewed. Descriptions focus on what each project is for and when to pick it, not on marketing claims.
Last reviewed: December 2026
Table of Contents
How to use this list
- Start with Best-of picks by scenario if you need a default stack quickly.
- Each section is a table with what it is and pick it when, so you can shortlist without opening every link.
- Projects move fast. Before adopting one, check its licence, recent releases, and whether it supports your hardware and models.
Best-of picks by scenario
| Scenario |
Our pick |
Why |
| Serve an open model on NVIDIA GPUs with an OpenAI-compatible API |
vLLM |
Broad model and hardware support, continuous batching, PagedAttention, large community |
| Many requests sharing long prefixes, or heavy structured output |
SGLang |
Prefix caching (RadixAttention) and fast constrained decoding |
| Squeeze maximum performance from NVIDIA hardware |
TensorRT-LLM |
Vendor-optimised kernels and quantization paths |
| Run models on a laptop or Apple Silicon |
llama.cpp or Ollama |
Quantized GGUF models on CPU, Metal and GPUs; Ollama adds easy model management |
| Kubernetes-native LLM serving at scale |
llm-d or vLLM production-stack |
Cache-aware routing and disaggregation built around vLLM |
| Fine-tune a model on one GPU |
Unsloth or TRL + PEFT |
Memory-efficient LoRA/QLoRA with simple APIs |
| Pre-train or fine-tune across many GPUs |
torchtitan, Megatron-LM or DeepSpeed |
Proven parallelism strategies at scale |
| RL post-training for reasoning |
verl or OpenRLHF |
Scalable RL pipelines integrated with fast rollout engines |
| Vectors next to your relational data |
pgvector |
One database, transactions, SQL filters |
| Dedicated vector search with filtering at scale |
Qdrant or Milvus |
Purpose-built indexes, quantization, distributed deployments |
| Hybrid keyword + vector search with ranking |
Vespa or OpenSearch |
Mature full-text search with vector support |
| One API in front of many model providers |
LiteLLM |
Unified API, budgets, fallbacks, logging |
| LLM tracing and prompt management, self-hostable |
Langfuse or Arize Phoenix |
OpenTelemetry-friendly tracing plus evals |
| Prompt and RAG evaluation in CI |
promptfoo or Ragas |
Declarative test cases, RAG-specific metrics |
| Red-teaming an LLM app |
garak or PyRIT |
Automated probes for jailbreaks, injection and leakage |
| Run batch GPU jobs across clouds cheaply |
SkyPilot |
Finds available GPUs across clouds and Kubernetes, handles spot instances |
| Parse PDFs and office files for RAG |
Docling |
Layout-aware parsing with tables, exports to Markdown and JSON |
Inference engines and servers
| Project |
What it is |
Pick it when |
| vLLM |
High-throughput LLM inference and serving engine with PagedAttention and continuous batching |
You want a widely supported default for open-model serving |
| SGLang |
Fast serving framework with RadixAttention prefix caching and structured generation |
Workloads with shared prefixes, agents, or constrained outputs |
| TensorRT-LLM |
NVIDIA library for optimised LLM inference on NVIDIA GPUs |
You run NVIDIA hardware and want vendor-tuned performance |
| NVIDIA Dynamo |
Distributed inference framework for disaggregated prefill/decode and KV-aware routing across engines |
Multi-node serving of large or reasoning models |
| Text Generation Inference |
Hugging Face’s LLM serving toolkit |
You are invested in the Hugging Face ecosystem; check the project’s current maintenance status |
| Triton Inference Server |
NVIDIA multi-framework inference server (TensorRT, PyTorch, ONNX, Python backends) |
Serving many model types, not only LLMs, behind one server |
| KServe |
Kubernetes-native model serving platform with autoscaling and standard inference protocols |
Standardising model serving on Kubernetes |
| Ray (Ray Serve) |
Distributed Python framework with a serving library for composing models |
Python-heavy pipelines that mix models and business logic |
| BentoML |
Framework for packaging models and code into deployable inference services |
Shipping custom inference APIs quickly |
| MLServer |
Inference server implementing the V2 (Open Inference) protocol for Python ML models |
Classic ML models alongside LLMs with a standard protocol |
| LoRAX |
Multi-LoRA inference server that serves many fine-tuned adapters on one base model |
Per-customer or per-task adapters at low cost |
Local, edge and consumer-GPU inference
| Project |
What it is |
Pick it when |
| llama.cpp |
C/C++ inference for GGUF models on CPUs, Apple Silicon and GPUs, with a built-in server |
Local, offline or CPU inference |
| Ollama |
Tool to download, manage and run local models behind a simple API |
Developers who want local models with minimal setup |
| MLC LLM |
Compiler-based deployment of LLMs to many backends, including phones and browsers |
On-device and cross-platform deployment |
| ExLlamaV2 |
Fast inference library for consumer NVIDIA GPUs with its own quantization format |
Running large quantized models on gaming GPUs |
| KTransformers |
Framework for hybrid CPU/GPU inference with kernel-level optimisations, aimed at large MoE models |
Running very large models on limited GPU memory |
| Open WebUI |
Self-hosted chat interface for local and remote models |
A private ChatGPT-style UI on your own infrastructure |
Distributed inference on Kubernetes
| Project |
What it is |
Pick it when |
| llm-d |
Kubernetes-native distributed inference stack built on vLLM, with cache-aware routing and disaggregated serving |
Large-scale vLLM deployments on Kubernetes |
| vLLM production-stack |
Reference deployment of vLLM on Kubernetes with routing, observability and KV cache offloading |
A supported starting point for vLLM clusters |
| AIBrix |
Cloud-native control-plane components for LLM inference (routing, autoscaling, LoRA management) |
Building an internal inference platform |
| Gateway API Inference Extension |
Kubernetes project that adds model-aware load balancing to Gateway API implementations |
Routing to model servers based on load, queues and LoRA adapters |
| KubeRay |
Kubernetes operator for running Ray clusters |
Ray Serve or Ray training jobs on Kubernetes |
| Envoy AI Gateway |
Envoy-based gateway for routing and managing traffic to LLM providers and self-hosted models |
You already run Envoy and want AI traffic policies |
| Project |
What it is |
Pick it when |
| FlashAttention |
Fast, memory-efficient exact attention kernels |
Training or serving transformers on supported GPUs |
| FlashInfer |
Kernel library for LLM serving (attention, sampling, KV cache operations) |
Building or tuning an inference engine |
| Triton |
Language and compiler for writing custom GPU kernels in Python |
Custom fused kernels without writing CUDA |
| Liger Kernel |
Triton kernels for LLM training that reduce memory and increase throughput |
Faster fine-tuning with drop-in kernel replacements |
| LMCache |
KV cache layer that stores and reuses KV caches across requests and engines (GPU, CPU, disk) |
Long shared contexts, multi-turn chat, RAG with repeated documents |
| Punica |
Research system and kernels for serving many LoRA adapters efficiently |
Understanding multi-LoRA batching |
| NCCL |
NVIDIA collective communication library for multi-GPU and multi-node training and inference |
Underlies most multi-GPU PyTorch workloads |
Quantization and model compression
| Project |
What it is |
Pick it when |
| LLM Compressor |
Library for applying quantization and sparsity to models for deployment with vLLM |
Producing quantized checkpoints for vLLM |
| TensorRT Model Optimizer |
NVIDIA library for quantization, pruning and distillation |
Deploying with TensorRT-LLM or other NVIDIA stacks |
| torchao |
PyTorch-native quantization and sparsity for training and inference |
Staying inside PyTorch |
| llama.cpp (GGUF tools) |
Conversion and quantization tools for GGUF models |
Local inference formats |
Background reading: GPTQ and AWQ introduced two widely used post-training weight quantization methods.
Training and fine-tuning frameworks
| Project |
What it is |
Pick it when |
| PyTorch (FSDP docs) |
The dominant deep learning framework; FSDP shards parameters, gradients and optimizer states |
Most training work |
| torchtitan |
PyTorch-native platform for large-scale pre-training with composable parallelism |
Learning or running modern parallelism in pure PyTorch |
| Megatron-LM |
NVIDIA’s library for training large transformers with tensor, pipeline and other parallelism |
Very large models on NVIDIA clusters |
| DeepSpeed |
Microsoft library for distributed training (ZeRO optimizer sharding) and inference |
Memory-efficient large-model training |
| JAX |
Composable transformations and XLA compilation for accelerators |
TPU training or research codebases built on JAX |
| Accelerate |
Hugging Face library that runs the same PyTorch code on one or many devices |
Scaling an existing training script with little change |
| Nanotron |
Minimal library for pre-training transformers with 3D parallelism |
Readable large-scale training code |
| LLM Foundry |
Training and fine-tuning code for LLMs from the MosaicML team |
End-to-end training recipes |
| NeMo |
NVIDIA framework for building and training generative AI models |
NVIDIA-centric training pipelines |
| torchtune |
PyTorch-native library of fine-tuning recipes |
Hackable fine-tuning recipes in plain PyTorch; check current maintenance status |
| Unsloth |
Memory-efficient fine-tuning with custom kernels |
Fast LoRA/QLoRA on a single GPU |
| Axolotl |
Config-driven fine-tuning tool supporting many methods |
Reproducible fine-tuning runs from YAML |
| PEFT |
Parameter-efficient fine-tuning methods (LoRA and others) |
Adapters on top of Transformers models |
| TRL |
Library for SFT, preference optimisation (DPO) and RL training of language models |
Post-training with Hugging Face tooling |
Reinforcement learning post-training
| Project |
What it is |
Pick it when |
| verl |
Flexible RL training library for LLMs that integrates with vLLM and SGLang for rollouts |
Large-scale RL with verifiable rewards |
| OpenRLHF |
Ray-based framework for RLHF and related algorithms at scale |
Distributed PPO, GRPO and similar training |
| TRL |
Trainers for GRPO, DPO, PPO and more |
Smaller-scale experiments with simple APIs |
Compute orchestration and scheduling
| Project |
What it is |
Pick it when |
| Ray |
Distributed compute framework for training, tuning, data processing and serving |
Python workloads that need to scale beyond one machine |
| SkyPilot |
Runs AI jobs on any cloud or Kubernetes cluster, finding available and cheaper GPUs |
Multi-cloud GPU access and spot instances |
| dstack |
Open-source orchestration for AI workloads across clouds and on-prem |
A simpler alternative to Kubernetes for AI teams |
| Kueue |
Kubernetes-native job queueing and quota management |
Sharing a GPU cluster fairly between teams |
| Volcano |
Batch scheduler for Kubernetes with gang scheduling |
Distributed training jobs that need all pods scheduled together |
| Kubeflow Trainer |
Kubernetes operator for distributed training and fine-tuning jobs |
Running PyTorch and other training jobs on Kubernetes |
GPU infrastructure on Kubernetes
| Project |
What it is |
Pick it when |
| NVIDIA GPU Operator |
Automates drivers, container toolkit, device plugin and monitoring on Kubernetes GPU nodes |
Managing NVIDIA GPU nodes at scale |
| NVIDIA device plugin |
Exposes GPUs as schedulable Kubernetes resources |
The minimum needed to schedule GPU pods |
| NVIDIA Container Toolkit |
Lets containers access NVIDIA GPUs |
Running GPU containers with Docker or containerd |
| DCGM Exporter |
Exports GPU metrics (utilisation, memory, power, errors) to Prometheus |
GPU monitoring dashboards and alerts |
| Prometheus and Grafana |
Metrics collection and dashboards |
Standard monitoring for inference clusters |
Vector databases and search engines
| Project |
What it is |
Pick it when |
| pgvector |
Vector similarity search extension for PostgreSQL (HNSW and IVFFlat indexes) |
You already run PostgreSQL and have up to tens of millions of vectors |
| pgvectorscale |
PostgreSQL extension that adds a disk-friendly ANN index on top of pgvector |
Larger PostgreSQL vector workloads |
| Qdrant |
Vector database in Rust with rich payload filtering and quantization |
Filtered vector search as a dedicated service |
| Milvus |
Distributed vector database designed for very large collections |
Billion-scale vector search with many index types |
| Weaviate |
Vector database with hybrid search and built-in vectorizer modules |
Hybrid search with integrated embedding pipelines |
| Chroma |
Developer-friendly embedding database |
Prototypes and small to medium applications |
| LanceDB |
Embedded and serverless vector database built on the Lance columnar format |
Multimodal data and embedded or serverless deployments |
| Vespa |
Search and recommendation engine with vector search, ranking and real-time updates |
Large-scale hybrid search with complex ranking |
| Elasticsearch |
Search engine with full-text and vector search |
Existing Elasticsearch deployments adding semantic search |
| OpenSearch |
Open-source search engine with k-NN and hybrid search |
An open-source search stack with vector support |
| Typesense |
Typo-tolerant search engine with vector search |
Fast site and product search |
| Meilisearch |
Search engine focused on developer experience, with hybrid search |
Instant search for apps and websites |
| sqlite-vec |
Vector search extension for SQLite |
On-device and embedded applications |
| Pinecone |
Managed vector database service |
You want a fully managed service |
| turbopuffer |
Managed vector and full-text search built on object storage |
Large, cost-sensitive multi-tenant indexes |
ANN and vector search libraries
| Project |
What it is |
Pick it when |
| FAISS |
Library for efficient similarity search and clustering, CPU and GPU, many index types |
Building custom vector search or benchmarking indexes |
| hnswlib |
Header-only C++ HNSW implementation with Python bindings |
A fast, simple in-process HNSW index |
| Annoy |
Approximate nearest neighbours with memory-mapped tree indexes |
Read-only indexes shared across processes |
| ScaNN |
Vector similarity search library from Google Research |
High-performance in-memory search |
| USearch |
Compact single-file vector search engine with many language bindings |
Embedding search in many languages and platforms |
| DiskANN |
Graph-based ANN designed for indexes larger than RAM on SSDs |
Billion-scale search on limited memory |
Embeddings, retrieval and reranking
| Project |
What it is |
Pick it when |
| Text Embeddings Inference |
High-performance server for embedding and reranking models |
Self-hosting embeddings at volume |
| Sentence Transformers |
Library for computing, training and fine-tuning embeddings and rerankers |
Training or fine-tuning your own embedding models |
| FlagEmbedding |
Retrieval toolkit and models (the BGE family) for embeddings and reranking |
Strong open embedding and reranker models |
| ColBERT |
Late-interaction retrieval model and library |
Higher retrieval quality than single-vector embeddings |
| RAGatouille |
Easy-to-use wrapper for ColBERT-style retrieval in RAG pipelines |
Trying late interaction without deep integration work |
| Pyserini |
Toolkit for reproducible sparse (BM25) and dense retrieval research |
Strong baselines and retrieval experiments |
| MTEB (leaderboard) |
Massive Text Embedding Benchmark |
Comparing embedding models (then confirm on your own data) |
Data processing and document ingestion
| Project |
What it is |
Pick it when |
| Docling |
Document conversion (PDF, DOCX, PPTX, HTML, images) with layout and table understanding |
High-quality parsing for RAG |
| Unstructured |
Library for partitioning and cleaning many document types |
Broad file-type coverage in ingestion pipelines |
| MarkItDown |
Converts office files, PDFs and more to Markdown |
Quick, lightweight conversion to Markdown for LLMs |
| Firecrawl |
Web crawling and scraping that outputs LLM-ready Markdown |
Ingesting websites |
| Crawl4AI |
Open-source crawler designed for LLM pipelines |
Self-hosted web ingestion |
| Datatrove |
Large-scale data processing for filtering and deduplicating training data |
Building pre-training or fine-tuning datasets |
| Daft |
Distributed dataframe engine for multimodal data |
Processing images, text and embeddings at scale in Python |
| Apache Spark |
Distributed data processing engine |
Existing big-data pipelines feeding AI systems |
| DuckDB |
In-process analytical database |
Fast local analytics on datasets and eval results |
| Apache Arrow and Lance |
Columnar in-memory format, and a columnar format optimised for ML and vector data |
Efficient data interchange and ML datasets |
| Project |
What it is |
Pick it when |
| Temporal |
Durable execution platform for long-running, reliable workflows |
Agents and pipelines that must survive failures and resume |
| Apache Airflow |
Workflow scheduler for batch data pipelines |
Scheduled ingestion and batch inference jobs |
| Prefect |
Python-native workflow orchestration |
Pythonic pipelines with less boilerplate |
| Flyte |
Kubernetes-native workflow platform for data and ML |
Reproducible ML pipelines on Kubernetes |
| Metaflow |
Framework for building and managing ML projects from prototype to production |
Data science teams that want simple, scalable workflows |
| ZenML |
MLOps framework for portable ML and LLM pipelines |
Standardising pipelines across infrastructure |
| MLflow |
Experiment tracking, model registry and LLM evaluation and tracing |
Tracking experiments and managing model versions |
| Feast |
Feature store for serving ML features consistently online and offline |
Classic ML features feeding AI applications |
LLM gateways and routing
| Project |
What it is |
Pick it when |
| LiteLLM |
SDK and proxy that call many LLM providers through one OpenAI-style API, with budgets and fallbacks |
A self-hosted gateway for many providers |
| Portkey Gateway |
Lightweight AI gateway with routing, retries, fallbacks and guardrail hooks |
Fast routing layer in front of providers |
| Envoy AI Gateway |
AI traffic management on Envoy |
Platform teams standardised on Envoy |
| Kong |
API gateway with AI-specific plugins |
Existing Kong deployments |
| Helicone |
Open-source LLM observability platform with a proxy for logging, caching and rate limiting |
Observability through a proxy with minimal code changes |
Caching
| Project |
What it is |
Pick it when |
| LMCache |
KV cache reuse and offloading for inference engines |
Repeated long contexts in self-hosted serving |
| GPTCache |
Semantic cache library for LLM responses |
Experimenting with semantic response caching |
| Redis |
In-memory data store with vector search capabilities |
Exact and semantic caching, rate limiting and session state |
Observability and tracing
| Project |
What it is |
Pick it when |
| Langfuse |
LLM engineering platform: tracing, prompt management, evals, datasets |
A self-hostable all-in-one LLM observability stack |
| Arize Phoenix |
Open-source tracing and evaluation for LLM apps, built on OpenTelemetry |
Debugging and evaluating RAG and agents |
| OpenInference |
OpenTelemetry instrumentation conventions and libraries for AI applications |
Vendor-neutral AI tracing |
| OpenLLMetry |
OpenTelemetry-based instrumentation for LLM frameworks and providers |
Sending LLM traces to any OpenTelemetry backend |
| Opik |
Open-source platform for tracing, evaluating and monitoring LLM apps |
Tracing plus evaluation in one tool |
| OpenLIT |
OpenTelemetry-native observability for LLMs, vector DBs and GPUs |
Unified AI and GPU monitoring |
| Weave |
Toolkit for tracking and evaluating LLM applications |
Teams already using Weights & Biases |
| Evidently |
Evaluation and monitoring for ML and LLM systems, including data drift |
Monitoring data and output quality over time |
| OpenTelemetry Python |
Standard SDK for traces, metrics and logs |
The foundation for vendor-neutral instrumentation |
Evaluation and benchmarking
| Project |
What it is |
Pick it when |
| promptfoo |
CLI and library for testing prompts, models and RAG, plus red-teaming |
Evals in CI with declarative test files |
| Ragas |
Evaluation metrics for RAG and LLM applications |
RAG-specific metrics such as faithfulness and context recall |
| DeepEval |
Pytest-style evaluation framework for LLM apps |
Unit-test style evals in Python |
| Inspect |
Framework for large language model evaluations from the UK AI Security Institute |
Rigorous capability and safety evaluations, including agents |
| lm-evaluation-harness |
Framework for evaluating models on many academic benchmarks |
Benchmarking base and fine-tuned models |
| TruLens |
Evaluation and tracking for LLM experiments |
Feedback functions for RAG quality |
| LLMPerf |
Tool for load-testing and benchmarking LLM APIs |
Comparing latency and throughput of endpoints |
| GuideLLM |
Tool for evaluating and optimising LLM deployments under realistic load |
Capacity planning for vLLM and other servers |
| MLPerf Inference |
Industry benchmark suite for inference performance across hardware |
Comparing hardware vendors on standard workloads |
| Artificial Analysis |
Independent comparisons of model quality, speed and price across providers |
Shortlisting hosted models and providers |
| LMArena |
Crowdsourced pairwise model comparisons with public leaderboards |
A signal of general user preference (not task-specific quality) |
Guardrails and security testing
| Project |
What it is |
Pick it when |
| NeMo Guardrails |
Toolkit for programmable guardrails (topical, safety, retrieval rails) in conversational systems |
Policy-driven dialogue control |
| Guardrails AI |
Framework of validators for LLM inputs and outputs |
Validating structure and content of outputs |
| LLM Guard |
Security scanners for prompts and responses (injection, PII, toxicity) |
Drop-in input and output scanning |
| Presidio |
PII detection and anonymisation |
Redacting personal data before it reaches a model or logs |
| PurpleLlama |
Meta’s tools for LLM safety, including Llama Guard classifiers and security benchmarks |
Open safety classifiers and cyber-security evals |
| garak |
LLM vulnerability scanner with many probes |
Automated red-teaming |
| PyRIT |
Python Risk Identification Tool for generative AI red-teaming |
Orchestrated multi-turn attack campaigns |
Agent, RAG and application frameworks
Infrastructure-relevant frameworks; choose based on how much control you need.
| Project |
What it is |
Pick it when |
| Model Context Protocol |
Open protocol for connecting AI apps to tools and data |
Reusable tool integrations across AI clients |
| LangGraph |
Library for stateful, graph-based agent workflows with persistence |
Controllable, long-running agents |
| LlamaIndex |
Framework for data-connected LLM apps, especially RAG |
Many data connectors and retrieval strategies |
| DSPy |
Framework for programming (not prompting) LM pipelines with optimisers |
Optimising prompts and pipelines against a metric |
| Pydantic AI |
Type-safe Python agent framework |
Python teams that value typing and validation |
| OpenAI Agents SDK |
Lightweight multi-agent framework with handoffs, guardrails and tracing |
Simple agent orchestration in Python |
| CrewAI |
Framework for role-based multi-agent systems |
Multi-agent prototypes with defined roles |
| AutoGen |
Framework for multi-agent conversations and event-driven agents |
Research and experimentation with agent teams |
| Llama Stack |
Standardised APIs and server for building generative AI applications |
A portable app stack across providers |
| Mem0 |
Memory layer for AI agents |
Persistent user and agent memory |
| Letta |
Platform for stateful agents with long-term memory |
Agents that manage their own memory |
| GraphRAG |
Graph-based RAG pipeline that builds a knowledge graph from documents |
Global, multi-hop questions over a corpus |
| RAGFlow |
RAG engine with deep document understanding and a UI |
A self-hosted RAG application with document parsing |
| Dify |
Platform for building LLM apps and workflows with a visual editor |
Low-code LLM apps and internal tools |
| n8n |
Workflow automation platform with AI nodes |
Automations that mix AI with business tools |
Managed options, listed alphabetically within each group. Pricing, regions and GPU availability change often; compare current offers directly.
AI accelerators
What to compare: memory capacity and bandwidth (they bound model size and decode speed), interconnect bandwidth between chips (bounds multi-chip scaling), supported numeric formats (BF16, FP8, lower), software ecosystem maturity, and real availability and price in your regions.
Engineering blogs
Must-read articles and books
| Title |
What you will learn |
| How to Scale Your Model |
A free book on the arithmetic of training and serving LLMs on accelerators: rooflines, sharding, parallelism |
| The Ultra-Scale Playbook |
Training LLMs on GPU clusters: data, tensor, pipeline and context parallelism explained with experiments |
| Transformer Inference Arithmetic |
Back-of-the-envelope math for inference latency, memory and batching |
| vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention |
Why KV cache memory management unlocks throughput |
| vLLM V1: A Major Upgrade to vLLM’s Core Architecture |
How a major serving engine re-architected its core |
| Fast and Expressive LLM Inference with RadixAttention and SGLang |
Prefix caching and structured generation |
| Achieve 23x LLM inference throughput and reduce p50 latency (continuous batching) |
Why iteration-level batching matters |
| LLM Inference Performance Engineering Best Practices |
Metrics, batching, parallelism and hardware choices |
| Mastering LLM Techniques: Inference Optimization |
Overview of KV cache, batching, parallelism and quantization |
| Accelerating Generative AI with PyTorch II: GPT, Fast |
Fast inference in plain PyTorch with compilation, quantization and speculative decoding |
| Introducing NVIDIA Dynamo |
Disaggregated serving and KV-aware routing |
| Building Meta’s GenAI Infrastructure |
Cluster design for large-scale training |
| RoCE networks for distributed AI training at scale |
Networking for GPU clusters |
| Scaling Kubernetes to 7,500 nodes |
Running very large Kubernetes clusters for ML workloads |
| Building effective AI agents |
When to use workflows versus agents, and common patterns |
| How we built our multi-agent research system |
Engineering lessons from a production multi-agent system |
| Introducing multi-backends (TRT-LLM, vLLM) support for Text Generation Inference |
How a serving front end can sit on top of several inference engines |
Foundational papers
Comparison: inference engines
| |
vLLM |
SGLang |
TensorRT-LLM |
llama.cpp |
Ollama |
| Primary target |
Data-center GPUs |
Data-center GPUs |
NVIDIA GPUs |
CPUs, Apple Silicon, consumer GPUs |
Desktops and laptops |
| Continuous batching |
Yes |
Yes |
Yes |
Basic server batching |
Limited, focused on single users |
| Prefix caching |
Yes |
Yes (RadixAttention) |
Yes |
Prompt cache |
Via backend |
| Structured output |
Yes |
Yes, a strength |
Yes |
Grammars (GBNF) |
JSON mode and schemas |
| Typical model format |
Hugging Face checkpoints, quantized variants |
Hugging Face checkpoints, quantized variants |
Built engines from checkpoints |
GGUF |
GGUF-based model library |
| Best for |
General production serving |
Prefix-heavy and structured workloads |
Peak NVIDIA performance |
Local and edge |
Developer laptops |
Comparison: vector stores
| |
pgvector |
Qdrant |
Milvus |
Weaviate |
OpenSearch / Elasticsearch |
Chroma |
| Deployment |
PostgreSQL extension |
Standalone or cluster |
Standalone or distributed |
Standalone or cluster |
Search cluster |
Embedded or server |
| Strength |
SQL, transactions, joins |
Filtering, quantization |
Very large scale |
Hybrid search, modules |
Full-text plus vectors |
Simplicity |
| Hybrid keyword search |
Via PostgreSQL full-text |
Supported (sparse vectors) |
Supported |
Built in |
Built in, strongest |
Basic |
| Good up to |
Tens of millions of vectors per node, more with tuning |
Hundreds of millions+ |
Billions |
Hundreds of millions+ |
Hundreds of millions+ |
Millions |
| Choose when |
You already use PostgreSQL |
You need a fast dedicated vector service |
Scale is the main concern |
You want integrated vectorization |
Search is the core product |
Prototyping |
Scale figures are rough guidance; real limits depend on dimensions, quantization, hardware and filters. Benchmark with your own data.
FAQ
What is AI infrastructure?
The systems that make AI models usable in production: compute (GPUs and accelerators), training and inference software, data pipelines, retrieval and vector search, gateways, observability, evaluation and security. It is the AI-specific layer on top of classic cloud infrastructure.
What is the best LLM inference engine?
There is no single best engine. vLLM is the most common default for open models on GPUs, SGLang excels at prefix-heavy and structured workloads, TensorRT-LLM gives the highest performance on NVIDIA hardware with more setup, and llama.cpp or Ollama are best for local use. Benchmark on your model, hardware and traffic pattern.
Do I need a vector database for RAG?
Not always. For small corpora, an in-process library or PostgreSQL with pgvector is enough. Move to a dedicated vector database when scale, filtering, hybrid search or operational features require it.
Should I self-host models or use APIs?
Use APIs to start and for the hardest tasks. Self-host when volume is high and steady, data must stay in your environment, or you need customisation such as fine-tuned adapters. Many teams run both behind a gateway.
How do I choose GPUs for inference?
Start from memory: model weights at your chosen precision plus KV cache for your target concurrency and context length. Then compare memory bandwidth (decode speed), interconnect (multi-GPU models), software support and real availability and price.
How often is this list updated?
Entries are reviewed periodically; the review date is at the top. Open an issue or PR if a project is archived, renamed or missing.
Where to go next
Contributing
PRs are welcome. Keep entries accurate:
- Add projects that are actively maintained, open source or widely used, and relevant to building or scaling AI systems.
- Use the table format: name with link, a neutral one-line description, and “pick it when”.
- Check that every link works and that descriptions match the project’s own documentation. No affiliate links or marketing claims.
- Remove or mark entries that are archived or unmaintained.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.