Skip to content

Upgrading huggingface-hub 0.24 to 0.25

Breaking0.24.7 → 0.25.2Breaking3Deprecated1New20Changed20Fixed31Other18

BreakingUpgrade verdict

3 breaking changes.

  • The old conversational task and its output class are gone; use chat_completion instead.
  • Code that read InferenceClient results as dictionaries must now access dataclass attributes.
  • list_repo_likers now returns an iterator, so code expecting a list must convert or iterate it.
  • The option to upload a folder in multiple commits is being phased out. Use the new large-folder uploader instead.
4 items need code or config changes
Breaking3
Removes InferenceClient.conversational in favor of InferenceClient.chat_completion and removes the ConversationalOutput data class.
InferenceClient.conversationalInferenceClient.chat_completionConversationalOutput
Changes all InferenceClient output values to dataclasses instead of dictionaries.
InferenceClient
Paginates list_repo_likers so its output is now an iterator instead of a list.
list_repo_likers
Deprecated1
Deprecates the multi_commit parameter in upload_folder and create_commits_on_pr, recommending upload_large_folder instead.
upload_foldermulti_commitcreate_commits_on_prupload_large_folder