Skip to content
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

Adds Downloader class to add fluent coding when different options #87

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

lordofthejars
Copy link
Contributor

@lordofthejars lordofthejars commented Oct 21, 2024

Adds Downloader class to add fluent coding when different options so there are some mandatory fields, but then the optional ones can be added fluently without having to deal with Optionals or static methods.

This class, after all, encapsulates the current behavior not to break back compatibility.

Moreover, opens the door to make it adaptable if in the future we want to download models from other resources, not only huggingface.

Copy link
Owner

@tjake tjake left a comment

Choose a reason for hiding this comment

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

Awesome thanks

@tjake tjake merged commit d30e6dd into tjake:main Oct 22, 2024
4 checks passed
@lordofthejars lordofthejars deleted the downloader branch October 22, 2024 05:41
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