Skip to content

hfapi.list_models() support list the top K trending models for TGI/TEI/Diffusion models #2427

Closed
@weigary

Description

Is your feature request related to a problem? Please describe.
We are integrating with HF to get the top K TGI/TEI models and generate the deployment settings for these models. We need to have a way to get the top K trending models. Now it seems the only way is to use a crawler to crawl the page https://huggingface.co/models-json?sort=trending&p=1&other=text-generation-inference, which is not very reliable and inconvenient.

Describe the solution you'd like
Can we add a sort=trending option in this API, so that we can list all the models sorted by trending?

Describe alternatives you've considered

Additional context

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions