sincecutoff.com
← all changes

hf models ls filters by parameter count

Introduced 2026-03-12 · score 0.98

HOW TO USE IT

When you need Hub models within a parameter-count range, pass that range to `hf models ls --num-parameters`. Use the documented Hub UI range syntax, for example `min:6B,max:128B`.

hf models ls --num-parameters min:6B,max:128B
models = hf_api.list_models(num_parameters="min:6B,max:128B")

WHY THIS HELPS

Find models in the Hub within a parameter-count range for a repository dependency or evaluation.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.7.0
  • --num-parameters TEXT: Filter models by parameter count; accepts the Hub UI range syntax, such as `min:6B,max:128B`.
  • num_parameters: Filter models by parameter count using the Hub UI range syntax.
  • The filter uses the Hub UI/API range syntax.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card