fix(container): start on CPU when device=auto and align run commands - #351
Merged
LauraGPT merged 1 commit intoSep 5, 2026
Merged
Conversation
The English GPU run command was missing the model volume, compose reserved GPUs so CPU machines could not start, and SENSEVOICE_DEVICE=auto was passed straight into FunASR. Align the docs with the verified runtime and resolve auto to cuda:0 or cpu. Signed-off-by: Chandan Kumar <cml.codes@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker runnow matches the command already verified on zh/ja and in [Bug]: Unable to pull Docker image or start Docker service #339:--rm, port 50000, and thesensevoice-modelsvolume.docker-compose.yamlno longer reserves GPUs, sodocker compose up --buildstarts on a machine without the NVIDIA runtime.SENSEVOICE_DEVICE=auto(the image default) resolves tocuda:0orcpuinstead of being passed into FunASR as the stringauto.Refs #339
User impact
The original report could not pull a public image or start the service. Public pulls are still 401 (Aliyun and GHCR). The path that should actually start is the local build. After this change the English start command, compose, and
autodevice match that path, including on CPU hosts.Model, API, and runtime impact
Validation
python -m unittest tests.test_container_contract tests.test_device_env(12 passed)Dockerfile still
EXPOSE 50000. I did not rebuild the full pytorch image locally; the container workflow on this PR will do that.Screenshots, logs, or transcripts
Before, English GPU run was
docker run --gpus all -p 50000:50000 sensevoice(no volume, no--rm). After, it is the same line as zh/ja:resolve_sensevoice_device("auto", cuda_available=False)returnscpu.Notes for reviewers
Issue stays open until the reporter confirms the local build. GHCR visibility is still private; this PR does not advertise an anonymous pull.
Made with Cursor