HuggingFaceModelDownloader icon indicating copy to clipboard operation
HuggingFaceModelDownloader copied to clipboard

[Feature Request] Filter by filetypes?

Open d8ahazard opened this issue 1 year ago • 2 comments

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.

d8ahazard avatar Dec 30 '23 16:12 d8ahazard