# ollama ALONE on the GPU through Vulkan (AMD, Intel, NVIDIA): the render node # and ollama's opt-in Vulkan backend, and nothing else — the editor's image is # not retargeted (docker-compose.vulkan.yml does that, and gives ollama the # same block). `./docker/demo.sh up` adds this when /dev/dri has a render node. # # docker compose -f docker-compose.yml -f docker-compose.ollama-vulkan.yml --profile ollama up -d # # Check what it found: `docker compose logs ollama | grep "inference compute"` # names the device (library=Vulkan), or says library=cpu. services: ollama: devices: - /dev/dri:/dev/dri environment: OLLAMA_VULKAN: "1"