Change8

v1.8.0

📦 huggingface-hubView on GitHub →
8 features🐛 3 fixes🔧 17 symbols

Summary

This release introduces major features for Jobs, allowing volume mounting for datasets and storage buckets, and completes the functionality of the `hf papers` CLI command. It also adds repository visibility controls and repository ID shorthands to the CLI.

Migration Steps

  1. When using CLI commands that accept a repository identifier, replace `user/repo --type <type>` with the new shorthand format, e.g., `datasets/user/repo`.

✨ New Features

  • Jobs can now mount Hugging Face repositories (models, datasets, Spaces) and Storage Buckets as volumes in containers.
  • The `hf papers` CLI command is now complete, supporting search by keyword, structured JSON metadata retrieval, and reading content as markdown.
  • The `hf papers ls` command now includes new filters for week, month, and submitter.
  • CLI repo ID shorthand is introduced: prefixes like `spaces/user/repo`, `datasets/user/repo`, and `models/user/repo` can be used instead of specifying `--type`.
  • Repositories can now be created or updated with explicit visibility settings: `--public` and `--protected` (for Spaces only), alongside `--private`.
  • Added `visibility` parameter to `HfApi.create_repo`, `update_repo_settings`, and `duplicate_repo` methods.
  • Added dataset leaderboard method to HfApi.
  • Added support for hardware flavors: cpu-performance, sprx8, h200, inf2x6.

🐛 Bug Fixes

  • Fixed `hf extensions install` on uv-managed Python by using uv when available.
  • Fixed HfFileSystem glob behavior when a subdirectory is missing.
  • Used module logger consistently and narrowed bare except clauses.

Affected Symbols