pypi huggingface-hub 1.7.2
[1.7.2] `hf` CLI skill improvements, `uv` extension installs & bug fixes

11 hours ago

🛠️ CLI improvements

hf CLI skill now fully expands subcommand groups and inlines all flags and options, making the CLI self-describing and easier for agents to discover.

hf extension install now uses uv for Python extension installation when available making extension installation faster:

> hyperfine "hf extensions install alvarobartt/hf-mem --force"
# Before
Benchmark 1: hf extensions install alvarobartt/hf-mem --force
  Time (mean ± σ):      3.490 s ±  0.220 s    [User: 1.925 s, System: 0.445 s]
  Range (min … max):    3.348 s …  4.097 s    10 runs

# After
Benchmark 1: hf extensions install alvarobartt/hf-mem --force
  Time (mean ± σ):     519.6 ms ± 119.7 ms    [User: 216.6 ms, System: 95.2 ms]
  Range (min … max):   371.6 ms … 655.2 ms    10 runs

Other QoL improvements:

🐛 Bug & Typo fixes

  • Fix HfFileSystem glob in missing subdirectory (#3935) by @lhoestq
  • Fix: use module logger consistently and narrow bare except clauses (#3924) by @mango766
  • Fix typo in --every help text (#3950) by @julien-c

📚 Docs

  • Rename .env to .venv in virtual environment instructions (#3939) by @julien-c

🏗️ Internal

Full Changelog: v1.7.1...v1.7.2

Don't miss a new huggingface-hub release

NewReleases is sending notifications on new releases.