Skip to content

Conversation

@gshtras
Copy link
Collaborator

@gshtras gshtras commented Nov 14, 2025

A follow up for #28142 to install uv under /usr/local/bin

The rationale is that /root/.local/bin is inaccessible to non-root users, so when running a container with a custom user, there is a folder in the PATH that the user doesn't have access to.
This becomes critical in any subprocess call that is bound to fail, such as the one in /usr/local/lib/python3.12/dist-packages/torch/_dynamo/debug_utils.py that calls nvcc --version
On ROCm (and other non-NVidia platforms) it is expected to throw FileNotFound, but is currently throwing EACCESS, which has precidence over FileNotFound. So any vllm run from a non-root user would fail

Testing plan

Run a docker with --user $(id -u):$(id -g) -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro --group-add video --group-add render
Before this PR any vllm run fails with torch._inductor.exc.InductorError: PermissionError: [Errno 13] Permission denied: 'nvcc'
After this PR runs succeed

Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
@gshtras gshtras requested a review from zhewenl November 14, 2025 18:18
@gshtras gshtras requested a review from tjtanaa as a code owner November 14, 2025 18:18
@mergify mergify bot added ci/build rocm Related to AMD ROCm labels Nov 14, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly addresses the issue of uv being inaccessible to non-root users by changing its installation directory from /root/.local/bin to /usr/local/bin. This modification ensures that uv is available in a standard system-wide path, resolving potential EACCESS errors when running containers with custom user accounts. The removal of the redundant ENV PATH declaration for /root/.local/bin is also a good cleanup, as /usr/local/bin is typically already included in the system's PATH.

Copy link
Collaborator

@tjtanaa tjtanaa left a comment

Choose a reason for hiding this comment

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

LGTM

@tjtanaa tjtanaa added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 14, 2025
@tjtanaa tjtanaa enabled auto-merge (squash) November 14, 2025 18:28
@tjtanaa tjtanaa removed the ready ONLY add when PR is ready to merge/full CI is needed label Nov 14, 2025
@tjtanaa tjtanaa disabled auto-merge November 14, 2025 18:44
@gshtras gshtras added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 14, 2025
@gshtras gshtras enabled auto-merge (squash) November 14, 2025 19:22
@gshtras gshtras added ready ONLY add when PR is ready to merge/full CI is needed and removed ready ONLY add when PR is ready to merge/full CI is needed labels Nov 14, 2025
@gshtras gshtras merged commit 5a84b76 into vllm-project:main Nov 14, 2025
14 of 15 checks passed
@gshtras gshtras deleted the uv_install_location branch November 14, 2025 22:57
geodavic pushed a commit to geodavic/vllm that referenced this pull request Nov 16, 2025
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
Signed-off-by: George D. Torres <gdavtor@gmail.com>
bwasti pushed a commit to bwasti/vllm that referenced this pull request Nov 17, 2025
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
Signed-off-by: Bram Wasti <bwasti@meta.com>
bringlein pushed a commit to bringlein/vllm that referenced this pull request Nov 26, 2025
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
devpatelio pushed a commit to SumanthRH/vllm that referenced this pull request Nov 29, 2025
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
kitaekatt pushed a commit to kitaekatt/vllm that referenced this pull request Dec 1, 2025
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants