Go to file
youkaichao c055747867
Some checks failed
codespell / codespell (3.12) (push) Has been cancelled
mypy / mypy (3.10) (push) Has been cancelled
mypy / mypy (3.11) (push) Has been cancelled
mypy / mypy (3.12) (push) Has been cancelled
mypy / mypy (3.9) (push) Has been cancelled
ruff / ruff (3.12) (push) Has been cancelled
yapf / yapf (3.12) (push) Has been cancelled
[model][utils] add extract_layer_index utility function (#10599)
Signed-off-by: youkaichao <youkaichao@gmail.com>
2024-11-23 22:22:54 -08:00
.buildkite Revert "Print running script to enhance CI log readability" (#10601) 2024-11-23 21:31:47 -08:00
.github [CI/Build] Add sphinx/rst linter for docs (#10366) 2024-11-19 21:35:31 -08:00
benchmarks fix the issue that len(tokenizer(prompt)["input_ids"]) > prompt_len (#10524) 2024-11-21 11:15:36 +00:00
cmake Fix: Build error seen on Power Architecture (#10421) 2024-11-19 09:34:57 -08:00
csrc [AMD] Add support for GGUF quantization on ROCm (#10254) 2024-11-22 21:14:49 -08:00
docs Add small example to metrics.rst (#10550) 2024-11-21 23:43:43 +00:00
examples [Core] Fix broken log configuration (#10458) 2024-11-23 10:23:51 +08:00
tests [Bugfix] Fix LoRA weight sharding (#10450) 2024-11-23 17:23:17 -08:00
tools [CI/Build] Add sphinx/rst linter for docs (#10366) 2024-11-19 21:35:31 -08:00
vllm [model][utils] add extract_layer_index utility function (#10599) 2024-11-23 22:22:54 -08:00
.clang-format [CI/Build] Enforce style for C++ and CUDA code with clang-format (#4722) 2024-05-22 07:18:41 +00:00
.dockerignore [CI/Build] remove .github from .dockerignore, add dirty repo check (#9375) 2024-10-17 10:25:06 -07:00
.gitignore [CI/Build] Add shell script linting using shellcheck (#7925) 2024-11-07 18:17:29 +00:00
.readthedocs.yaml [CI/Build] Drop Python 3.8 support (#10038) 2024-11-06 14:31:01 +00:00
.shellcheckrc [CI/Build] Add shell script linting using shellcheck (#7925) 2024-11-07 18:17:29 +00:00
.yapfignore [issue templates] add some issue templates (#3412) 2024-03-14 13:16:00 -07:00
CMakeLists.txt [AMD] Add support for GGUF quantization on ROCm (#10254) 2024-11-22 21:14:49 -08:00
CODE_OF_CONDUCT.md [Doc] [Misc] Create CODE_OF_CONDUCT.md (#8161) 2024-09-04 16:50:13 -07:00
collect_env.py [Misc] report relevant env vars in collect_env.py tool (#9293) 2024-11-07 16:14:01 -08:00
CONTRIBUTING.md [Doc] Fix typo error in CONTRIBUTING.md (#10190) 2024-11-10 07:47:24 +00:00
DCO [Doc] Add the DCO to CONTRIBUTING.md (#9803) 2024-10-30 05:22:23 +00:00
Dockerfile Add hf_transfer to testing image (#10096) 2024-11-08 08:35:25 +00:00
Dockerfile.cpu [Hardware][CPU] Update torch 2.5 (#9911) 2024-11-07 04:43:08 +00:00
Dockerfile.hpu [CI/Build] Add run-hpu-test.sh script (#10167) 2024-11-09 06:26:52 +00:00
Dockerfile.neuron Revert "[ci][build] limit cmake version" (#10271) 2024-11-12 15:06:48 -08:00
Dockerfile.openvino [Bugfix][OpenVINO] fix_dockerfile_openvino (#9552) 2024-10-21 19:47:52 -07:00
Dockerfile.ppc64le Revert "[ci][build] limit cmake version" (#10271) 2024-11-12 15:06:48 -08:00
Dockerfile.rocm [CI/Build] Update Dockerfile.rocm (#10434) 2024-11-19 17:19:59 -08:00
Dockerfile.tpu Refactor TPU requirements file and pin build dependencies (#10010) 2024-11-05 16:48:44 +00:00
Dockerfile.xpu [Misc][XPU] Upgrade to Pytorch 2.5 for xpu backend (#9823) 2024-11-06 17:29:03 -08:00
find_cuda_init.py [Core][VLM] Test registration for OOT multimodal models (#8717) 2024-10-04 10:38:25 -07:00
format.sh [CI/Build] Add sphinx/rst linter for docs (#10366) 2024-11-19 21:35:31 -08:00
LICENSE Add Apache-2.0 license (#102) 2023-05-14 18:05:19 -07:00
MANIFEST.in [Misc] Use ray[adag] dependency instead of cuda (#7938) 2024-09-06 09:18:35 -07:00
pyproject.toml Revert "[ci][build] limit cmake version" (#10271) 2024-11-12 15:06:48 -08:00
python_only_dev.py Make shutil rename in python_only_dev (#10233) 2024-11-11 14:29:19 -08:00
README.md [Docs] Add Nebius as sponsors (#10371) 2024-11-15 12:47:40 -08:00
requirements-build.txt Revert "[ci][build] limit cmake version" (#10271) 2024-11-12 15:06:48 -08:00
requirements-common.txt [Misc] bump mistral common version (#10367) 2024-11-15 09:48:07 -08:00
requirements-cpu.txt [Hardware][CPU] Update torch 2.5 (#9911) 2024-11-07 04:43:08 +00:00
requirements-cuda.txt [Bugfix] Upgrade to pytorch 2.5.1 (#10001) 2024-11-04 15:11:28 -08:00
requirements-dev.txt Seperate dev requirements into lint and test (#5474) 2024-06-13 11:22:41 -07:00
requirements-hpu.txt [Hardware][Intel-Gaudi] Add Intel Gaudi (HPU) inference backend (#6143) 2024-11-06 01:09:10 -08:00
requirements-lint.txt [CI/Build] Add sphinx/rst linter for docs (#10366) 2024-11-19 21:35:31 -08:00
requirements-neuron.txt [Hardware][AWS] update neuron to 2.20 (#8676) 2024-09-20 15:19:44 -07:00
requirements-openvino.txt [Bugfix] Upgrade to pytorch 2.5.1 (#10001) 2024-11-04 15:11:28 -08:00
requirements-rocm.txt [CI/Build][ROCm] Enabling tensorizer tests for ROCm (#7237) 2024-08-27 10:09:13 -07:00
requirements-test.in [CI/Build] Update CPU tests to include all "standard" tests (#5481) 2024-11-08 23:30:04 +08:00
requirements-test.txt Bump the patch-update group with 5 updates (#10210) 2024-11-11 07:22:40 +00:00
requirements-tpu.txt [TPU] Implement prefix caching for TPUs (#10307) 2024-11-20 13:54:15 -08:00
requirements-xpu.txt Revert "[ci][build] limit cmake version" (#10271) 2024-11-12 15:06:48 -08:00
SECURITY.md [Doc] Improve contributing and installation documentation (#9132) 2024-10-08 20:22:08 +00:00
setup.py Online video support for VLMs (#10020) 2024-11-07 20:25:59 +00:00
use_existing_torch.py [CI/Build] drop support for Python 3.8 EOL (#8464) 2024-11-06 07:11:55 +00:00

vLLM

Easy, fast, and cheap LLM serving for everyone

| Documentation | Blog | Paper | Discord | Twitter/X | Developer Slack |


Latest News 🔥

  • [2024/11] We hosted the seventh vLLM meetup with Snowflake! Please find the meetup slides here.
  • [2024/10] We have just created a developer slack (slack.vllm.ai) focusing on coordinating contributions and discussing features. Please feel free to join us there!
  • [2024/10] Ray Summit 2024 held a special track for vLLM! Please find the opening talk slides from the vLLM team here. Learn more from the talks from other vLLM contributors and users!
  • [2024/09] We hosted the sixth vLLM meetup with NVIDIA! Please find the meetup slides here.
  • [2024/07] We hosted the fifth vLLM meetup with AWS! Please find the meetup slides here.
  • [2024/07] In partnership with Meta, vLLM officially supports Llama 3.1 with FP8 quantization and pipeline parallelism! Please check out our blog post here.
  • [2024/06] We hosted the fourth vLLM meetup with Cloudflare and BentoML! Please find the meetup slides here.
  • [2024/04] We hosted the third vLLM meetup with Roblox! Please find the meetup slides here.
  • [2024/01] We hosted the second vLLM meetup with IBM! Please find the meetup slides here.
  • [2023/10] We hosted the first vLLM meetup with a16z! Please find the meetup slides here.
  • [2023/08] We would like to express our sincere gratitude to Andreessen Horowitz (a16z) for providing a generous grant to support the open-source development and research of vLLM.
  • [2023/06] We officially released vLLM! FastChat-vLLM integration has powered LMSYS Vicuna and Chatbot Arena since mid-April. Check out our blog post.

About

vLLM is a fast and easy-to-use library for LLM inference and serving.

vLLM is fast with:

  • State-of-the-art serving throughput
  • Efficient management of attention key and value memory with PagedAttention
  • Continuous batching of incoming requests
  • Fast model execution with CUDA/HIP graph
  • Quantizations: GPTQ, AWQ, INT4, INT8, and FP8.
  • Optimized CUDA kernels, including integration with FlashAttention and FlashInfer.
  • Speculative decoding
  • Chunked prefill

Performance benchmark: We include a performance benchmark at the end of our blog post. It compares the performance of vLLM against other LLM serving engines (TensorRT-LLM, SGLang and LMDeploy). The implementation is under nightly-benchmarks folder and you can reproduce this benchmark using our one-click runnable script.

vLLM is flexible and easy to use with:

  • Seamless integration with popular Hugging Face models
  • High-throughput serving with various decoding algorithms, including parallel sampling, beam search, and more
  • Tensor parallelism and pipeline parallelism support for distributed inference
  • Streaming outputs
  • OpenAI-compatible API server
  • Support NVIDIA GPUs, AMD CPUs and GPUs, Intel CPUs and GPUs, PowerPC CPUs, TPU, and AWS Neuron.
  • Prefix caching support
  • Multi-lora support

vLLM seamlessly supports most popular open-source models on HuggingFace, including:

  • Transformer-like LLMs (e.g., Llama)
  • Mixture-of-Expert LLMs (e.g., Mixtral)
  • Embedding Models (e.g. E5-Mistral)
  • Multi-modal LLMs (e.g., LLaVA)

Find the full list of supported models here.

Getting Started

Install vLLM with pip or from source:

pip install vllm

Visit our documentation to learn more.

Contributing

We welcome and value any contributions and collaborations. Please check out CONTRIBUTING.md for how to get involved.

Sponsors

vLLM is a community project. Our compute resources for development and testing are supported by the following organizations. Thank you for your support!

  • a16z
  • AMD
  • Anyscale
  • AWS
  • Crusoe Cloud
  • Databricks
  • DeepInfra
  • Dropbox
  • Google Cloud
  • Lambda Lab
  • Nebius
  • NVIDIA
  • Replicate
  • Roblox
  • RunPod
  • Sequoia Capital
  • Skywork AI
  • Trainy
  • UC Berkeley
  • UC San Diego
  • ZhenFund

We also have an official fundraising venue through OpenCollective. We plan to use the fund to support the development, maintenance, and adoption of vLLM.

Citation

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}
}

Contact Us

  • For technical questions and feature requests, please use Github issues or discussions.
  • For discussing with fellow users, please use Discord.
  • For coordinating contributions and development, please use Slack.
  • For security disclosures, please use Github's security advisory feature.
  • For collaborations and partnerships, please contact us at vllm-questions AT lists.berkeley.edu.