File size: 737 Bytes
d15224c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f7a30b
 
d15224c
 
 
 
 
73472e8
 
 
 
 
 
 
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
version: "3.7"

services:
  whisper_large_v2_service:
    image: whisper_large_v2:v0.1
    environment:
      - GIT_PYTHON_REFRESH=quiet
      - HUGGINGFACE_HUB_CACHE=/home/user/temp/.cache
      - TRANSFORMERS_CACHE=/home/user/temp/.cache
      - HF_HOME=/home/user/temp/.cache
      - TORCH_HOME=/home/user/temp/torch
      - TRANSFORMERS_OFFLINE=1
    tty: true
    stdin_open: true
    volumes:
      - ./Cache/:/home/user/temp/torch
      - ./Cache/:/home/user/temp/.cache
    build:
      context: .
    container_name: whisper_large_v2
    ports:
      - 8007:9000
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              device_ids: ["3"]
              capabilities: [gpu]