Skip to main content
Hugging Face hosts open-source language models and serves them through its Inference API. Agno’s HuggingFace model connects to this API using the huggingface_hub client library. See the Hugging Face Inference API docs for supported models.

Authentication

Set your HF_TOKEN environment variable. Get your key from Hugging Face here.

Example

Install the huggingface_hub package:
Use HuggingFace with your Agent:
View more examples here.

Parameters

HuggingFace is a subclass of the Model class and has access to the same params.