LMDeploy is a toolkit for compressing, deploying, and serving LLMs.
open sourceApache-2.0self-hostablefree
LMDeploy compresses, deploys and serves large language models and vision-language models. It has two inference engines: TurboMind, written in C++ and CUDA for throughput, and a PyTorch engine that's easier to extend and also runs on Huawei Ascend. Its makers say continuous batching, a blocked KV cache, dynamic split-and-fuse, tensor parallelism and its own CUDA kernels give up to 1.8x the request throughput of vLLM, and it quantizes weights (AWQ 4-bit, FP8, MXFP4) and the KV cache (int8 and int4), with automatic prefix caching. It serves models through an OpenAI-compatible API server, can spread several models across machines and GPUs with a request distribution server, supports prefill and decode disaggregation, and loads models from Hugging Face, ModelScope or openMind Hub. It was developed by the MMRazor and MMDeploy teams.
Problems it solves
- serve an open-weight LLM on our GPUs with higher throughput than vLLM
- run a 4-bit quantized LLM to fit a bigger model on one GPU
- quantize the KV cache so more concurrent requests fit in GPU memory
- an OpenAI-compatible API server for self-hosted Qwen, Llama or DeepSeek models
- serve vision-language models like InternVL behind an API
- spread several models across multiple GPU machines behind one endpoint
- run LLM inference on Huawei Ascend NPUs
Features
- TurboMind (C++/CUDA) and PyTorch inference engines
- continuous batching, blocked KV cache and dynamic split&fuse
- tensor parallelism across GPUs
- weight-only quantization (AWQ 4-bit) and int8/int4 KV cache quantization
- FP8 and MXFP4 inference
- automatic prefix caching
- OpenAI-compatible API server with tool calling
- request distribution server for multi-model, multi-machine serving
- prefill/decode disaggregation for DeepSeek
- vision-language model support
View 1 more
- Huawei Ascend support in the PyTorch engine
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what LMDeploy does.
- vLLM A high-throughput and memory-efficient inference and serving engine for LLMs
- SGLang Fast inference for LLMs and multimodal models
- TensorRT-LLM Optimized LLM and visual generation inference on NVIDIA GPUs
- FreeToken Serving engine that runs frontier-scale open-weight MoE models on consumer GPUs
- MLC LLM Universal LLM deployment engine that compiles models to run natively on GPUs, phones and browsers
- mistral.rs Fast, flexible LLM inference in Rust
