fix(deps): update machine-learning #7634
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.109.2
->0.110.0
0.20.3
->0.21.3
2.23.1
->2.24.0
6038b89
->96586e2
8b51b1f
->2d913b0
1.17.0
->1.17.1
1.17.0
->1.17.1
13.7.0
->13.7.1
0.2.2
->0.3.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
tiangolo/fastapi (fastapi)
v0.110.0
Compare Source
Breaking Changes
yield
andexcept
to require raising again as in regular Python. PR #11191 by @tiangolo.yield
, usedexcept
in those dependencies, and didn't raise again.yield
andexcept
.In short, if you had dependencies that looked like:
Now you need to make sure you raise again after
except
, just as you would in regular Python:Docs
docs/ko/docs/
. PR #11126 by @KaniKim.fastapi/applications.py
. PR #11099 by @JacobHayes.Translations
docs/de/docs/reference/background.md
. PR #10820 by @nilslindemann.docs/de/docs/reference/templating.md
. PR #10842 by @nilslindemann.docs/de/docs/external-links.md
. PR #10852 by @nilslindemann.docs/tr/docs/tutorial/query-params.md
. PR #11162 by @hasansezertasan.docs/de/docs/reference/encoders.md
. PR #10840 by @nilslindemann.docs/de/docs/reference/responses.md
. PR #10825 by @nilslindemann.docs/de/docs/reference/request.md
. PR #10821 by @nilslindemann.docs/tr/docs/tutorial/query-params.md
. PR #11078 by @emrhnsyts.docs/de/docs/reference/fastapi.md
. PR #10813 by @nilslindemann.docs/de/docs/newsletter.md
. PR #10853 by @nilslindemann.docs/zh-hant/docs/learn/index.md
. PR #11142 by @hsuanchi./docs/ko/docs/tutorial/dependencies/global-dependencies.md
. PR #11123 by @riroan./docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
. PR #11124 by @riroan./docs/ko/docs/tutorial/schema-extra-example.md
. PR #11121 by @KaniKim./docs/ko/docs/tutorial/body-fields.md
. PR #11112 by @KaniKim./docs/ko/docs/tutorial/cookie-params.md
. PR #11118 by @riroan./docs/ko/docs/dependencies/index.md
. PR #11114 by @KaniKim./docs/ko/docs/deployment/docker.md
. PR #11113 by @KaniKim.docs/tr/docs/tutorial/first-steps.md
. PR #11094 by @hasansezertasan.docs/es/docs/advanced/security/index.md
. PR #2278 by @Xaraxx.docs/es/docs/advanced/response-headers.md
. PR #2276 by @Xaraxx.docs/es/docs/deployment/index.md
and~/deployment/versions.md
. PR #9669 by @pabloperezmoya.docs/es/docs/benchmarks.md
. PR #10928 by @pablocm83.docs/es/docs/advanced/response-change-status-code.md
. PR #11100 by @alejsdev.huggingface/huggingface_hub (huggingface-hub)
v0.21.3
: [v0.21.3] Hot-fix: ModelHubMixin pass config when__init__
accepts**kwargs
Compare Source
More details in https://github.com/huggingface/huggingface_hub/pull/2058.
Full Changelog: huggingface/huggingface_hub@v0.21.2...v0.21.3
v0.21.2
: : hot-fix: [HfFileSystem] Fix glob with pattern without wildcardsCompare Source
See https://github.com/huggingface/huggingface_hub/pull/2056. (+https://github.com/huggingface/huggingface_hub/pull/2050 shipped as v0.21.1).
Full Changelog: huggingface/huggingface_hub@v0.21.0...v0.21.2
v0.21.1
Compare Source
v0.21.0
: : dataclasses everywhere, file-system, PyTorchModelHubMixin, serialization and more.Compare Source
Discuss about the release in our Community Tab. Feedback welcome!! 🤗
🖇️ Dataclasses everywhere!
All objects returned by the
HfApi
client are now dataclasses!In the past, objects were either dataclasses, typed dictionaries, non-typed dictionaries and even basic classes. This is now all harmonized with the goal of improving developer experience.
Kudos goes to the community for the implementation and testing of all the harmonization process. Thanks again for the contributions!
💾 FileSystem
The
HfFileSystem
class implements thefsspec
interface to allow loading and writing files with a filesystem-like interface. The interface is highly used by thedatasets
library and this release will improve further the efficiency and robustness of the integration.rm
on branch by @lhoestq in #1957HfFileSystem
by @mariosasko in #1981HfFileSystem.url
method by @mariosasko in #2027🧩 Pytorch Hub Mixin
The
PyTorchModelHubMixin
class let's you upload ANY pytorch model to the Hub in a few lines of code. More precisely, it is a class that can be inherited in anynn.Module
class to add thefrom_pretrained
,save_pretrained
andpush_to_hub
helpers to your class. It handles serialization and deserialization of weights and configs for you and enables download counts on the Hub.With this release, we've fixed 2 pain points holding back users from using this lib:
.safetensors
files instead of pytorch pickles for safety reasons. Loading from previous pytorch pickles is still supported but we are moving toward completely deprecating them (in a mid to long term plan).PyTorchModelHubMixin
by @bmuskalla in #2033✨ InferenceClient improvements
Audio-to-audio task is now supported by both by the
InferenceClient
!Also fixed a few things:
📤 Model serialization
With the aim of harmonizing repo structures and file serialization on the Hub, we added a new module
serialization
with a first helpersplit_state_dict_into_shards
that takes a state dict and split it into shards. Code implementation is mostly taken fromtransformers
and aims to be reused by other libraries in the ecosystem. It seamlessly supportstorch
,tensorflow
andnumpy
weights, and can be easily extended to other frameworks.This is a first step in the harmonization process and more loading/saving helpers will be added soon.
split_state_dict_into_shards
helper by @Wauplin in #1938📚 Documentation
🌐 Translations
Community is actively getting the job done to translate the
huggingface_hub
to other languages. We now have docs available in Simplified Chinese (here) and in French (here) to help democratize good machine learning!Docs misc
base_model
in modelcard metadata by @Wauplin in #1936hf_transfer
extra intosetup.py
anddocs/
by @jamesbraza in #1970download --repo-type
by @jamesbraza in #1986Docs fixes
get_safetensors_metadata
docstring by @Wauplin in #1951🛠️ Misc improvements
Creating a commit with an invalid README will fail early instead of uploading all LFS files before failing to commit.
Added a
revision_exists
helper, working similarly torepo_exists
andfile_exists
:revision_exists
helper by @Wauplin in #2042InferenceClient.wait(...)
now raises an error if the endpoint is in a failed state.Improved progress bar when downloading a file
Other stuff:
💔 Breaking changes
ModelFilter
andDatasetFilter
are deprecated when listing models and datasets in favor of a simpler API that lets you pass the parameters directly tolist_models
andlist_datasets
.Cleaner, right?
ModelFilter
andDatasetFilter
will still be supported untilv0.24
release.ModelFilter/DatasetFilter
by @druvdub in #2028ModelStatus.compute_type
is not a string anymore but a dictionary with more detailed information (instance type + number of replicas). This breaking change reflects a server-side update.Small fixes and maintenance
⚙️ fixes
warnings.warn
in repocard.py by @Wauplin in #1980force_download=True
by @scruel in #1983⚙️ internal
setup.cfg
topyproject.toml
by @jamesbraza in #1971pre-commit
by @jamesbraza in #1987toml-sort
tool by @jamesbraza in #1972Significant community contributions
The following contributors have made significant changes to the library over the last release:
hf_transfer
extra intosetup.py
anddocs/
(#1970)setup.cfg
topyproject.toml
(#1971)download --repo-type
(#1986)pre-commit
(#1987)toml-sort
tool (#1972)ModelFilter/DatasetFilter
(#2028)PyTorchModelHubMixin
(#2033)locustio/locust (locust)
v2.24.0
Compare Source
Full Changelog
Fixed bugs:
Closed issues:
Merged pull requests:
Textualize/rich (rich)
v13.7.1
Compare Source
Fixed
astral-sh/ruff (ruff)
v0.3.0
Compare Source
This release introduces the new Ruff formatter 2024.2 style and adds a new lint rule to
detect invalid formatter suppression comments.
Preview features
flake8-bandit
] Remove suspicious-lxml-import (S410
) (#10154)pycodestyle
] Allowos.environ
modifications between imports (E402
) (#10066)pycodestyle
] Don't warn about a single whitespace character before a comma in a tuple (E203
) (#10094)Rule changes
eradicate
] Detect commented outcase
statements (ERA001
) (#10055)eradicate
] Detect single-line code fortry:
,except:
, etc. (ERA001
) (#10057)flake8-boolean-trap
] Allow boolean positionals in__post_init__
(#10027)flake8-copyright
] Allow © in copyright notices (#10065)isort
]: Use one blank line after imports in typing stub files (#9971)pylint
] New Ruledict-iter-missing-items
(PLE1141
) (#9845)pylint
] Ignoresys.version
andsys.platform
(PLR1714
) (#10054)pyupgrade
] Detect literals with unary operators (UP018
) (#10060)ruff
] Expand rule forlist(iterable).pop(0)
idiom (RUF015
) (#10148)Formatter
This release introduces the Ruff 2024.2 style, stabilizing the following changes:
with
parentheses when targeting Python 3.9 or newer (#9222)...
) in typing stub files (#9155)...
) body (#7440, #9240)CLI
extend
as part of a--config
flag (#10135)build
from the default exclusion list (#10093)ruff <path>
,ruff --explain
,ruff --clean
, andruff --generate-shell-completion
in favor ofruff check <path>
,ruff rule
,ruff clean
, andruff generate-shell-completion
(#10169)--format
fromruff rule
andruff linter
(#10170)Bug fixes
flake8-bugbear
] Avoid adding default initializers to stubs (B006
) (#10152)flake8-type-checking
] Respect runtime-required decorators for function signatures (#10091)pycodestyle
] Mark fixes overlapping with a multiline string as unsafe (W293
) (#10049)pydocstyle
] Trim whitespace when removing blank lines after section (D413
) (#10162)pylint
] Delete entire statement, including semicolons (PLR0203
) (#10074)ruff
] Avoid f-string false positives ingettext
calls (RUF027
) (#10118)ruff
crashing on PowerPC systems because of too small page size (#10080)Performance
Documentation
line-length
option: fix link topycodestyle.max-line-length
(#10136)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 has been generated by Mend Renovate. View repository job log here.