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

Make download scripts more accessible #7

Open
philipp-zettl opened this issue Jun 17, 2024 · 0 comments
Open

Make download scripts more accessible #7

philipp-zettl opened this issue Jun 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@philipp-zettl
Copy link
Owner

Sources for models/architectures/pipelines are scattered all over the project.
We must unify and simplify the process for users/admins.

In order to do that, port all downloads to the "new" huggingface_hub.snapshot_download method.

Here's a quick example for the ONNX version of Phi3-4k:

from huggingface_hub import snapshot_download

snapshot_download(repo, allow_patterns=['cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/*'], local_dir='models/cpu_and_mobile/phi-3-4k')
@philipp-zettl philipp-zettl added the enhancement New feature or request label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant