-
Notifications
You must be signed in to change notification settings - Fork 572
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
Add Torchvision and Torchaudio to base images #1897
Conversation
8W9aG
commented
Aug 22, 2024
- Exclude torchaudio from pip installs (like torchvision)
- Install torchvision and torchaudio in the base images
* Use our torch audio from the cog base images instead
* Add the compatible versions of torchvision and torchaudio to the base image python packages
I don't think we should We probably also need some system packages for torchaudio to work. I'm guessing ffmpeg and possible some others. |
I'll add these packages to the base image: https://pytorch.org/audio/main/installation.html Instead of excluding packages I will add them if they don't exist and if they exist I will overwrite them to the version we support, does that sound like a plan? |
Should also add that it seems these base packages are already installed: https://github.com/replicate/cog/blob/main/pkg/dockerfile/base.go#L18 |
* If we don’t find a base image explicitly set this flag to false if it was ambiguous before * This allows the rest of the script to continue as if the user does not want a base image
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.
👍