You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there! Great utility! It's so nice not having to code something up in python to get similar behavior to the hf_hub_download function.
One request I have, however, would be the ability to filter by model filetype.
Or, heck, maybe this already exists, and I'm mis-understanding how the filtering works.
For example:
If downloading from stabilityai/stable-diffusion-xl-base-1.0, they have a myriad of different model types/weights/etc.
But, for my purposes, I really only care about the .json and .safetensors files - and even then, only the ones in subdirectories.
While I know the latter part would probably make things get super-complicated, I feel like being able to only pull down .safetensors and .json files would be a bit easier to implement?
Or, if the functionality is already there...could you kindly let me know how to filter this way?
Much appreciated.
The text was updated successfully, but these errors were encountered:
this skipps all .bin .act and .model files
But a more capable filtering would be nice.
something like --include "*.safetensors,tokenizer.model,*.json"
and an exclude maybe mutually exclusive would be nice. Or even --include-regex but that might go a bit far.
Hey there! Great utility! It's so nice not having to code something up in python to get similar behavior to the hf_hub_download function.
One request I have, however, would be the ability to filter by model filetype.
Or, heck, maybe this already exists, and I'm mis-understanding how the filtering works.
For example:
If downloading from stabilityai/stable-diffusion-xl-base-1.0, they have a myriad of different model types/weights/etc.
But, for my purposes, I really only care about the .json and .safetensors files - and even then, only the ones in subdirectories.
While I know the latter part would probably make things get super-complicated, I feel like being able to only pull down .safetensors and .json files would be a bit easier to implement?
Or, if the functionality is already there...could you kindly let me know how to filter this way?
Much appreciated.
The text was updated successfully, but these errors were encountered: