fix(deps): update machine-learning #14891
Merged
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.26.5
->0.27.0
2.10.3
->2.10.4
2.6.1
->2.7.0
0.24.0
->0.25.0
0.0.19
->0.0.20
0.32.1
->0.34.0
Release Notes
huggingface/huggingface_hub (huggingface-hub)
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
pydantic/pydantic (pydantic)
v2.10.4
Compare Source
GitHub release
What's Changed
Packaging
pydantic-core
to v2.27.2 by @davidhewitt in #11138Fixes
AnyUrl
objects by @alexprabhat99 in #11082len
to_BaseUrl
to avoid TypeError by @Kharianne in #11111New Contributors
pydantic/pydantic-settings (pydantic-settings)
v2.7.0
Compare Source
What's Changed
test_protected_namespace_defaults
with -Wdefault by @CyberTailor in https://github.com/pydantic/pydantic-settings/pull/462__repr__
implementations by @dlax in https://github.com/pydantic/pydantic-settings/pull/465NoDecode
andForceDecode
annotations by @hramezani in https://github.com/pydantic/pydantic-settings/pull/492New Contributors
Full Changelog: pydantic/pydantic-settings@v2.6.1...v2.7.0
pytest-dev/pytest-asyncio (pytest-asyncio)
v0.25.0
: pytest-asyncio 0.25.0Compare Source
0.25.0 (2024-12-13)
@pytest.fixture
in strict mode. This will become an error in a future version of flake8-asyncio. #979Kludex/python-multipart (python-multipart)
v0.0.20
Compare Source
encode/uvicorn (uvicorn)
v0.34.0
Compare Source
Added
content-length
to 500 response inwsproto
implementation (#2542)Removed
v0.33.0
Compare Source
Removed
WatchGod
support for--reload
(#2536)Configuration
📅 Schedule: Branch creation - "on tuesday" (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.