ollama-cuda
| Repo | box/github.com/opencharly/layer-ollama-cuda:v2026.329.2345 |
NVIDIA CUDA inference backend for the ollama LLM server Adds the CUDA ggml backend so a composing GPU box runs inference on an NVIDIA card instead of falling back to CPU. This is an ADD-ON to the ollama candy, never a replacement: it contributes only the backend libraries that drop into ollama’s own runner directory (/usr/lib/ollama/cuda_v*/libggml-cuda.so plus the CUDA runtime it links), which is why the base ollama candy can stay CPU-only and small ON A PACKAGED DISTRO — on the tarball path the upstream archive already carries this backend, so this candy asserts rather than installs. Keeping the backend in its own candy is what makes GPU support a per-box composition choice: an image that wants CUDA composes this, an image that does not pays none of its ~1 GiB.
Two install paths, one assertion. On Arch (CachyOS included) the split
ollama-cuda package supplies the backend — it depends on the ollama
package and on opencl-nvidia, the DRIVER package: installing it plainly bakes
the driver user-space AND collides with the ICD file the CDI contract writes
(/etc/OpenCL/vendors/nvidia.icd). It is installed below with that dependency
treated as satisfied, because the pod receives the driver from the host through
CDI. On a distro that has no
ollama package the base candy installs the upstream tarball, which already
bundles the CUDA backend, so this candy adds no package there and simply
asserts the backend really is present. Either way the check below fails
when the CUDA backend is missing, which is the property worth having.
Acceptance plan
Section titled “Acceptance plan”This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.
| Intent | Step |
|---|---|
run |
install the ollama CUDA backend driver-free — opencl-nvidia is satisfied at runtime by the CDI-injected driver |
check |
the CUDA ggml backend library is installed in ollama’s runner directory |

