DuyTa commited on
Commit
d75b1ca
1 Parent(s): ea4da3a

Update asr-compose.yaml

Browse files

refact to use gpu in containers

Files changed (1) hide show
  1. asr-compose.yaml +12 -0
asr-compose.yaml CHANGED
@@ -10,6 +10,12 @@ services:
10
  environment:
11
  - NVIDIA_VISIBLE_DEVICES=all
12
  - NVIDIA_DRIVER_CAPABILITIES=compute,utility
 
 
 
 
 
 
13
 
14
  whisper-service:
15
  image: duyta506/graduation:whisper-latest-gpu12.0
@@ -20,3 +26,9 @@ services:
20
  environment:
21
  - NVIDIA_VISIBLE_DEVICES=all
22
  - NVIDIA_DRIVER_CAPABILITIES=compute,utility
 
 
 
 
 
 
 
10
  environment:
11
  - NVIDIA_VISIBLE_DEVICES=all
12
  - NVIDIA_DRIVER_CAPABILITIES=compute,utility
13
+ deploy:
14
+ resources:
15
+ reservations:
16
+ devices:
17
+ - capabilities: [gpu]
18
+ runtime: nvidia
19
 
20
  whisper-service:
21
  image: duyta506/graduation:whisper-latest-gpu12.0
 
26
  environment:
27
  - NVIDIA_VISIBLE_DEVICES=all
28
  - NVIDIA_DRIVER_CAPABILITIES=compute,utility
29
+ deploy:
30
+ resources:
31
+ reservations:
32
+ devices:
33
+ - capabilities: [gpu]
34
+ runtime: nvidia