Skip to content

Model loading from huggingface using parallel downloads #770

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

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

dxqbYD
Copy link
Collaborator

@dxqbYD dxqbYD commented Apr 5, 2025

  • increases download speed from about 40 mbit/s to the maximum download limit of my connection, by utilizing the parallel downloads feature of the huggingface_hub API
  • works on any host including your local machine, but especially useful for cloud training, because the model is downloaded anew each training run (if you don't have persistent storage)
  • implemented only for Flux, hence the "Draft PR". Will copy to all models if you like this PR

@dxqbYD
Copy link
Collaborator Author

dxqbYD commented Apr 5, 2025

merged #639 because there is a small dependency. Find the stand-alone code of this PR here: 851c3f2

@dxqbYD
Copy link
Collaborator Author

dxqbYD commented Apr 21, 2025

merged the new master branch, which makes this PR easier to read because it was a combination before

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.

1 participant