chore(deps): update dependency huggingface-hub to v0.25.1 #1189
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
== 0.24.6
->==0.25.1
== 0.24.5
->==0.25.1
Release Notes
huggingface/huggingface_hub (huggingface-hub)
v0.25.1
: [v0.25.1]: Raise error if encountered in chat completion SSE streamCompare Source
Full Changelog :
v0.25.0...v0.25.1
For more details, refer to the related PR #2558
v0.25.0
: : Large uploads made simple + quality of life improvementsCompare Source
📂 Upload large folders
Uploading large models or datasets is challenging. We've already written some tips and tricks to facilitate the process but something was still missing. We are now glad to release the
huggingface-cli upload-large-folder
command. Consider it as a "please upload this no matter what, and be quick" command. Contrarily tohuggingface-cli download
, this new command is more opinionated and will split the upload into several commits. Multiple workers are started locally to hash, pre-upload and commit the files in a way that is resumable, resilient to connection errors, and optimized against rate limits. This feature has already been stress tested by the community over the last months to make it as easy and convenient to use as possible.Here is how to use it:
Every minute, a report is logged with the current status of the files and workers:
You can also run it from a script:
For more details about the command options, run:
or visit the upload guide.
✨ HfApi & CLI improvements
🔍 Search API
The search API have been updated. You can now list gated models and datasets, and filter models by their inference status (warm, cold, frozen).
More complete support for the
expand[]
parameter:👤 User API
Organizations are now included when retrieving the user overview:
get_user_overview
by @Wauplin in #2404get_user_followers
andget_user_following
are now paginated. This was not the case before, leading to issues for users with more than 1000 followers.📦 Repo API
Added
auth_check
to easily verify if a user has access to a repo. It raisesGatedRepoError
if the repo is gated and the user don't have the permission orRepositoryNotFoundError
if the repo does not exist or is private. If the method does not raise an error, you can assume the user has the permission to access the repo.auth_check
by @cjfghk5697 in #2497It is now possible to set a repo as gated from a script:
update_repo_settings
function to HfApi #2447 by @WizKnight in #2502⚡️ Inference Endpoint API
A few improvements in the
InferenceEndpoint
API. It's now possible to set ascale_to_zero_timeout
parameter + to configure secrets when creating or updating an Inference Endpoint.💾 Serialization
The torch serialization module now supports tensor subclasses.
We also made sure that now the library is tested with both
torch
1.x and 2.x to ensure compatibility.weights_only=True
by @Wauplin in #2488💔 Breaking changes
Breaking changes:
InferenceClient.conversational
task has been removed in favor ofInferenceClient.chat_completion
. Also removedConversationalOutput
data class.InferenceClient
output values are now dataclasses, not dictionaries.list_repo_likers
is now paginated. This means the output is now an iterator instead of a list.Deprecation:
multi_commit: bool
parameter inupload_folder
is not deprecated, along thecreate_commits_on_pr
. It is now recommended to useupload_large_folder
instead. Thought its API and internals are different, the goal is still to be able to upload many files in several commits.🛠️ Small fixes and maintenance
⚡️ InferenceClient fixes
Thanks to community feedback, we've been able to improve or fix significant things in both the
InferenceClient
and its async versionAsyncInferenceClient
. This fixes have been mainly focused on the OpenAI-compatiblechat_completion
method and the Inference Endpoints services.stop
parameter intext-generation
instead ofstop_sequences
by @Wauplin in #2473InferenceClient
for HF Nvidia NIM API by @Wauplin in #2482AsyncInferenceClient
by @Wauplin in #2496😌 QoL improvements
When uploading a folder, we validate the README.md file before hashing all the files, not after.
This should save some precious time when uploading large files and a corrupted model card.
Also, it is now possible to pass a
--max-workers
argument when uploading a folder from the CLIAll custom exceptions raised by
huggingface_hub
are now defined inhuggingface_hub.errors
module. This should make it easier to import them for yourtry/except
statements.At the same occasion, we've reworked how errors are formatted in
hf_raise_for_status
to print more relevant information to the users.All constants in
huggingface_hub
are now imported as a module. This makes it easier to patch their values, for example in a test pipeline.constants
import to use module-level access #1172 by @WizKnight in #2453Other quality of life improvements:
HFSummaryWriter
with 'hf-summary-writer' by @Wauplin in #2398RepoUrl
info inCommitInfo
object by @Wauplin in #2487🐛 fixes
touch()
ifOSError
(to cache non existence of file) by @Wauplin in #2505🏗️ internal
Significant community contributions
The following contributors have made significant changes to the library over the last release:
auth_check
(#2497)constants
import to use module-level access #1172 (#2453)update_repo_settings
function to HfApi #2447 (#2502)v0.24.7
: [v0.24.7]: Fix race-condition issue when downloading from multiple threadsCompare Source
Full Changelog: huggingface/huggingface_hub@v0.24.6...v0.24.7
For more details, refer to the related PR #2534.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.