File size: 3,070 Bytes
adabee1 | 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | # Run every step as: docker compose run --rm kit <command>
# e.g. docker compose run --rm kit python check_environment.py --device cuda
name: tiny-voca-dk
services:
kit: &kit
image: tiny-voca-dk:cu128
build:
context: .
dockerfile: docker/Dockerfile
user: "${UID:-1000}:${GID:-1000}"
working_dir: /opt/kit
shm_size: 8g
environment:
OMP_NUM_THREADS: ${OMP_NUM_THREADS:-8}
MKL_NUM_THREADS: ${OMP_NUM_THREADS:-8}
CUDA_VISIBLE_DEVICES: ${CUDA_VISIBLE_DEVICES:-0,1}
# Everything that is produced lives on the big NVMe disk of the GPU host.
volumes:
- ./scripts:/opt/kit/scripts:ro
- ${DATA_ROOT:-/srv/tiny-voca-dk}/data:/opt/kit/data
- ${DATA_ROOT:-/srv/tiny-voca-dk}/models:/opt/kit/models
- ${DATA_ROOT:-/srv/tiny-voca-dk}/runs:/opt/kit/runs
- ${DATA_ROOT:-/srv/tiny-voca-dk}/work:/opt/kit/work
- ${DATA_ROOT:-/srv/tiny-voca-dk}/checks:/opt/kit/checks
- ${DATA_ROOT:-/srv/tiny-voca-dk}/out:/opt/kit/out
- ${DATA_ROOT:-/srv/tiny-voca-dk}/export:/opt/kit/export
- ${DATA_ROOT:-/srv/tiny-voca-dk}/cache:/opt/kit/cache
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# Same pipeline with the v3 frontend (NST lexicon + stød), see AGENTS.md.
kit-v3:
<<: *kit
image: tiny-voca-dk:v3
build:
context: .
dockerfile: docker/Dockerfile
args:
KIT: kit-v3
# Frontend v4: NST G2P for unknown Danish words, English pieces to eSpeak en, enog… numerals.
kit-v4:
<<: *kit
image: tiny-voca-dk:v4
build:
context: .
dockerfile: docker/Dockerfile.v4
# v3 kit + DeepPhonemizer + lingua, for the frontend-v4 work (G2P training, audits).
g2p:
<<: *kit
image: tiny-voca-dk-g2p:1
build:
context: .
dockerfile: docker/Dockerfile.g2p
profiles: [tools]
# Original English tiny-voca, for reference renders (CPU).
ref:
image: tiny-voca-dk-ref:4bf796d
build:
context: .
dockerfile: docker/Dockerfile.ref
user: "${UID:-1000}:${GID:-1000}"
working_dir: /opt/ref
volumes:
- ./scripts:/opt/ref/scripts:ro
- ${DATA_ROOT:-/srv/tiny-voca-dk}/out:/opt/ref/out
profiles: [tools]
# DNSMOS + UTMOS automatic quality scoring (CPU). Paths are relative to the data root.
quality:
image: tiny-voca-dk-quality:1
build:
context: .
dockerfile: docker/Dockerfile.quality
user: "${UID:-1000}:${GID:-1000}"
working_dir: /work
volumes:
- ${DATA_ROOT:-/srv/tiny-voca-dk}:/work
- ./scripts:/work/scripts:ro
profiles: [tools]
# Intelligibility (CER/WER) with CoRal's Danish ASR, Røst v3 wav2vec2 (CPU).
asr:
image: tiny-voca-dk-asr:2
build:
context: .
dockerfile: docker/Dockerfile.asr
user: "${UID:-1000}:${GID:-1000}"
working_dir: /work
volumes:
- ${DATA_ROOT:-/srv/tiny-voca-dk}:/work
- ./scripts:/work/scripts:ro
profiles: [tools]
|