fix(deps): update machine-learning #9304
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.110.3
->0.111.0
0.22.2
->0.23.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
tiangolo/fastapi (fastapi)
v0.111.0
Compare Source
Features
fastapi
command. PR #11522 by @tiangolo.Try it out with:
Refactors
fastapi-slim
including optional extrasfastapi-slim[standard]
, andfastapi
including by default the samestandard
extras. PR #11503 by @tiangolo.huggingface/huggingface_hub (huggingface-hub)
v0.23.0
: : LLMs with tools, seamless downloads, and much more!Compare Source
📁 Seamless download to local dir
The
0.23.0
release comes with a big revamp of the download process, especially when it comes to downloading to a local directory. Previously the process was still involving the cache directory and symlinks which led to misconceptions and a suboptimal user experience. The new workflow involves a.cache/huggingface/
folder, similar to the.git/
one, that keeps track of the progress of a download. The main features are:Example to download q4 GGUF file for microsoft/Phi-3-mini-4k-instruct-gguf:
### Download q4 GGUF file from huggingface-cli download microsoft/Phi-3-mini-4k-instruct-gguf Phi-3-mini-4k-instruct-q4.gguf --local-dir=data/phi3
With this addition, interrupted downloads are now resumable! This applies both for downloads in local and cache directories which should greatly improve UX for users with slow/unreliable connections. In this regard, the
resume_download
parameter is now deprecated (not relevant anymore)..huggingface/
folder to.cache/huggingface/
by @Wauplin in #2262💡 Grammar and Tools in
InferenceClient
It is now possible to provide a list of tools when chatting with a model using the
InferenceClient
! This major improvement has been made possible thanks to TGI that handle them natively.It is also possible to provide grammar rules to the
text_generation
task. This ensures that the output follows a precise JSON Schema specification or matches a regular expression. For more details about it, check out the Guidance guide from Text-Generation-Inference docs.⚙️ Other
Mention more
chat-completion
task instead ofconversation
in documentation.chat_completion
and removeconversational
from Inference guide by @Wauplin in #2215chat-completion
relies on server-side rendering in all cases, including when model istransformers
-backed. Previously it was only the case for TGI-backed models and templates were rendered client-side otherwise.Improved logic to determine whether a model is served via TGI or
transformers
.Raise error in chat completion when unprocessable by @Wauplin in #2257
Document more chat_completion by @Wauplin in #2260
🌐 📚 Korean community is on fire!
The PseudoLab team is a non-profit dedicated to make AI more accessible in the Korean-speaking community. In the past few weeks, their team of contributors managed to translated (almost) entirely the
huggingface_hub
documentation. Huge shout-out to the coordination on this task! Documentation can be accessed here.guides/webhooks_server.md
to Korean by @nuatmochoi in #2145reference/login.md
to Korean by @SeungAhSon in #2151package_reference/tensorboard.md
to Korean by @fabxoe in #2173package_reference/inference_client.md
to Korean by @cjfghk5697 in #2178reference/inference_endpoints.md
to Korean by @harheem in #2180package_reference/file_download.md
to Korean by @seoyoung-3060 in #2184package_reference/cache.md
to Korean by @nuatmochoi in #2191package_reference/collections.md
to Korean by @boyunJang in #2214package_reference/inference_types.md
to Korean by @fabxoe in #2171guides/upload.md
to Korean by @junejae in #2139reference/repository.md
to Korean by @junejae in #2189package_reference/space_runtime.md
to Korean by @boyunJang in #2213guides/repository.md
to Korean by @cjfghk5697 in #2124guides/model_cards.md
to Korean" by @SeungAhSon in #2128guides/community.md
to Korean by @seoulsky-field in #2126guides/cli.md
to Korean by @harheem in #2131guides/search.md
to Korean by @seoyoung-3060 in #2134guides/inference.md
to Korean by @boyunJang in #2130guides/manage-spaces.md
to Korean by @boyunJang in #2220guides/hf_file_system.md
to Korean by @heuristicwave in #2146package_reference/hf_api.md
to Korean by @fabxoe in #2165package_reference/mixins.md
to Korean by @fabxoe in #2166guides/inference_endpoints.md
to Korean by @usr-bin-ksh in #2164package_reference/utilities.md
to Korean by @cjfghk5697 in #2196🛠️ Misc improvements
User API
@bilgehanertan added support for 2 new routes:
get_user_overview
to retrieve high-level information about a user: username, avatar, number of models/datasets/Spaces, number of likes and upvotes, number of interactions in discussion, etc.CLI tag
@bilgehanertan added a new command to the CLI to handle tags. It is now possible to:
For more details, check out the CLI guide.
🧩 ModelHubMixin
This
ModelHubMixin
got a set of nice improvement to generate model cards and handle custom data types in theconfig.json
file. More info in the integration guide.ModelHubMixin
: more metadata + arbitrary config types + proper guide by @Wauplin in #2230⚙️ Other
In a shared environment, it is now possible to set a custom path
HF_TOKEN_PATH
as environment variable so that each user of the cluster has their own access token.HF_TOKEN_PATH
as environment variable by @Wauplin in #2185Thanks to @Y4suyuki and @lappemic, most custom errors defined in
huggingface_hub
are now aggregated in the same module. This makes it very easy to import them fromfrom huggingface_hub.errors import ...
.Fixed
HFSummaryWriter
(class to seamlessly log tensorboard events to the Hub) to work with eithertensorboardX
ortorch.utils
implementation, depending on the user setup.Speed to list files using
HfFileSystem
has been drastically improved, thanks to @awgr. The values returned from the cache are not deep-copied anymore, which was unfortunately the part taking the most time in the process. If users want to modify values returned byHfFileSystem
, they would need to copy them before-hand. This is expected to be a very limited drawback.Progress bars in
huggingface_hub
got some flexibility!It is now possible to provide a name to a tqdm bar (similar to
logging.getLogger
) and to enable/disable only some progress bars. More details in this guide.💔 Breaking changes
--local-dir-use-symlink
and--resume-download
As part of the download process revamp, some breaking changes have been introduced. However we believe that the benefits outweigh the change cost. Breaking changes include:
.cache/huggingface/
folder is not present at the root of the local dir. It only contains file locks, metadata and partially downloaded files. If you need to, you can safely delete this folder without corrupting the data inside the root folder. However, you should expect a longer recovery time if you try to re-run your download command.--local-dir-use-symlink
is not in used anymore and will be ignored. It is not possible anymore to symlinks your local dir with the cache directory. Thanks to the.cache/huggingface/
folder, it shouldn't be needed anyway.--resume-download
has been deprecated and will be ignored. Resuming failed downloads is now activated by default all the time. If you need to force a new download, use--force-download
.Inference Types
As part of #2237 (Grammar and Tools support), we've updated the return value from
InferenceClient.chat_completion
andInferenceClient.text_generation
to match exactly TGI output. The attributes of the returned objects did not change but the classes definition themselves yes. Expect errors if you've previously hadfrom huggingface_hub import TextGenerationOutput
in your code. This is however not the common usage since those objects are already instantiated byhuggingface_hub
directly.Expected breaking changes
Some other breaking changes were expected (and announced since 0.19.x):
list_files_info
is definitively removed in favor ofget_paths_info
andlist_repo_tree
WebhookServer.run
is definitively removed in favor ofWebhookServer.launch
api_endpoint
in ModelHubMixinpush_to_hub
's method is definitively removed in favor of theHF_ENDPOINT
environment variableCheck #2156 for more details.
Small fixes and maintenance
⚙️ CI optimization
⚙️ fixes
hf_file_system
by @Wauplin in #2253updatedRefs
in WebhookPayload by @Wauplin in #2169⚙️ internal
TestHfHubDownloadRelativePaths
+ implicit delete folder is ok by @Wauplin in #2259Significant community contributions
The following contributors have made significant changes to the library over the last release:
guides/repository.md
to Korean (#2124)package_reference/inference_client.md
to Korean (#2178)package_reference/utilities.md
to Korean (#2196)guides/model_cards.md
to Korean" (#2128)reference/login.md
to Korean (#2151)guides/community.md
to Korean (#2126)guides/cli.md
to Korean (#2131)reference/inference_endpoints.md
to Korean (#2180)guides/search.md
to Korean (#2134)package_reference/file_download.md
to Korean (#2184)guides/inference.md
to Korean (#2130)package_reference/collections.md
to Korean (#2214)package_reference/space_runtime.md
to Korean (#2213)guides/manage-spaces.md
to Korean (#2220)guides/webhooks_server.md
to Korean (#2145)package_reference/cache.md
to Korean (#2191)package_reference/tensorboard.md
to Korean (#2173)package_reference/inference_types.md
to Korean (#2171)package_reference/hf_api.md
to Korean (#2165)package_reference/mixins.md
to Korean (#2166)guides/upload.md
to Korean (#2139)reference/repository.md
to Korean (#2189)guides/hf_file_system.md
to Korean (#2146)guides/inference_endpoints.md
to Korean (#2164)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.