Repository navigation
Update dependency huggingface-hub to v2.2.0 - #19
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
==2.1.1→==2.2.0Release Notes
huggingface/huggingface_hub (huggingface-hub)
v2.2.0: [v2.2.0]hf jobs statssnapshots, download andHfFileSystemfixesCompare Source
A small release this week, mostly bug fixes and quality-of-life improvements.
hf jobs statsnow returns right away instead of streaming forever, concurrent downloads reliably usehf_xet, andHfFileSystemcaching is more predictable. Two behavior changes are listed under Breaking changes.📊
hf jobs statsprints a snapshot by defaulthf jobs statsused to stream metrics until the job finished, so scripts and agents calling it on a running job hung until their own timeout. It now prints the latest sample of each job once and exits, likehf jobs logsandhf spaces logs. Use-f/--followfor the previous live view. Snapshot output also supports--format json|agent|quiet, which outputs the raw API metrics.On the Python side,
HfApi.fetch_job_metricsgets the samefollowparameter asfetch_job_logs. It defaults toFalseand returns only the current sample. Passfollow=Trueto stream until the job completes.Other Jobs fixes in this release:
hf jobs logsandhf spaces logswithout-fno longer hang while the job keeps printing,hf jobs statsno longer fails when one of the requested jobs has finished, andhf jobs stats --jsonprints[]when no job is running.📚 Documentation: Jobs guide
⚡ Concurrent downloads always use
hf_xetIn a fresh process, the first concurrent
hf_hub_downloadcalls could read a placeholder version forhf_xetwhile another thread was still looking it up. Those calls treatedhf_xetas missing and downloaded through the plain HTTP path. This mostly affected parallel downloads such assnapshot_download, where some of the files skipped Xet. The version lookup is now cached only once it is resolved, so every download sees the real value._get_versionthat makes concurrent downloads skip hf_xet by @BramVanroy in #5102📂
HfFileSystemcache fixesThree fixes to how
HfFileSystemcaches listings and missing paths:ls()on a newly created empty bucket returns an empty list instead of raisingFileNotFoundError.ls()afterfind()orls(refresh=True)could return duplicate entries,refresh=Truekept deleted files, and listing a single bucket file cached it as the whole folder's listing.exists(path, refresh=True)andinvalidate_cache(path)now clear cached "not found" results. Before, a repo, branch or bucket created in the same process stayed missing until a fullinvalidate_cache().ls()on new empty bucket by @lhoestq in #5097💔 Breaking changes
hf jobs statsandHfApi.fetch_job_metricsreturn a single snapshot by default instead of streaming until the job completes. Use-f/--followorfollow=Trueto keep the previous behavior. See the section above (#5090).load_torch_modelnow raisesFileNotFoundErrorinstead ofValueErrorwhen the checkpoint path does not exist, andmodel_index_to_eval_resultsraisesValueErroron an empty list (#5063).[Bugfix] Fix wrong exception type and unbound variable guard by @vector15-05 in #5063
🖥️ CLI
--exclude ".venv/**"or--include "*.json"were expanded into local file names before reaching the command.hf download <repo> --include "*.json"in a folder containing a.jsonfile silently downloaded nothing.🔧 Other QoL improvements
hf cache prune/hf cache rmno longer scales quadratically with the number of files per revision.🐛 Bug and typo fixes
📖 Documentation
🏗️ Internal
Configuration
📅 Schedule: (UTC)
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.