Skip to content

Commit 793c5e8

Browse files
committed
feat: keep models alive
1 parent d325130 commit 793c5e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
environment:
88
OLLAMA_HOST: 0.0.0.0:11434
99
OLLAMA_MODELS: /var/lib/ollama/models
10-
# TODO: keep model alive
10+
OLLAMA_KEEP_ALIVE: -1 # do not unload models
1111

1212
volumes:
1313
- ollama-models:/var/lib/ollama/models
@@ -45,7 +45,7 @@ services:
4545
environment:
4646
OLLAMA_HOST: 0.0.0.0:11434
4747
OLLAMA_MODELS: /var/lib/ollama/models
48-
# TODO: keep model alive
48+
OLLAMA_KEEP_ALIVE: -1 # do not unload models
4949

5050
volumes:
5151
- ollama-models:/var/lib/ollama/models

0 commit comments

Comments
 (0)