Change8

v1.27.0.rc0

Breaking Changes
📦 huggingface-hubView on GitHub →
2 breaking8 features🐛 4 fixes🔧 14 symbols

Summary

This release enhances the `hf-cli` skill by enabling automatic installation and synchronization, introduces flexible engine flag management for Inference Endpoints, and adds Baseten as a new inference provider. It also includes several quality-of-life improvements and bug fixes.

⚠️ Breaking Changes

  • The `--container-command` and `--container-args` flags for `hf endpoints deploy` and `hf endpoints update` now replace existing values instead of appending to them. To reset to the image default, pass an empty string. To leave the values untouched, omit the flag.
  • The `HfApi.space_info` and `HfApi.list_spaces` methods now accept `region` as an expandable property. The `SpaceInfo` type now includes `Literal["us", "eu"] | None` for the region.

Migration Steps

  1. When updating Inference Endpoints using `--container-command` or `--container-args`, be aware that values now replace existing ones. Pass an empty string to reset to image defaults or omit the flag to keep current settings.
  2. When using `HfApi.space_info` or `HfApi.list_spaces`, you can now expand the `region` property.

✨ New Features

  • The `hf-cli` skill is now installed globally by default with the standalone installers (`bash` and `PowerShell`).
  • The `hf update` command now refreshes the `hf-cli` skill.
  • Any `hf` command will now hint, at most once a day, if the `hf-cli` skill is missing or was generated by another `hf` version. This hint is local and does not install anything.
  • The `--container-command` and `--container-args` flags are now supported for Inference Endpoints without requiring `--custom-image`.
  • The `--container-command` and `--container-args` flags can now be changed after an Inference Endpoint has been deployed using `hf endpoints update`.
  • The `HfApi.update_inference_endpoint` and `InferenceEndpoint.update` methods now support `container_command` and `container_args` parameters.
  • Baseten is now supported as an inference provider for the `conversational` task, offering an OpenAI-compatible chat completions API.
  • The `HfApi.space_info` and `HfApi.list_spaces` methods now accept `region` as an expandable property.

🐛 Bug Fixes

  • Fixed bucket prefix collisions in `HfFileSystem` where `exists(".../logs/new.txt")` could raise `KeyError` and `ls(".../logs")` could return unrelated siblings.
  • Stopped deleting snapshot files twice when deleting a revision in the cache, preventing `FileNotFoundError` tracebacks.
  • Prevented retaining caller frames when falling back to cache after a failed HEAD call in download operations, fixing a traceback issue and a regression in `http_backoff` retries.
  • Fixed two Windows-only CI failures and flaky CI findings.

Affected Symbols