Skip to content

Instantly share code, notes, and snippets.

@nkpz
Created February 13, 2024 18:46
Show Gist options
  • Save nkpz/4686276f4a774747f7b7a01b0496e47d to your computer and use it in GitHub Desktop.
Save nkpz/4686276f4a774747f7b7a01b0496e47d to your computer and use it in GitHub Desktop.
Huggingface To wget Bookmarket
// 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