You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7b402c8
Browse filesBrowse the repository at this point in the historyBrowse files
fix(container): start on CPU when device=auto and align run commands
Resolve SENSEVOICE_DEVICE=auto for CPU Docker hosts
Keeps the local-build path documented while public registry pulls remain private.
Signed-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,12 +145,14 @@ You can also run SenseVoice using Docker:
145
145
docker build -t sensevoice .
146
146
147
147
# Run with GPU
148
-
docker run --gpus all -p 50000:50000 sensevoice
148
+
docker run --rm --gpus all -p 50000:50000 -v sensevoice-models:/models sensevoice
149
149
150
150
# Run on CPU
151
-
docker run -e SENSEVOICE_DEVICE=cpu -p 50000:50000 sensevoice
151
+
docker run --rm -e SENSEVOICE_DEVICE=cpu -p 50000:50000 -v sensevoice-models:/models sensevoice
152
152
```
153
153
154
+
Do not advertise `docker pull` for `ghcr.io/qwenaudio/sensevoice` or the old Aliyun registry while those paths return HTTP 401 for anonymous clients. Port is 50000, not 60001.
155
+
154
156
## Questions?
155
157
156
158
- Open an issue using the [Questions template](https://github.com/QwenAudio/SenseVoice/issues/new?template=ask_questions.md).
docker run --rm --gpus all -p 50000:50000 -v sensevoice-models:/models sensevoice
343
343
```
344
344
### Run (CPU-only)
345
345
```bash
346
346
docker run --rm -e SENSEVOICE_DEVICE=cpu -p 50000:50000 -v sensevoice-models:/models sensevoice
347
347
```
348
+
349
+
The container listens on port 50000. After it is healthy, open `http://127.0.0.1:50000/docs`.
350
+
348
351
### Docker Compose
349
-
Docker Compose provides an easier way to run SenseVoice with persistent model caching, networking etc.
352
+
Docker Compose builds the same image and keeps the model cache on the `sensevoice-models` volume. The default compose file does not request GPUs, so it starts on CPU hosts. For GPU, use the `docker run --gpus all` command above.
350
353
351
354
### Start Stack
352
355
```bash
353
356
docker compose up --build
357
+
# CPU is the default. Equivalent: SENSEVOICE_DEVICE=cpu docker compose up --build
0 commit comments