Skip to content

Commit 264ee9a

Browse files
committed
Merge branch 'local-models' into release-candidate
2 parents 57deac6 + dbc9a8d commit 264ee9a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CLIMATECLAW_CACHE_PATH=/scratch/b/b380001/climateclaw/cache # The path where th
1212

1313
CLIMATECLAW_OPENAI_API_KEY="YOUR_OPENAI_API_KEY" # The OpenAI API key to use for the OpenAI API
1414
CLIMATECLAW_LITE_LLM_ADDRESS="http://haproxy:4000" # The address of the LiteLLM Proxy
15+
CLIMATECLAW_OLLAMA_KEEP_ALIVE=-1 # Keep Ollama models loaded after use. -1 = indefinitely, subject to available GPU/RAM.
16+
1517
# IMPORTANT: On local dev, --scale flag is not used (See ./dev.sh), the litellm address as well as MCP server URLs below
1618
# should be given as their service names in docker-compose.dev.yml, e.g. "http://litellm:4000", "http://code-server:8050".
1719

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ services:
105105
hostname: ollama-${CLIMATECLAW_INSTANCE_NAME}
106106
volumes:
107107
- /container/da/climateclaw-ollama-models/.ollama:/root/.ollama
108+
environment:
109+
OLLAMA_KEEP_ALIVE: ${CLIMATECLAW_OLLAMA_KEEP_ALIVE:--1}
108110
networks:
109111
- climateclaw
110112
devices:

0 commit comments

Comments
 (0)