Skip to content

Conversation

@nagesh161007
Copy link

@nagesh161007 nagesh161007 commented Jan 14, 2026

What does this PR do?

Adds support for filtering models by appsparameters in the listModels function, enabling users to filter models based on supported applications

Changes

  • Add apps?: string[] - Filter models by supported applications (vllm, ollama, tgi, mlx-lm, etc.)

Example Usage

import { listModels } from "@huggingface/hub";

for await (const model of listModels({
  search: { 
    apps: ["mlx-lm"],
  },
  limit: 10
})) {
  console.log(model.name);
}

@nagesh161007
Copy link
Author

@Wauplin, when you have some time, could you please take a look at this small item. Also needs workflow approval from maintainers

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Hi @nagesh161007 , thanks for the PR. I've left 2 main comments:

  • for apps, let's add a more robust test
  • for library, it's not possible to filter as you did since it's already handled by filter

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

PR looks good once comment is addressed. Can you also update the PR title and description to match the new behavior?

And let's wait for @coyotte508 's review before merging

@nagesh161007 nagesh161007 changed the title ✨ Add apps, library, params to listModels ✨ Add apps params to listModels Jan 16, 2026
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.

2 participants