huggingface_hub icon indicating copy to clipboard operation
huggingface_hub copied to clipboard

List all downloaded models

Open maifeeulasad opened this issue 3 months ago • 5 comments

Is your feature request related to a problem? Please describe. I want to list all models which are downloaded to my system,

Describe the solution you'd like Maybe run

hf models list

Describe alternatives you've considered hf cache scan

Additional context Willing to work on this one

maifeeulasad avatar Sep 22 '25 20:09 maifeeulasad

on your local system specifically, or would a similar feature but inside hf.co/settings (i.e. hosted remotely) fit your use case?

julien-c avatar Sep 23 '25 11:09 julien-c

Hey @maifeeulasad, what information would you like to see in hf models list that is not already mentioned in hf cache scan? (trying to gauge what's needed)

Wauplin avatar Sep 23 '25 13:09 Wauplin

Note that the issue with "listing models" is that from an huggingface_hub point of view we can only list files in cache, but we cannot tell you if the model is runnable only with the local files. This information depends on the library which will be used to run the models

Wauplin avatar Sep 23 '25 13:09 Wauplin

@julien-c thanks adding one more use case to this.

@Wauplin , exactly I want to develop this feature. So this way we can just see oh, these models are downloaded in my system. I can start playing with them right away. And yes, cache doesn't gurantee their absolute existance. And that's the reason why I want this as a new feature.

Please let me know if this is something you guys also want. I can tell that I want it. If you guys want, we can discuss and start implementing it. And I am open for contribution.

Thanks! Have a good weeked. I was finalizing a self hosted agentic system.

maifeeulasad avatar Sep 26 '25 18:09 maifeeulasad

Thanks a lot for proposing yourself @maifeeulasad. I'm still unsure where we want to go with this feature since as I said it's hard to implement a rule "is this model cached?" directly in huggingface_hub. We will give it some thoughts and let you know if we want to move forward 🤗

Wauplin avatar Oct 07 '25 14:10 Wauplin