#2114·SurfSense

[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.04 stage that compiles llama.cpp with -DGGML_CUDA=ON and GGML_CUDA_FA_ALL_QUANTS at the pinned commit, for -cuda on arm64 and -cuda126 on both.
  • sd.cpp compiled with -DSD_CUDA=ON in every CUDA variant.
  • Only the binaries and the CUDA runtime libraries reach the final image.
  • docker-local.yml builds all six variant and architecture pairs, with a registry cache for each.

Done when

  • CI publishes the CPU, -cuda and -cuda126 tags 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.