Skip to content

Document hf models ls --inference-provider / --warm on the Inference Providers Hub API page#2632

Merged
davanstrien merged 5 commits into
huggingface:mainfrom
davanstrien:models-ls-inference-provider-cli
Jul 9, 2026
Merged

Document hf models ls --inference-provider / --warm on the Inference Providers Hub API page#2632
davanstrien merged 5 commits into
huggingface:mainfrom
davanstrien:models-ls-inference-provider-cli

Conversation

@davanstrien

@davanstrien davanstrien commented Jul 9, 2026

Copy link
Copy Markdown
Member

What

Documents the new hf models ls inference-provider discovery flags (huggingface/huggingface_hub#4497, motivated by huggingface/huggingface_hub#4441: humans and coding agents need a one-command way to find "models I can actually call") in three places:

  • hub-api.md (List models): CLI examples alongside the existing curl filters — --warm, --warm --search GLM-5.2, --inference-provider fireworks-ai --sort downloads — plus --expand inferenceProviderMapping / --json pointers.
  • guides/first-api-call.md (Step 1): a TIP showing the terminal/agent equivalent of the browser model-search step, so the guide is followable end-to-end without a browser.
  • index.md (Inference Playground): a one-sentence terminal pointer next to the Playground option.

All documented commands and variants verified against a git-main install of huggingface_hub.

Why draft

The flags are merged but not yet in a huggingface_hub release (latest is v1.22.0, 2026-07-03). Marking ready once the next release ships so the docs don't point at commands users can't run yet.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only changes with no runtime or API behavior; the only caveat is users may not have the CLI flags until the next huggingface_hub release.

Overview
Documents hf models ls discovery flags (--warm, --inference-provider, --pipeline-tag, --search, --sort, --json, --expand inferenceProviderMapping) as the terminal equivalent of existing Hub API curl filters.

On hub-api.md, a new CLI section sits after the List models curl examples with sample commands and notes on repeating --inference-provider and machine-readable output.

guides/first-api-call.md adds a TIP under Step 1 so model search can be done from the terminal or by agents without the browser.

index.md adds a one-line terminal pointer next to the Inference Playground section, linking to the Hub API page for full filters.

Note: These CLI flags depend on a huggingface_hub release newer than what users may have installed today; the PR description flags that timing.

Reviewed by Cursor Bugbot for commit 71df584. Bugbot is set up for automated code reviews on this repo. Configure here.

…page

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks again for taking care of updating the docs 🫶

Feature should be released later today so you'll be good to merge

…--json

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@davanstrien

Copy link
Copy Markdown
Member Author

cc @gary149 for viz since you have refreshed the agent onboarding recently.

davanstrien and others added 2 commits July 9, 2026 13:33
… links

Swap the first-api-call TIP's --filter for --pipeline-tag (same filter as the
models?pipeline_tag= links, not a tags superset) and add a fal-ai task example
to the hub-api CLI block mirroring the curl example above it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@davanstrien
davanstrien marked this pull request as ready for review July 9, 2026 13:40
@davanstrien

Copy link
Copy Markdown
Member Author

will merge now since the release is imminent. Can iterate if needed

@davanstrien
davanstrien merged commit 4123969 into huggingface:main Jul 9, 2026
2 checks passed
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.

3 participants