Created
February 13, 2024 18:46
-
-
Save nkpz/4686276f4a774747f7b7a01b0496e47d to your computer and use it in GitHub Desktop.
Huggingface To wget Bookmarket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following can be added to your bookmark bar. Go to any file listing for a Huggingface model, | |
// click this bookmarklet, and your clipboard will contain a wget command to download everything. | |
// This way, you don't have to manually put the command together or use git. | |
// The problem with using git is that it will create a .git folder containing model files, doubling the disk usage | |
javascript:navigator.clipboard.writeText('wget ' + [...document.querySelectorAll('a[download]')].map((a) => 'https://huggingface.co' + a.getAttribute('href').slice(0,-14)).join(' ')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment