Upgrading huggingface-hub 0.24 to 0.25
Breaking0.24.7 → 0.25.2Breaking3Deprecated1New20Changed20Fixed31Other18
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- 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.
Must act 4 items need code or config changes
What you must change
Breaking3
Removes InferenceClient.conversational in favor of InferenceClient.chat_completion and removes the ConversationalOutput data class.
InferenceClient.conversationalInferenceClient.chat_completionConversationalOutputChanges all InferenceClient output values to dataclasses instead of dictionaries.
InferenceClientPaginates list_repo_likers so its output is now an iterator instead of a list.
list_repo_likersDeprecations to plan for
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