Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AMD][Build] Porting dockerfiles from the ROCm/vllm fork #11777

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gshtras
Copy link
Contributor

@gshtras gshtras commented Jan 6, 2025

An attempt to unify the build process with how it is done in ROCm/vllm
Split the build process into:

  • Building the required dependency libraries using Dockerfile.rocm_base. Not needed for the end user, done by AMD.
  • Building the vLLM itself on top of it.

In addition to not building the libraries each time, the new base image is now much smaller (7GB on docker hub vs 18GB previously), which allows to make the build process much faster (~10 minutes)

Copy link

github-actions bot commented Jan 6, 2025

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can do one of these:

  • Add ready label to the PR
  • Enable auto-merge.

🚀

@mergify mergify bot added documentation Improvements or additions to documentation ci/build labels Jan 6, 2025
@gshtras gshtras force-pushed the dockerfile_unification branch from 8016502 to a309129 Compare January 6, 2025 19:44
@mgoin mgoin self-requested a review January 6, 2025 21:19
Signed-off-by: Gregory Shtrasberg <[email protected]>
Dockerfile.rocm Outdated
Comment on lines 77 to 78
# Make sure punica kernels are built (for LoRA)
ENV VLLM_INSTALL_PUNICA_KERNELS=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These kernels have been replaced by triton, so the env var isn't needed.

Dockerfile.rocm Outdated
FROM base AS fetch_vllm_0
ONBUILD COPY ./ vllm/
FROM base AS fetch_vllm_1
ARG VLLM_REPO="https://github.com/ROCm/vllm.git"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can understand wanting to get the build process to be similar between upstream and the rocm fork, however it seems counterintuitive to use the rocm fork by default for the dockerfile. Is it the case that this dockerfile will not work well for upstream vllm?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, copy-paste error

Signed-off-by: Gregory Shtrasberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/build documentation Improvements or additions to documentation rocm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants