37 строки
999 B
INI
37 строки
999 B
INI
[Container]
|
|
ContainerName=whisper
|
|
Image=localhost/whisper:vulkan-amd64
|
|
#AutoUpdate=registry
|
|
Network=internal.network
|
|
PublishPort=8080:8080
|
|
|
|
# Production - Cache dei modelli
|
|
Volume=/srv/containers/whisper/models:/app/models
|
|
|
|
# Vulkan GPU support
|
|
AddDevice=/dev/dri/renderD128
|
|
Volume=/usr/share/vulkan:/usr/share/vulkan:ro
|
|
PodmanArgs=--group-add=keep-groups --ipc=host
|
|
SecurityLabelType=container_runtime_t
|
|
|
|
# Whisper configuration
|
|
Environment=WHISPER_MODEL_NAME=small
|
|
Environment=WHISPER_MODEL_FILE=ggml-small.bin
|
|
Environment=WHISPER_LANGUAGE=auto
|
|
Environment=WHISPER_TRANSLATE=false
|
|
Environment=WHISPER_DTW=large.v3
|
|
|
|
Environment=WHISPER_DETECT_LANGUAGE=false
|
|
Environment=HF_HOME=/app/models/.huggingface
|
|
Environment=HF_HUB_ENABLE_HF_TRANSFER=1
|
|
Environment=VK_DRIVER_FILES=/usr/share/vulkan/icd.d/radeon_icd.json
|
|
Environment=LD_LIBRARY_PATH=/app:/usr/local/lib:/usr/lib:/usr/lib/x86_64-linux-gnu
|
|
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
TimeoutStartSec=10m
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|