2024-03-08 10:47:28 +08:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
llama-factory:
|
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
|
|
|
container_name: llama_factory
|
|
|
|
volumes:
|
|
|
|
- ./hf_cache:/root/.cache/huggingface/
|
|
|
|
- ./data:/app/data
|
|
|
|
- ./output:/app/output
|
|
|
|
ports:
|
|
|
|
- "7860:7860"
|
2024-03-12 14:05:10 +08:00
|
|
|
ipc: host
|
2024-03-08 10:47:28 +08:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
devices:
|
|
|
|
- driver: nvidia
|
|
|
|
count: "all"
|
|
|
|
capabilities: [gpu]
|
|
|
|
restart: unless-stopped
|