guides
Use an NVIDIA GPU
Run DeepLM Ops on an NVIDIA GPU, or on the CPU.
Which build you get
Docker picks the right build for your machine.
- Intel and AMD machines get the amd64 build, which uses an NVIDIA GPU when you pass
--gpus all. - Apple silicon and other Arm machines get a CPU-only arm64 build, where
--gpus alldoes nothing. On a Mac, see Install on macOS for the Mac's GPU.
The same image serves both. llama.cpp uses the GPU when the driver is passed in, and the CPU otherwise. The CPU is markedly slower: 23 against 62 generated tokens per second in one measurement.
Add the GPU flag
Add --gpus all right after docker run -d, not at the end. Anything after the image name is passed to dlm-ops as its command.
docker run -d --gpus all --name dlm-ops ... ghcr.io/deeplm/dlm-ops-dev:0.2.0-rc.4Requirements
- Linux: install the NVIDIA Container Toolkit, then check it with
docker run --rm --gpus all ubuntu:24.04 nvidia-smi. - Windows: use Docker Desktop with WSL 2.
- Driver: the image carries the llama.cpp CUDA 12.8 build, tested with NVIDIA driver 570.133.20. Older drivers are untested. When CUDA cannot start, llama.cpp quietly uses the CPU, so update the driver and run
docker exec dlm-ops dlm-ops doctor.
How much GPU memory it needs
On an NVIDIA GPU the model takes about 3.8 GiB of memory at the default 32,768-token context, measured on an RTX 4060 Laptop GPU. DeepLM Ops uses a GPU only when at least 4,608 MiB is free on it. With several GPUs it picks the one with the most free memory. It gives the memory back after 15 idle minutes.
If another program holds the GPU's memory, DeepLM Ops falls back to the CPU on purpose. The Local GPUs page shows what is using the GPU.