LocalAI/backend/go
Copilot fd53978a7b
feat: package GPU libraries inside backend containers for unified base image (#7891)
* Initial plan

* Add GPU library packaging for isolated backend environments

- 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>

* Address code review feedback: fix variable consistency and quoting

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>

* Fix code review issues: improve glob handling and remove redundant variable

Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>

* Simplify main Dockerfile and workflow to use unified base image

- 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>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2026-01-07 15:48:51 +01:00
..
bark-cpp feat: split piper from main binary (#5858) 2025-07-19 08:31:33 +02:00
huggingface feat: refactor build process, drop embedded backends (#5875) 2025-07-22 16:31:04 +02:00
llm/llama feat: refactor build process, drop embedded backends (#5875) 2025-07-22 16:31:04 +02:00
local-store chore: allow to set local-ai log format, default to custom one (#7679) 2025-12-21 21:21:59 +01:00
piper feat: split piper from main binary (#5858) 2025-07-19 08:31:33 +02:00
silero-vad feat: refactor build process, drop embedded backends (#5875) 2025-07-22 16:31:04 +02:00
stablediffusion-ggml feat: package GPU libraries inside backend containers for unified base image (#7891) 2026-01-07 15:48:51 +01:00
whisper feat: package GPU libraries inside backend containers for unified base image (#7891) 2026-01-07 15:48:51 +01:00