Skip to content

Load tiny-agents from Hub #1472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Load tiny-agents from Hub #1472

wants to merge 6 commits into from

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented May 21, 2025

As discussed offline, this PR moves the curated collection of tiny-agents to the Hub. Agents must now be contributed to https://huggingface.co/datasets/huggingface/tiny-agents. This will be helpful to maintain the collection independently from the @huggingface/tiny-agents releases. It also makes them available for the incoming Python equivalent (huggingface/huggingface_hub#3098).

File resolution is still the same:

  1. if agent_id is a file => load it as a agent.json file
  2. if agent_id is a directory => load from it
  3. if agent_id is a subdirectory in https://huggingface.co/datasets/huggingface/tiny-agents/tree/main => load from it
  4. otherwise raise exception

Usage is still:

npx @huggingface/tiny-agents run "julien-c/flux-schnell-generator"

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!! thanks! 🔥

Copy link
Collaborator

@evalstate evalstate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice. I have it in mind that we should also be able to add these to the HF tool server...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants