8000 Support torch patch base images by 8W9aG · Pull Request #1894 · replicate/cog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support torch patch base images #1894

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 5 commits into from
Aug 22, 2024
Merged

Support torch patch base images #1894

merged 5 commits into from
Aug 22, 2024

Conversation

8W9aG
Copy link
Contributor
@8W9aG 8W9aG commented Aug 21, 2024
  • Do not strip patch version from torch
  • If the user specifies a torch version without a patch, resolve the highest patch version from our compatibility matrix
  • Change the version struct to use a pointer for the patch version in order to handle cases where the pointer has not been supplied (and how that manifests when comparing versions)
  • Standardise on StripModifier for the version rendering
  • No longer generate a torch minor compatibility matrix, unnecessary now we explicitly define patch version compatibilities

8W9aG added 4 commits August 21, 2024 16:47
* Support base images based on torch patch
versions.
* Do not forward cu118 et al version modifiers
* Make sure the modifier is always stripped from
torch (we don’t need it anymore)
* Support major/minor versions of torch that
resolve to latest patch version
* Add the concept of a set Patch to version, that
allows logic to know whether the patch version is
explicitly set or not.
* When rendering the base image name, resolve the
latest torch patch version if not supplied
* Add BaseImageConfigurations that conform to the
null CUDA
Copy link
Member
@andreasjansson andreasjansson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also stop stripping out torch and torchvision from the generated requirements.txt in the build process, but that's probably a different PR?

@8W9aG
Copy link
Contributor Author
8W9aG commented Aug 22, 2024

We should also stop stripping out torch and torchvision from the generated requirements.txt in the build process, but that's probably a different PR?

Yeh the next PR after this one handles torchvision and torchaudio

@8W9aG 8W9aG requested a review from andreasjansson August 22, 2024 14:02
@8W9aG 8W9aG merged commit 1a58942 into main Aug 22, 2024
15 checks passed
@8W9aG 8W9aG deleted the support-torch-patch-base-images branch August 22, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0