hf_list_models
Search and retrieve metadata for machine learning models on Hugging Face Hub. Filter by search terms, authors, tags, and sort by downloads, likes, or other properties for precise results.
Instructions
Get information from all models in the Hub. Supports filtering by search terms, authors, tags, and more. Returns paginated results with model metadata including downloads, likes, and tags.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
author | No | Filter models by author or organization (e.g., 'huggingface', 'microsoft') | |
config | No | Whether to also fetch the repo config | |
direction | No | Sort direction: '-1' for descending, anything else for ascending | |
filter | No | Filter based on tags (e.g., 'text-classification', 'spacy') | |
full | No | Whether to fetch most model data including all tags and files | |
limit | No | Limit the number of models fetched | |
search | No | Filter based on substrings for repos and their usernames (e.g., 'resnet', 'microsoft') | |
sort | No | Property to use when sorting (e.g., 'downloads', 'author') |