Skip to content

Commit c644f2b

Browse files
authored
Merge pull request #48 from linuxserver/main-local
2 parents d5596c1 + 46ec094 commit c644f2b

5 files changed

Lines changed: 10 additions & 1 deletion

File tree

.editorconfig

100755100644
File mode changed.

LICENSE

100755100644
File mode changed.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ services:
9595
- PGID=1000
9696
- TZ=Etc/UTC
9797
- WHISPER_MODEL=tiny-int8
98+
- LOCAL_ONLY= #optional
9899
- WHISPER_BEAM=1 #optional
99100
- WHISPER_LANG=en #optional
100101
volumes:
@@ -113,6 +114,7 @@ docker run -d \
113114
-e PGID=1000 \
114115
-e TZ=Etc/UTC \
115116
-e WHISPER_MODEL=tiny-int8 \
117+
-e LOCAL_ONLY= `#optional` \
116118
-e WHISPER_BEAM=1 `#optional` \
117119
-e WHISPER_LANG=en `#optional` \
118120
-p 10300:10300 \
@@ -132,6 +134,7 @@ Containers are configured using parameters passed at runtime (such as those abov
132134
| `-e PGID=1000` | for GroupID - see below for explanation |
133135
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
134136
| `-e WHISPER_MODEL=tiny-int8` | Whisper model that will be used for transcription. From [here](https://github.com/SYSTRAN/faster-whisper/blob/master/faster_whisper/utils.py#L12-L31), all with `-int8` compressed variants |
137+
| `-e LOCAL_ONLY=` | If set to `true`, or any other value, the container will not attempt to download models from HuggingFace and will only use locally-provided models. |
135138
| `-e WHISPER_BEAM=1` | Number of candidates to consider simultaneously during transcription. |
136139
| `-e WHISPER_LANG=en` | Language that you will speak to the add-on. |
137140
| `-v /config` | Local path for Whisper config files. |
@@ -299,6 +302,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
299302

300303
## Versions
301304

305+
* **10.08.25:** - Add support for local-only mode.
302306
* **30.12.24:** - Add arm64 support for non-GPU builds.
303307
* **05.12.24:** - Build from Github releases rather than Pypi.
304308
* **18.07.24:** - Rebase to Ubuntu Noble.

readme-vars.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ development_versions: true
1616
development_versions_items:
1717
- {tag: "latest", desc: "Stable releases"}
1818
- {tag: "gpu", desc: "Releases with Nvidia GPU support (amd64 only)"}
19+
- {tag: "gpu-legacy", desc: "Legacy releases with Nvidia GPU support for pre-Turing cards (amd64 only)"}
1920
# container parameters
2021
common_param_env_vars_enabled: true
2122
param_container_name: "{{ project_name }}"
@@ -31,6 +32,7 @@ param_ports:
3132
# optional container parameters
3233
opt_param_usage_include_env: true
3334
opt_param_env_vars:
35+
- {env_var: "LOCAL_ONLY", env_value: "", desc: "If set to `true`, or any other value, the container will not attempt to download models from HuggingFace and will only use locally-provided models."}
3436
- {env_var: "WHISPER_BEAM", env_value: "1", desc: "Number of candidates to consider simultaneously during transcription."}
3537
- {env_var: "WHISPER_LANG", env_value: "en", desc: "Language that you will speak to the add-on."}
3638
readonly_supported: true
@@ -85,6 +87,8 @@ init_diagram: |
8587
"faster-whisper:latest" <- Base Images
8688
# changelog
8789
changelogs:
90+
- {date: "20.08.25:", desc: "Add gpu-legacy branch for pre-Turing cards."}
91+
- {date: "10.08.25:", desc: "Add support for local-only mode."}
8892
- {date: "30.12.24:", desc: "Add arm64 support for non-GPU builds."}
8993
- {date: "05.12.24:", desc: "Build from Github releases rather than Pypi."}
9094
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}

root/etc/s6-overlay/s6-rc.d/svc-whisper/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ exec \
99
--beam-size "${WHISPER_BEAM:-1}" \
1010
--language "${WHISPER_LANG:-en}" \
1111
--data-dir /config \
12-
--download-dir /config
12+
--download-dir /config \
13+
${LOCAL_ONLY:+--local-files-only}

0 commit comments

Comments
 (0)