[idea] Docker 14/14: Compiled CUDA builds: -cuda on arm64, -cuda126, sd.cpp with CUDA
Author: AnishSarkar22Created Oct 1, 2026Updated Oct 1, 2026
Labelsenhancementhelp wantedperformancedesktopdocker
Which part? Desktop app
What would you like?
Step 14 of 14 of #2100: running SurfSense in Docker. Depends on #2113; start once it is merged.
Every CUDA variant on both architectures, and image generation on the GPU.
Design: GPU images, Where each runtime comes from
What to change
- A
nvidia/cuda:<version>-devel-ubuntu24.04stage that compiles llama.cpp with-DGGML_CUDA=ONandGGML_CUDA_FA_ALL_QUANTSat the pinned commit, for-cudaon arm64 and-cuda126on both. - sd.cpp compiled with
-DSD_CUDA=ONin every CUDA variant. - Only the binaries and the CUDA runtime libraries reach the final image.
docker-local.ymlbuilds all six variant and architecture pairs, with a registry cache for each.
Done when
- CI publishes the CPU,
-cudaand-cuda126tags for amd64 and arm64. - On NVIDIA hardware, a chat turn and an image run on the GPU with each CUDA variant.
Scope: code and tests only. Don't edit docs/ or AGENTS.md, except to fix a link this change breaks; the maintainers update the docs when the Docker work ships.
Why would it help?
Each step leaves something that runs, so the Docker image is built and reviewed one piece at a time.
Source: MODSetter/SurfSense