vLLM 是源自加州大学伯克利分校 Sky Computing Lab 的开源 LLM 推理与部署库,目标是让模型服务既快又省。它通过 PagedAttention 管理注意力键值缓存,配合连续批处理、分块预填充和前缀缓存,显著提升单卡吞吐并降低显存占用。项目兼容 Hugging Face 上 200 多种模型架构,覆盖纯解码器、MoE、多模态、混合注意力与嵌入模型,并提供 OpenAI 兼容 API、结构化输出、工具调用解析和多 LoRA 支持。它支持张量、流水线、专家等多种并行方式以及量化、投机解码,可在 NVIDIA、AMD、Intel GPU 及多种加速卡和 CPU 上运行,适合自建推理服务。
pip install vllm
| Documentation | Blog | Paper | Twitter/X | User Forum | Developer Slack |
🔥 We have built a vLLM website to help you get started with vLLM. Please visit vllm.ai to learn more. For events, please visit vllm.ai/events to join us.
vLLM is a fast and easy-to-use library for LLM inference and serving.
Originally developed in the Sky Computing Lab at UC Berkeley, vLLM has grown into one of the most active open-source AI projects built and maintained by a diverse community of many dozens of academic institutions and companies from over 2000 contributors.
vLLM is fast with:
vLLM is flexible and easy to use with:
vLLM seamlessly supports 200+ model architectures on Hugging Face, including:
Find the full list of supported models here.
Install vLLM with uv (recommended) or pip:
uv pip install vllm
vllm download-kernels # precompiled kernels for faster startup
Or build from source for development.
Visit our documentation to learn more.
We welcome and value any contributions and collaborations. Please check out Contributing to vLLM for how to get involved.
If you use vLLM for your research, please cite our paper:
@inproceedings{kwon2023efficient,
title={Efficient Memory Management for Large Language Model Serving with PagedAttention},
author={Woosuk Kwon and Zhuohan Li and Siyuan Zhuang and Ying Sheng and Lianmin Zheng and Cody Hao Yu and Joseph E. Gonzalez and Hao Zhang and Ion Stoica},
booktitle={Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles},
year={2023}
}
内容由编辑整理,部分信息来自 GitHub 与项目官网,版权归原作者所有。发现错误?报告问题