-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency huggingface-hub to v0.27.1 #17
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/huggingface-hub-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.20.2
chore(deps): update dependency huggingface-hub to v0.20.3
Jan 22, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
January 22, 2024 11:14
03c3048
to
3f739e7
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.20.3
chore(deps): update dependency huggingface-hub to v0.21.0
Feb 27, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
2 times, most recently
from
February 27, 2024 17:08
76f19d1
to
934b6bb
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.21.0
chore(deps): update dependency huggingface-hub to v0.21.1
Feb 27, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
February 28, 2024 16:00
934b6bb
to
9363139
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.21.1
chore(deps): update dependency huggingface-hub to v0.21.2
Feb 28, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
February 29, 2024 09:07
9363139
to
58a9f90
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.21.2
chore(deps): update dependency huggingface-hub to v0.21.3
Feb 29, 2024
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.21.3
chore(deps): update dependency huggingface-hub to v0.21.4
Mar 6, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
March 6, 2024 14:40
58a9f90
to
2dbebda
Compare
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
March 25, 2024 16:14
2dbebda
to
caab5f4
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.21.4
chore(deps): update dependency huggingface-hub to v0.22.0
Mar 25, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
March 26, 2024 17:12
caab5f4
to
61464ab
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.22.0
chore(deps): update dependency huggingface-hub to v0.22.1
Mar 26, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
March 29, 2024 13:11
61464ab
to
79a54c7
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.22.1
chore(deps): update dependency huggingface-hub to v0.22.2
Mar 29, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
May 2, 2024 13:27
79a54c7
to
c98ba98
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.22.2
chore(deps): update dependency huggingface-hub to v0.23.0
May 2, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
May 21, 2024 16:56
c98ba98
to
c3a218c
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.23.0
chore(deps): update dependency huggingface-hub to v0.23.1
May 21, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
May 27, 2024 08:45
c3a218c
to
7f4b966
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.23.1
chore(deps): update dependency huggingface-hub to v0.23.2
May 27, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
June 5, 2024 15:56
7f4b966
to
a8d1bd1
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.23.2
chore(deps): update dependency huggingface-hub to v0.23.3
Jun 5, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
June 14, 2024 14:53
a8d1bd1
to
1d48de5
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.23.3
chore(deps): update dependency huggingface-hub to v0.23.4
Jun 14, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
July 16, 2024 12:51
1d48de5
to
7ba0ab0
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.23.4
chore(deps): update dependency huggingface-hub to v0.23.5
Jul 16, 2024
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.24.1
chore(deps): update dependency huggingface-hub to v0.24.2
Jul 24, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
July 29, 2024 13:40
3a48fce
to
6f9bbe2
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.24.2
chore(deps): update dependency huggingface-hub to v0.24.3
Jul 29, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
July 31, 2024 10:00
6f9bbe2
to
99eda68
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.24.3
chore(deps): update dependency huggingface-hub to v0.24.5
Jul 31, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
August 19, 2024 15:20
99eda68
to
0bdcc7f
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.24.5
chore(deps): update dependency huggingface-hub to v0.24.6
Aug 19, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
September 12, 2024 10:54
0bdcc7f
to
44dd7d4
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.24.6
chore(deps): update dependency huggingface-hub to v0.24.7
Sep 12, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
September 17, 2024 18:17
44dd7d4
to
b40ecc2
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.24.7
chore(deps): update dependency huggingface-hub to v0.25.0
Sep 17, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
September 23, 2024 14:28
b40ecc2
to
5c6fd0d
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.25.0
chore(deps): update dependency huggingface-hub to v0.25.1
Sep 23, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
October 9, 2024 11:23
5c6fd0d
to
2908446
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.25.1
chore(deps): update dependency huggingface-hub to v0.25.2
Oct 9, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
October 18, 2024 11:44
2908446
to
4f04c00
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.25.2
chore(deps): update dependency huggingface-hub to v0.26.0
Oct 18, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
October 21, 2024 17:34
4f04c00
to
cf303d1
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.26.0
chore(deps): update dependency huggingface-hub to v0.26.1
Oct 21, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
October 28, 2024 15:43
cf303d1
to
1f12b9f
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.26.1
chore(deps): update dependency huggingface-hub to v0.26.2
Oct 28, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
November 28, 2024 14:20
1f12b9f
to
45eaae3
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.26.2
chore(deps): update dependency huggingface-hub to v0.26.3
Nov 28, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
December 6, 2024 20:35
45eaae3
to
59af216
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.26.3
chore(deps): update dependency huggingface-hub to v0.26.5
Dec 6, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
December 16, 2024 17:18
59af216
to
a42a02b
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.26.5
chore(deps): update dependency huggingface-hub to v0.27.0
Dec 16, 2024
renovate
bot
force-pushed
the
renovate/huggingface-hub-0.x
branch
from
January 6, 2025 12:17
a42a02b
to
5c5dbbe
Compare
renovate
bot
changed the title
chore(deps): update dependency huggingface-hub to v0.27.0
chore(deps): update dependency huggingface-hub to v0.27.1
Jan 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.20.1
->==0.27.1
Release Notes
huggingface/huggingface_hub (huggingface-hub)
v0.27.1
: [v0.27.1]: Fixtyping.get_type_hints
call on aModelHubMixin
Compare Source
Full Changelog: huggingface/huggingface_hub@v0.27.0...v0.27.1
See #2729 for more details.
v0.27.0
: [v0.27.0] DDUF tooling, torch model loading helpers & multiple quality of life improvements and bug fixesCompare Source
📦 Introducing DDUF tooling
DDUF (DDUF's Diffusion Unified Format) is a single-file format for diffusion models that aims to unify the different model distribution methods and weight-saving formats by packaging all model components into a single file. We will soon have a detailed documentation for that.
The
huggingface_hub
library now provides tooling to handle DDUF files in Python. It includes helpers to read and export DDUF files, and built-in rules to validate file integrity.How to write a DDUF file?
How to read a DDUF file?
👉 More details about the API in the documentation here.
💾 Serialization
Following the introduction of the torch serialization module in
0.22.*
and the support of saving torch state dict to disk in0.24.*
, we now provide helpers to load torch state dicts from disk.By centralizing these functionalities in
huggingface_hub
, we ensure a consistent implementation across the HF ecosystem while allowing external libraries to benefit from standardized weight handling.More details in the serialization package reference.
We added a flag to
save_torch_state_dict()
helper to properly handle model saving in distributed environments, aligning with existing implementations across the Hugging Face ecosystem:A bug with shared tensor handling reported in transformers#35080 has been fixed:
✨ HfApi
The following changes align the client with server-side updates in how security metadata is handled and exposed in the API responses. In particular, The repository security status returned by
HfApi().model_info()
is now available in thesecurity_repo_status
field:🌐 📚 Documentation
Thanks to @miaowumiaomiaowu, more documentation is now available in Chinese! And thanks @13579606 for reviewing these PRs. Check out the result here.
💔 Breaking changes
A few breaking changes have been introduced:
RepoCardData
serialization now preservesNone
values in nested structures.InferenceClient.image_to_image()
now takes atarget_size
argument instead ofheight
andwidth
arguments. This is has been reflected in the InferenceClient async equivalent as well.InferenceClient.table_question_answering()
no longer accepts aparameter
argument. This is has been reflected in the InferenceClient async equivalent as well.list_metrics()
has been removed fromHfApi
.⏳ Deprecations
Some deprecations have been introduced as well:
is_write_action
inbuild_hf_headers()
,write_permission=True
in login methods.get_token_permission
has been deprecated as well.labels
argument is deprecated inInferenceClient.zero_shot_classification()
andInferenceClient.image_zero_shot_classification()
. This is has been reflected in the InferenceClient async equivalent as well.🛠️ Small fixes and maintenance
😌 QoL improvements
🐛 Bug and typo fixes
🏗️ internal
v0.26.5
: [v0.26.5]: Serialization: Add argument to pass shared tensors names to drop when savingCompare Source
Full Changelog: huggingface/huggingface_hub@v0.26.3...v0.26.5
See #2696 for more details.
v0.26.4
Compare Source
v0.26.3
: [v0.26.3]: Fix timestamp parsing to always include millisecondsCompare Source
Full Changelog: huggingface/huggingface_hub@v0.26.2...v0.26.3
See https://github.com/huggingface/huggingface_hub/pull/2683 for more details.
v0.26.2
: [v0.26.2] Fix: Reflect API response changes in file and repo security status fieldsCompare Source
This patch release includes updates to align with recent API response changes:
Full Changelog: huggingface/huggingface_hub@v0.26.1...v0.26.2
v0.26.1
: [v0.26.1] Hot-fix: fix Python 3.8 support forhuggingface-cli
commandsCompare Source
Full Changelog: huggingface/huggingface_hub@v0.26.0...v0.26.1
See https://github.com/huggingface/huggingface_hub/pull/2620 for more details.
v0.26.0
: : Multi-tokens support, conversational VLMs and quality of life improvementsCompare Source
🔐 Multiple access tokens support
Managing fine-grained access tokens locally just became much easier and more efficient!
Fine-grained tokens let you create tokens with specific permissions, making them especially useful in production environments or when working with external organizations, where strict access control is essential.
To make managing these tokens easier, we've added a ✨ new set of CLI commands ✨ that allow you to handle them programmatically:
login()
command with each token:huggingface-cli logout [--token-name TOKEN_NAME]
✅ Nothing changes if you are using the
HF_TOKEN
environment variable as it takes precedence over the token set via the CLI. More details in the documentation. 🤗⚡️ InferenceClient improvements
🖼️ Conversational VLMs support
Conversational vision-language models inference is now supported with
InferenceClient
's chat completion!🔧 More complete support for inference parameters
You can now pass additional inference parameters to more task methods in the
InferenceClient
, including:image_classification
,text_classification
,image_segmentation
,object_detection
,document_question_answering
and more!For more details, visit the
InferenceClient
reference guide.✅ Of course, all of those changes are also available in the AsyncInferenceClient async equivalent 🤗
✨ HfApi
update_repo_settings
can now be used to switch visibility status of a repo. This is a drop-in replacement forupdate_repo_visibility
which is deprecated and will be removed in versionv0.29.0
.📄 Daily papers API is now supported in
huggingface_hub
, enabling you to search for papers on the Hub and retrieve detailed paper information.🌐 📚 Documentation
Efforts from the Tamil-speaking community to translate guides and package references to TM! Check out the result here.
💔 Breaking changes
A few breaking changes have been introduced:
cached_download()
,url_to_filename()
,filename_to_url()
methods are now completely removed. From now on, you will have to usehf_hub_download()
to benefit from the new cache layout.legacy_cache_layout
argument fromhf_hub_download()
has been removed as well.These breaking changes have been announced with a regular deprecation cycle.
Also, any templating-related utility has been removed from
huggingface_hub
. Client side templating is not necessary now that all conversational text-generation models in InferenceAPI are served with TGI.Prepare for release 0.26 by @hanouticelina in #2579
Remove templating utility by @Wauplin in #2611
🛠️ Small fixes and maintenance
😌 QoL improvements
i18n
by @SauravMaheshkar in #2566🐛 fixes
state_dict
by @SunMarc in #2591local_dir
is provided. by @hanouticelina in #2592🏗️ internal
Significant community contributions
The following contributors have made significant changes to the library over the last release:
i18n
(#2566)v0.25.2
: [v0.25.2]: Fix snapshot download whenlocal_dir
is providedCompare Source
Full Changelog : v0.25.1...v0.25.2
For more details, refer to the related PR https://github.com/huggingface/huggingface_hub/pull/2592
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.
v0.24.6
: [v0.24.6]: Fix [DONE] handling forAsyncInferenceClient
on TGI 2.2.0+Compare Source
See https://github.com/huggingface/huggingface_hub/pull/2458, https://github.com/huggingface/huggingface_hub/issues/2455 and https://github.com/huggingface/huggingface_hub/issues/2461.
Full Changelog: huggingface/huggingface_hub@v0.24.5...v0.24.6
v0.24.5
: [v0.24.5] Fix download process on S3 mount (v2)Compare Source
Follow-up after https://github.com/huggingface/huggingface_hub/pull/2433 and v0.24.4 patch release. This release will definitely fix things.
Full Changelog: huggingface/huggingface_hub@v0.24.4...v0.24.5
v0.24.4
: [v0.24.4] Fix download process on S3 mountCompare Source
When downloading a file, the process was failing if the filesystem did not support either
chmod
orshutils.copy2
when moving a file from the tmp folder to the cache. This patch release fixes this. More details in https://github.com/huggingface/huggingface_hub/pull/2429.Full Changelog: huggingface/huggingface_hub@v0.24.3...v0.24.4
v0.24.3
: [v0.24.3] Fix InferenceClient base_url for OpenAI compatibilityCompare Source
Fixing a bug in the chat completion URL to follow OpenAI standard https://github.com/huggingface/huggingface_hub/pull/2418.
InferenceClient
now works with urls ending with/
,/v1
and/v1/chat/completions
.Full Changelog: huggingface/huggingface_hub@v0.24.2...v0.24.3
v0.24.2
: [v0.24.2] Fix create empty commit PR should not failCompare Source
See [https://github.com
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 this update again.
This PR was generated by Mend Renovate. View the repository job log.