Spaces:
Sleeping
Sleeping
File size: 708 Bytes
41d24d2 dbee86e 41d24d2 afb2bbe 41d24d2 afb2bbe 41d24d2 |
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 |
x-common-gpu: &common-gpu
build:
dockerfile: Dockerfile
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- HF_HOME=/home/user/.cache/huggingface
- HF_TOKEN=${HF_TOKEN}
- LLMS_REST_API_KEY=${LLMS_REST_API_KEY}
- BUGSNAG_API_KEY=${BUGSNAG_API_KEY}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- /home/tomasruiz/.cache/huggingface:/home/user/.cache/huggingface
services:
llmapp:
<<: *common-gpu
ports:
- "8020:8020"
rest_api:
<<: *common-gpu
ports:
- "8030:8030"
command: fastapi run rest_api.py --port 8030
hostname: rest_api |