Skip to content

Upgrading huggingface-hub 0.25 to 0.26

Breaking0.25.2 → 0.26.5Breaking3Platform1Deprecated1New7Changed3Fixed10Other10

BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Three old download helper functions are gone; use hf_hub_download instead.
  • The legacy_cache_layout option no longer exists on hf_hub_download.
  • Client-side templating helpers have been removed because InferenceAPI now serves conversational text-generation models with TGI.
  • The library now works on Python 3.12.
5 items need code or config changes
Breaking3
Removes cached_download(), url_to_filename() and filename_to_url(); use hf_hub_download() instead.
cached_download()url_to_filename()filename_to_url()hf_hub_download()
Removes the legacy_cache_layout argument from hf_hub_download().
hf_hub_download()legacy_cache_layout
Removes all templating-related utilities from huggingface_hub.
Platform1
Adds support for Python 3.12.
Deprecated1
Deprecates update_repo_visibility in favor of update_repo_settings, with removal planned for v0.29.0.
update_repo_visibilityupdate_repo_settings