# ollama ALONE on an NVIDIA GPU (the NVIDIA container toolkit on the host): # the editor's image is not retargeted (docker-compose.gpu.yml does that, and # gives ollama the same block). `./docker/demo.sh up --gpu nvidia` adds this. # # docker compose -f docker-compose.yml -f docker-compose.ollama-nvidia.yml --profile ollama up -d services: ollama: deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu]