Skip to content

Instantly share code, notes, and snippets.

@gosuri
Created December 11, 2023 22:43
Show Gist options
  • Save gosuri/9fd8218a757a083066503df5f9d96ec7 to your computer and use it in GitHub Desktop.
Save gosuri/9fd8218a757a083066503df5f9d96ec7 to your computer and use it in GitHub Desktop.
ollama.sdl.yaml
---
version: "2.0"
services:
ollama:
image: ollama/ollama
expose:
- port: 11434
as: 11434
to:
- global: true
command:
- "bash"
- "-c"
args:
- 'ollama serve > /dev/null 2>&1 & sleep 10 && ollama pull mistral && sleep infinity;'
profiles:
compute:
ollama:
resources:
cpu:
units: 12
memory:
size: 16Gi
storage:
- size: 50Gi
gpu:
units: 1
attributes:
vendor:
nvidia:
placement:
dcloud:
pricing:
ollama:
denom: uakt
amount: 1000
deployment:
ollama:
dcloud:
profile: ollama
count: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment