-
Notifications
You must be signed in to change notification settings - Fork 961
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
Feature: Lightweight llama_cpp.server Docker Image Build Workflow #1331
base: main
Are you sure you want to change the base?
Conversation
|
--add-binary "/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllava.so:./llama_cpp/" | ||
|
||
- name: upload artifact | ||
uses: actions/upload-artifact@v3 |
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.
Upgrade to v4
submodules: "recursive" | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 |
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.
Upgrade to v5
@Smartappli Okay, I will make these changes later today |
@abetlen Can you approve testing plz? |
with: | ||
submodules: "recursive" | ||
|
||
- name: Set up Python 3.9 |
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.
I think you can upgrade to 3.12
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip |
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.
you can use uv and change L30 & L31 with:
python -m pip install uv
python -m uv pip install .[all] -v
python -m uv pip install pyinstaller
By adding this workflow, the Docker image it builds becomes more lightweight.
You can see that the built image is one-tenth the size of the original image.