-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update Dockerfile #45
Conversation
- Update to non-deprecated base image version - Preinstall deepspeed in Docker image so this isn't done each time the app is run - Optimize Docker layer caching by installing xtts-api-server after torch & torchaudio (which likely change less frequently) - Listen on all network interfaces, ensuring the server is reachable from the host machine - Set the tunnel URL argument in the Docker CMD to localhost so the preview_urls returned by /speakers are accessible from the host machine
WalkthroughThe Dockerfile has been updated to use a newer CUDA base image, added the installation of DeepSpeed alongside the xtts-api-server, and modified the command to run the server. The changes suggest a focus on enhancing the server's capabilities with DeepSpeed optimization and potentially updating compatibility with the newer CUDA version. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- docker/Dockerfile (2 hunks)
Additional comments: 3
docker/Dockerfile (3)
- 2-2: Updated base image to
nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
.This change aligns with the NVIDIA container images support policy and is a good practice for maintaining up-to-date dependencies.
- 23-24: Installation of
deepspeed
beforextts-api-server
.This change is beneficial for Docker layer caching, as
deepspeed
is less likely to change than the application code, allowing for more efficient use of the cache.
- 30-30: Modification of the CMD instruction to include
--listen
and set the tunnel URL tohttp://localhost:8020
.This change ensures that the server listens on all network interfaces and that the
preview_urls
are accessible from the host machine, which is important for development and testing.
Hi, thanks for your work, I'm not really good at docker ) |
Thanks for building this project! Happy to help :) |
Changes
deepspeed
in Docker image so this isn't done each time the app is runxtts-api-server
aftertorch
&torchaudio
(which likely change less frequently)CMD
to localhost so thepreview_urls
returned by/speakers
are accessible from the host machineSummary by CodeRabbit
New Features
Refactor