-
Notifications
You must be signed in to change notification settings - Fork 70
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 a method to get the list of cached models #784
Conversation
This adds a method to get the list of cached models for the current optimum version as a set of (model_arch, model_org, model_name).
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
if len(sub_paths) == len(root_sub_paths) + 4: | ||
model_arch, model_org, model_name = sub_paths[-4:-1] | ||
cached_models.add((model_arch, model_org, model_name)) |
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.
Why 4
?
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.
I added a comment
Co-authored-by: Michael Benayoun <[email protected]>
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.
LGTM
This adds a method to get the list of cached models for the current optimum version as a set of (model_arch, model_org, model_name).