-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspheron.yaml
52 lines (50 loc) · 1.09 KB
/
spheron.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "1.0"
services:
ollama-test:
image: ollama/ollama:0.3.12
pull_policy: IfNotPresent
expose:
- port: 11434
as: 11434
to:
- global: true
env:
- OLLAMA_MODEL=llama3.2
command:
- "sh"
- "-c"
- "apt update && apt install -y curl && /bin/ollama serve & while ! curl -s http://localhost:11434/api/tags > /dev/null; do sleep 1; done && /bin/ollama pull $OLLAMA_MODEL && /bin/ollama run $OLLAMA_MODEL 'Hello' && tail -f /dev/null"
profiles:
name: ollama-testing
duration: 1h
mode: provider
tier:
- community
compute:
ollama-test:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
- size: 50Gi
gpu:
units: 1
attributes:
vendor:
nvidia:
- model: rtx3090
placement:
westcoast:
attributes:
region: us-east
pricing:
ollama-test:
token: USDT
amount: 5
deployment:
ollama-test:
westcoast:
profile: ollama-test
count: 1