-
Notifications
You must be signed in to change notification settings - Fork 571
minimize the docker file size using torch CPU version #1246
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
base: dev
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This pull request aims to reduce the Docker file size by switching to the CPU versions of Torch packages.
- Replaces Torch, TorchVision, and TorchAudio with their CPU-specific builds.
- Adds a constraints file to enforce the use of CPU-only package versions.
Files not reviewed (1)
- backend/Dockerfile: Language not supported
backend/constraints.txt
Outdated
torch==2.3.1+cpu | ||
torchvision==0.18.1+cpu | ||
torchaudio==2.3.1+cpu | ||
-f https://download.pytorch.org/whl/torch_stable.html |
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.
The '-f' option specifying the package index should be placed at the beginning of the file so that it applies to all package specifications.
torch==2.3.1+cpu | |
torchvision==0.18.1+cpu | |
torchaudio==2.3.1+cpu | |
-f https://download.pytorch.org/whl/torch_stable.html | |
-f https://download.pytorch.org/whl/torch_stable.html | |
torch==2.3.1+cpu | |
torchvision==0.18.1+cpu | |
torchaudio==2.3.1+cpu |
Copilot uses AI. Check for mistakes.
…s to all package specifications.
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.
Pull Request Overview
This PR aims to minimize the Docker file size by switching to CPU-specific versions of PyTorch and its related libraries.
- Updated the constraints to use torch, torchvision, and torchaudio CPU versions.
Files not reviewed (1)
- backend/Dockerfile: Language not supported
No description provided.