Contributing to vLLM — vLLM (original) (raw)

Contents

Contributing to vLLM#

Thank you for your interest in contributing to vLLM! Our community is open to everyone and welcomes all kinds of contributions, no matter how small or large. There are several ways you can contribute to the project:

We also believe in the power of community support; thus, answering queries, offering PR reviews, and assisting others are also highly regarded and beneficial contributions.

Finally, one of the most impactful ways to support us is by raising awareness about vLLM. Talk about it in your blog posts and highlight how it’s driving your incredible projects. Express your support on social media if you’re using vLLM, or simply offer your appreciation by starring our repository!

Job Board#

Unsure on where to start? Check out the following links for tasks to work on:

License#

See LICENSE.

Developing#

Depending on the kind of development you’d like to do (e.g. Python, CUDA), you can choose to build vLLM with or without compilation. Check out the building from source documentation for details.

Testing#

pip install -r requirements/dev.txt

Linting, formatting and static type checking

pre-commit install --hook-type pre-commit --hook-type commit-msg

You can manually run pre-commit with

pre-commit run --all-files

Unit tests

pytest tests/

Tip

Since the docker/Dockerfile ships with Python 3.12, all tests in CI (except mypy) are run with Python 3.12.

Therefore, we recommend developing with Python 3.12 to minimise the chance of your local environment clashing with our CI environment.

Note

Currently, the repository is not fully checked by mypy.

Issues#

If you encounter a bug or have a feature request, please search existing issues first to see if it has already been reported. If not, please file a new issue, providing as much relevant information as possible.

Important

If you discover a security vulnerability, please follow the instructions here.

Pull Requests & Code Reviews#

Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.

DCO and Signed-off-by#

When contributing changes to this project, you must agree to the DCO. Commits must include a Signed-off-by: header which certifies agreement with the terms of the DCO.

Using -s with git commit will automatically add this header.

PR Title and Classification#

Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:

Note

If the PR spans more than one category, please include all relevant prefixes.

Code Quality#

The PR needs to meet the following code quality standards:

Adding or Changing Kernels#

Each custom kernel needs a schema and one or more implementations to be registered with PyTorch.

Notes for Large Changes#

Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with rfc-required and might not go through the PR.

What to Expect for the Reviews#

The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feels confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:

Thank You#

Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. All of your contributions help make vLLM a great tool and community for everyone!