Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Docker compose vllm (#1821)

Kelvin Heaac047c2193f
diff --git a/docker-compose-vllm.yaml b/docker-compose-vllm.yaml
new file mode 100644
index 000000000..f6ab57e64
--- /dev/null
+++ b/docker-compose-vllm.yaml
@@ -0,0 +1,35 @@
+version: '3.8'
+
+services:
+ letta:
+ image: lettaai/letta:latest
+ ports:
+ - "8083:8083"
+ environment:
+ - LETTA_LLM_ENDPOINT=http://vllm:8000
+ - LETTA_LLM_ENDPOINT_TYPE=vllm
+ - LETTA_LLM_MODEL=${LETTA_LLM_MODEL} # Replace with your model
+ - LETTA_LLM_CONTEXT_WINDOW=8192
+ depends_on:
+ - vllm
+
+ vllm:
+ image: vllm/vllm-openai:latest
+ runtime: nvidia
+ deploy:
+ resources:
+ reservations:
+ devices:
+ - driver: nvidia
+ count: all
+ capabilities: [gpu]
+ environment:
+ - HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN}
+ volumes:
+ - ~/.cache/huggingface:/root/.cache/huggingface
+ ports:
+ - "8000:8000"
+ command: >
+ --model ${LETTA_LLM_MODEL} --max_model_len=8000
+ # Replace with your model
+ ipc: host
\ No newline at end of file