Lightning-AI/LitServe
A minimal Python framework for building custom AI inference servers with full control over logic, batching, and scaling. observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 98
- Release rhythm 97
- Longevity 71
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 26
- age_days: 995
- days_rel: 21
- days_push: 16
- n_releases_24m: 16
Adoption not part of the score
3930 stars · 300 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
LitServe is a Python framework for building custom AI inference servers with full control over batching, routing, streaming, and scaling logic. It wraps FastAPI-based serving with performance optimizations for PyTorch models, LLMs, agents, and RAG pipelines.
Use cases
- serve a pytorch model as a rest api
- deploy an llm inference server
- build a custom model serving endpoint with batching
- host an agent or rag pipeline behind an api
- self-host ai model inference with gpu autoscaling
- replace fastapi-based inference servers with something faster
When to choose
- you need custom inference logic that rigid serving tools like vLLM can't express
- you want to serve multiple models, agents, or non-standard pipelines in Python
- you want batching, streaming, and scaling without writing MLOps glue code
When to avoid
- you only need to serve a single standard LLM with maximum throughput - vLLM may be better
- you need a fully managed serverless platform rather than a self-hosted framework
- your workload is not AI inference at all
Facets
framework · maturity active
llm-inference http-server api-framework machine-learning rag agent-framework chatbot machine-learning deep-learning large-language-models artificial-intelligence web-development backend apis python cloud self-hosted inference-server model-serving fastapi batching streaming rest-api pytorch deployment docker gpu
3 sources
- readme: https://github.com/Lightning-AI/LitServe · fetched 2026-08-28 · ea45871f081a
- homepage: https://lightning.ai/litserve?utm_source=litserve_readme&utm_medium=referral&utm_campaign=litserve_readme · fetched 2026-08-29 · 21f0a0890a80
- registry_pypi: https://pypi.org/pypi/litserve/json · fetched 2026-08-29 · ee3c94c5cdc1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Lightning-AI/LitServe | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="Lightning-AI/LitServe")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem