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

Make vllm package dirs writable for debugging #28

Closed
wants to merge 1 commit into from
Closed

Conversation

njhill
Copy link
Contributor

@njhill njhill commented May 16, 2024

No description provided.

&& chmod g+rwx $HOME /usr/src /workspace
# Make some dirs writable for debugging
&& chmod -R g+rwx $HOME /usr/src /workspace /opt/vllm/lib/python3.11/site-packages/vllm \
/opt/vllm/lib/python3.11/site-packages/vllm-*
Copy link
Member

Choose a reason for hiding this comment

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

An alternative to making the system site packages writeable is to copy the package(s) you want to edit into the user site-packages in the home directory in the running pod:

cp -r /opt/vllm/lib/python3.11/site-packages/vllm ~/.local/lib/python3.11/site-packages/

Saves a bit of bloat (~180M) in the container image :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @tjohnson31415 I'll try that out

@njhill
Copy link
Contributor Author

njhill commented May 20, 2024

@tjohnson31415's suggestion worked well for me, so probably no need for this for now!

@njhill njhill closed this May 20, 2024
@njhill njhill deleted the writable-dirs branch May 20, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants