-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: package GPU libraries inside backend containers for unified base image #7891
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
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Create scripts/build/package-gpu-libs.sh for packaging CUDA, ROCm, SYCL, and Vulkan libraries - Update llama-cpp, whisper, stablediffusion-ggml package.sh to include GPU libraries - Update Dockerfile.python to package GPU libraries into Python backends - Update libbackend.sh to set LD_LIBRARY_PATH for GPU library loading Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
…riable Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
|
@copilot This is looking good, now, we can adapt the main dockerfile as we dont need to bundle anymore the gpu specific packages, and we can update the github workflow as well to stop building all the variants. We can focus on a single base image now |
- Remove GPU-specific driver installation from Dockerfile (CUDA, ROCm, Vulkan, Intel) - Simplify image.yml workflow to build single unified base image for linux/amd64 and linux/arm64 - GPU libraries are now packaged in individual backend containers Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Done in |
| ; fi | ||
|
|
||
| RUN if [ "${BUILD_TYPE}" = "hipblas" ]; then \ | ||
| ln -s /opt/rocm-**/lib/llvm/lib/libomp.so /usr/lib/libomp.so \ |
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.
@copilot let's add libomp.so to the new package GPU script on hipblas
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.
Added in 676585e. The libomp.so* is now included in the rocm_libs list and the script searches in /opt/rocm/lib/llvm/lib, versioned ROCm LLVM lib paths, and architecture-specific system lib paths.
676585e to
0440977
Compare
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.