2023-03-22 15:18:12 +00:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
|
|
services:
|
2023-03-25 09:39:40 +00:00
|
|
|
init:
|
|
|
|
|
image: tabbyml/tabby
|
|
|
|
|
container_name: tabby-init
|
2023-03-25 13:37:38 +00:00
|
|
|
command: python -m tabby.tools.model_preload --repo_id TabbyML/NeoX-70M
|
2023-03-25 09:39:40 +00:00
|
|
|
volumes:
|
2023-03-26 14:44:15 +00:00
|
|
|
- ../data/hf_cache:/root/.cache/huggingface
|
2023-03-25 09:39:40 +00:00
|
|
|
|
2023-03-22 15:18:12 +00:00
|
|
|
server:
|
|
|
|
|
image: tabbyml/tabby
|
|
|
|
|
container_name: tabby-server
|
2023-03-25 04:20:29 +00:00
|
|
|
command: uvicorn tabby.server:app --host 0.0.0.0 --port 5000
|
2023-03-22 15:18:12 +00:00
|
|
|
environment:
|
2023-03-25 09:39:40 +00:00
|
|
|
- MODEL_NAME=TabbyML/NeoX-70M
|
2023-03-26 14:44:15 +00:00
|
|
|
- MODEL_BACKEND=triton
|
2023-03-22 15:18:12 +00:00
|
|
|
ports:
|
|
|
|
|
- "5000:5000"
|
|
|
|
|
volumes:
|
2023-03-26 14:44:15 +00:00
|
|
|
- ../data/hf_cache:/root/.cache/huggingface
|
2023-03-25 09:39:40 +00:00
|
|
|
depends_on:
|
|
|
|
|
init:
|
|
|
|
|
condition: service_completed_successfully
|
2023-03-26 14:44:15 +00:00
|
|
|
triton:
|
|
|
|
|
condition: service_healthy
|
2023-03-22 15:18:12 +00:00
|
|
|
|
|
|
|
|
admin:
|
|
|
|
|
image: tabbyml/tabby
|
|
|
|
|
container_name: tabby-admin
|
2023-03-25 04:20:29 +00:00
|
|
|
command: streamlit run tabby/admin/Home.py
|
2023-03-22 15:18:12 +00:00
|
|
|
ports:
|
|
|
|
|
- "8501:8501"
|
|
|
|
|
|
2023-03-26 14:44:15 +00:00
|
|
|
triton:
|
|
|
|
|
image: tabbyml/fastertransformer_backend
|
|
|
|
|
container_name: tabby-triton
|
|
|
|
|
command: /scripts/triton.sh
|
|
|
|
|
shm_size: 1gb
|
2023-03-22 15:18:12 +00:00
|
|
|
volumes:
|
2023-03-26 14:44:15 +00:00
|
|
|
- ./scripts:/scripts
|
|
|
|
|
- ../data/hf_cache:/root/.cache/huggingface
|
|
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
reservations:
|
|
|
|
|
devices:
|
|
|
|
|
- driver: nvidia
|
|
|
|
|
count: all
|
|
|
|
|
capabilities: [gpu]
|
2023-03-25 06:44:46 +00:00
|
|
|
environment:
|
2023-03-26 14:44:15 +00:00
|
|
|
- MODEL_NAME=TabbyML/NeoX-70M
|
|
|
|
|
depends_on:
|
|
|
|
|
init:
|
|
|
|
|
condition: service_completed_successfully
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8002/metrics"]
|
|
|
|
|
interval: 2s
|
|
|
|
|
timeout: 2s
|
|
|
|
|
start_period: 120s
|