-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[ROCm][CI/Build] Change install location of uv #28741
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
Conversation
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
There was a problem hiding this 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.
tjtanaa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com> Signed-off-by: George D. Torres <gdavtor@gmail.com>
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com> Signed-off-by: Bram Wasti <bwasti@meta.com>
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
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 renderBefore this PR any vllm run fails with
torch._inductor.exc.InductorError: PermissionError: [Errno 13] Permission denied: 'nvcc'After this PR runs succeed