-
Notifications
You must be signed in to change notification settings - Fork 0
build(tts): use slim CUDA 13.3.1 image #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
eb072a7
docs(tts): design slim CUDA 13.3.1 image
volschin 0107833
docs(tts): plan slim CUDA 13.3.1 image
volschin cbd7d7b
build(tts): lock slim CUDA runtime dependencies
volschin 3db4a3b
fix(tts): emit cu132 index in slim lock
volschin b4cb005
build(tts): use slim CUDA 13.3.1 image
volschin c99dcce
fix(tts): install runtime Python stdlib
volschin 1ec0a9d
test(dgx): cover slim TTS runtime lock
volschin 495031d
test(dgx): cover split TTS locks
volschin 75683de
test(dgx): tighten split lock assertions
volschin fef7902
test(dgx): enforce slim lock exclusions
volschin 23801a7
test(dgx): normalize slim lock exclusions
volschin 5e8824f
test(dgx): reject commented lock hashes
volschin 85e26a5
fix(tts): provide pure Kaldi fbank compatibility
volschin 539483b
fix(tts): resolve Kaldi shim without importing Qwen
volschin abf6a3a
fix(tts): retain Kaldi shim license
volschin 2af985d
test(tts): close Kaldi shim install bypass
volschin 5012e36
test(tts): share torchaudio install guard
volschin 7fa5362
fix(tts): retain Triton JIT toolchain at runtime
volschin 066a051
test(tts): harden runtime tooling contract
volschin 36181da
test(tts): gate runtime tooling absence
volschin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| python3=3.14.3-0ubuntu2 | ||
| python3-venv=3.14.3-0ubuntu2 | ||
| python3-dev=3.14.3-0ubuntu2 | ||
| build-essential=12.12ubuntu2.26.04.2 | ||
| ninja-build=1.13.2-1 | ||
| patch=2.8-2build1 |
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| python3=3.14.3-0ubuntu2 | ||
| gcc-15=15.2.0-16ubuntu1 | ||
| libc6-dev=2.43-2ubuntu2.3 | ||
| libsndfile1=1.2.2-4 | ||
| libgomp1=16-20260322-1ubuntu1 | ||
| sox=14.7.0.9+ds1-1 | ||
| libsox-fmt-base=14.7.0.9+ds1-1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| flash-attn==2.8.3 --hash=sha256:1e71dd64a9e0280e0447b8a0c2541bad4bf6ac65bdeaa2f90e51a9e57de0370d |
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --extra-index-url https://download.pytorch.org/whl/cu132 | ||
|
|
||
| accelerate==1.12.0 | ||
| einops==0.8.2 | ||
| fastapi==0.135.3 | ||
| huggingface-hub==0.36.2 | ||
| librosa==0.11.0 | ||
| onnxruntime==1.28.0 | ||
| pydantic==2.12.5 | ||
| soundfile==0.14.0 | ||
| sox==1.5.0 | ||
| torch==2.13.0+cu132 | ||
| transformers==4.57.3 | ||
| uvicorn[standard]==0.44.0 |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: The inlined wheel/kaldi-compat manipulation logic is quite dense and would benefit from being factored into a dedicated script for maintainability.
The
python3 -csnippet that rewriteskaldi_compat.pytightly couples filesystem and archive manipulation into a single inline command, which makes it difficult to read, debug, and safely change (e.g., path updates or behavior tweaks). Moving this logic into a small, checked-in Python module that’s copied into the image and invoked from the Dockerfile would make the build more declarative and the transformation easier to test and evolve.Suggested implementation:
To fully implement this refactor, add a new checked-in Python module
tts/extract_kaldi_compat.pywith amain()that:wheel_path,package_root, andlicense_rootfromsys.argv[1:].ZipFile(wheel_path)and reads:torchaudio/compliance/kaldi.pyintosource(decoded as UTF-8).torchaudio-2.9.1.dist-info/LICENSEintolicense_text(bytes).source.count("import torchaudio\n") == 1for safety.PROVENANCE + source.replace("import torchaudio\n", "")toPath(package_root) / "core/tokenizer_25hz/vq/kaldi_compat.py"with UTF-8 encoding.license_rootexists (Path(license_root).mkdir(parents=True, exist_ok=True)) and writeslicense_texttoPath(license_root) / "LICENSE".Include the usual
if __name__ == "__main__": main()boilerplate so the script can be invoked as done in the Dockerfile.