-
Notifications
You must be signed in to change notification settings - Fork 580
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 fast generator for cog build #2108
Conversation
You mean in the weigths layer that we do NOT upload, we have symlink |
* Resolve monobase caching into the local userspace to allow for monobase caching between builds
* We can get the tarballs for each of these layers instead of creating 1 big tarball.
Signed-off-by: Will Sackfield <[email protected]>
I intend to write more unit tests before I declare this complete, but the basic structure is ready for review. |
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.
Comments to sync up with replicate/monobase#63
* Monobase now handles empty CUDA env vars
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.
A few more minor comments.
Once all converged, the monobase vs user venv layers should be cleanly separate.
|
||
// SplitPinnedPythonRequirement returns the name, version, findLinks, and extraIndexURLs from a requirements.txt line | ||
// in the form name==version [--find-links=<findLink>] [-f <findLink>] [--extra-index-url=<extraIndexURL>] | ||
func SplitPinnedPythonRequirement(requirement string) (name string, version string, findLinks []string, extraIndexURLs []string, err error) { |
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.
Just realized this. Do we still need this, now that monobase.user
dedups the requirements and handles Torch index anyway?
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.
Yeh we need to perform a dedup ourselves on the cog.yaml
, it offers both python_packages
and python_requirements
as an option.
x-fast
flag is enabled, switch the generator to use theFastGenerator
instead of theStandardGenerator