Skip to content

Instantly share code, notes, and snippets.

@EvilFreelancer
Last active March 31, 2024 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvilFreelancer/26691739daf0771cca837b4afadb3724 to your computer and use it in GitHub Desktop.
Save EvilFreelancer/26691739daf0771cca837b4afadb3724 to your computer and use it in GitHub Desktop.
Пример запуска OLLAMA в Docker с активным GPU
version: "3.9"
services:
ollama:
image: ollama/ollama
restart: unless-stopped
volumes:
- ./ollama_data:/root/.ollama
ports:
- "127.0.0.1:11434:11434"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment