←新闻详情

vLLM 官方博客更新于 10月10日 11:24

vLLM 安装、开发与版本追踪指南

Installing and Developing vLLM with Ease | vLLM Blog

AI 导读

vLLM 介绍了覆盖稳定版、nightly build 和指定提交版本的安装与开发流程,并提供生产部署所需的版本追踪能力。文中称在 Intel 8th Gen CPU 环境中 uv 比 pip 快 200x;Python 开发者可用 VLLM_USE_PRECOMPILED=1 复用预编译 CUDA 内核,C++/CUDA 开发者则可利用编译缓存缩短构建时间。

推荐理由

AI 评分 58

文中比较了 uv 与 pip 的安装差异,并给出按提交安装和复用预编译 CUDA 内核的开发方法。

主题

标签

正文

当前显示原文,中文全文译文尚未就绪。

The field of LLM inference is advancing at an unprecedented pace. With new models and features emerging weekly, the traditional software release pipeline often struggles to keep up. At vLLM, we aim to provide more than just a software package. We’re building a system—a trusted, trackable, and participatory ecosystem for LLM inference. This blog post highlights how vLLM enables users to install and develop with ease while staying at the forefront of innovation.

TL;DR:

Flexible and fast installation options from stable releases to nightly builds; Streamlined development workflow for both Python and C++/CUDA developers; Robust version tracking capabilities for production deployments

Seamless Installation of vLLM Versions

Install Released Versions

We periodically release stable versions of vLLM to the Python Package Index, ensuring users can easily install them using standard Python package managers. For example:

For those who prefer a faster package manager, uv has been gaining traction in the vLLM community. After setting up a Python environment with uv, installing vLLM is straightforward:

Refer to the documentation for more details on setting up uv. Using a simple server-grade setup (Intel 8th Gen CPU), we observe that uv is 200x faster than pip:

Install the Latest vLLM from the Main Branch

To meet the community’s need for cutting-edge features and models, we provide nightly wheels for every commit on the main branch.

Using pip:

Adding --pre ensures pip includes pre-released versions in its search.

Using uv:

Development Made Simple

We understand that an active, engaged developer community is the backbone of innovation. That’s why vLLM offers smooth workflows for developers, regardless of whether they’re modifying Python code or working with kernels.

Python Developers

For Python developers who need to tweak and test vLLM’s Python code, there’s no need to compile kernels. This setup enables you to start development quickly.

The VLLM_USE_PRECOMPILED=1 flag instructs the installer to use pre-compiled CUDA kernels instead of building them from source, significantly reducing installation time. This is perfect for developers focusing on Python-level features like API improvements, model support, or integration work.

This lightweight process runs efficiently, even on a laptop. Refer to our documentation for more advanced usage.

C++/Kernel Developers

For advanced contributors working with C++ code or CUDA kernels, we incorporate a compilation cache to minimize build time and streamline kernel development. Please check our documentation for more details.

Track Changes with Ease

The fast-evolving nature of LLM inference means interfaces and behaviors are still stabilizing. vLLM has been integrated into many workflows, including OpenRLHF, veRL, open_instruct, LLaMA-Factory, etc. We collaborate with these projects to stabilize interfaces and behaviors for LLM inference. To facilitate the process, we provide powerful tools for these advanced users to track changes across versions.

Installing a Specific Commit

To simplify tracking and testing, we provide wheels for every commit in the main branch. Users can easily install any specific commit, which can be particularly useful to bisect and track the changes.

We recommend using uv to install a specific commit:

In uv, packages in --extra-index-url have higher priority than the default index, which makes it possible to install a developing version prior to the latest public release (at the time of writing, it is v0.6.6.post1).

In contrast, pip combines packages from --extra-index-url and the default index, choosing only the latest version, which makes it difficult to install a developing version prior to the released version. Therefore, for pip users, it requires specifying a placeholder wheel name to install a specific commit:

Conclusion

At vLLM, our commitment extends beyond delivering high-performance software. We’re building a system that empowers trust, enables transparent tracking of changes, and invites active participation. Together, we can shape the future of AI, pushing the boundaries of innovation while making it accessible to all.

For collaboration requests or inquiries, reach out at vllm-questions@lists.berkeley.edu. Join our growing community on GitHub or connect with us on the vLLM Slack. Together, let’s drive AI innovation forward.

Acknowledgments

We extend our gratitude to the uv community — particularly Charlie Marsh — for creating a fast, innovative package manager. Special thanks to Kevin Luu (Anyscale), Daniele Trifirò (Red Hat), and Michael Goin (Neural Magic) for their invaluable contributions to streamlining workflows. Kaichao You and Simon Mo from the UC Berkeley team lead these efforts.

Related Posts

How vLLM developers debug hanging and complex CUDA kernels by triggering GPU core dumps, identifying stuck kernels, and mapping failures back to source code lines for faster kernel debugging.

来源

vLLM 官方博客