vost commited on
Commit
01f56d2
verified
1 Parent(s): eafe99e

Update docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +32 -22
docker-compose.yaml CHANGED
@@ -1,23 +1,33 @@
1
- services:
2
- hf-provider:
3
- image: ghcr.io/huggingface/hf-mount-fuse:latest
4
- container_name: hf-provider
5
- privileged: true
6
- cap_add:
7
- - SYS_ADMIN
8
- devices:
9
- - /dev/fuse:/dev/fuse
10
- environment:
11
- - HF_TOKEN=${HF_TOKEN}
12
- volumes:
13
- # Usamos o caminho relativo ao C:\AI-LAB que seu script criou
14
- # O :shared 茅 o que permite a "m谩gica" do FUSE vazar para fora do container
15
- - ./mnt/hf:/mnt/hf:shared
16
- command: >
17
- sh -c "
18
- mkdir -p /mnt/hf/public /mnt/hf/private &&
19
- hf-mount vost/pub-scripts /mnt/hf/public --token $${HF_TOKEN} --allow-other --cache-size 10GB &
20
- hf-mount vost/priv-configs /mnt/hf/private --token $${HF_TOKEN} --allow-other --cache-size 2GB &&
21
- wait
22
- "
 
 
 
 
 
 
 
 
 
 
23
  restart: unless-stopped
 
1
+ services:
2
+ hf-provider:
3
+ image: ghcr.io/huggingface/hf-mount-fuse:latest
4
+ container_name: hf-provider
5
+ privileged: true
6
+ cap_add:
7
+ - SYS_ADMIN
8
+ devices:
9
+ - /dev/fuse:/dev/fuse
10
+ environment:
11
+ - HF_TOKEN=${HF_TOKEN}
12
+ - RUST_LOG=hf_mount=info # Ativa logs para monitorarmos o streaming
13
+ volumes:
14
+ - ./mnt/hf:/mnt/hf:shared
15
+ # Persistindo o cache no seu SSD para evitar re-download ap贸s restart
16
+ - ./cache/hf-mount:/tmp/hf-mount-cache:rw
17
+ command: >
18
+ bash -c "
19
+ mkdir -p /mnt/hf/public /mnt/hf/private &&
20
+ hf-mount --fuse --hf-token $${HF_TOKEN} \
21
+ --cache-size 10000000000 \
22
+ --poll-interval-secs 15 \
23
+ --metadata-ttl-ms 5000 \
24
+ vost/pub-scripts /mnt/hf/public &
25
+
26
+ hf-mount --fuse --hf-token $${HF_TOKEN} \
27
+ --cache-size 2000000000 \
28
+ --poll-interval-secs 10 \
29
+ --metadata-ttl-ms 1000 \
30
+ bucket vost/priv-configs /mnt/hf/private &&
31
+ wait
32
+ "
33
  restart: unless-stopped