Spaces:
Runtime error
Runtime error
Create docker-compose.yml
Browse files- docker-compose.yml +17 -0
docker-compose.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
text-gen:
|
| 5 |
+
image: ghcr.io/huggingface/text-generation-inference:1.3
|
| 6 |
+
ports:
|
| 7 |
+
- "8080:80"
|
| 8 |
+
environment:
|
| 9 |
+
- MODEL_ID=HuggingFaceH4/zephyr-7b-beta
|
| 10 |
+
- HF_HOME=/cache
|
| 11 |
+
- HUGGINGFACE_HUB_CACHE=/cache
|
| 12 |
+
volumes:
|
| 13 |
+
- ./cache:/cache
|
| 14 |
+
deploy:
|
| 15 |
+
resources:
|
| 16 |
+
limits:
|
| 17 |
+
memory: 16G # Ajusta si sabes cuánto puedes usar
|