Working with Hugging Face
Jacob H. Marquez
Lead Data Engineer
pip install huggingface_hub
from huggingface_hub import HfApi
api = HfApi()
models = list(api.list_models(limit=3)) print(models)
[ModelInfo(id='Datou1111/shou_xin', author=None, ...),
ModelInfo(id='Qwen/QwQ-32B-Preview', author=None, ...),
ModelInfo(id='OpenGVLab/InternVL2_5-78B', author=None, ...)]
Working with Hugging Face