Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump huggingface-hub from 0.20.1 to 0.23.0 in /clients/python #85

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 13, 2024

Bumps huggingface-hub from 0.20.1 to 0.23.0.

Release notes

Sourced from huggingface-hub's releases.

v0.23.0: LLMs with tools, seamless downloads, and much more!

馃搧 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:

  • no symlinks
  • no local copy
  • don't re-download when not necessary
  • same behavior on both Unix and Windows
  • unrelated to cache-system

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).

馃挕 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.

>>> from huggingface_hub import InferenceClient
Ask for weather in the next days using tools
>>> client = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct")
>>> messages = [
...     {"role": "system", "content": "Don't make assumptions about what values to plug into functions. Ask for clarification if a user request is ambiguous."},
...     {"role": "user", "content": "What's the weather like the next 3 days in San Francisco, CA?"},
... ]
>>> tools = [
...     {
...         "type": "function",
...         "function": {
...             "name": "get_current_weather",
...             "description": "Get the current weather",
...             "parameters": {
...                 "type": "object",
...                 "properties": {
...                     "location": {
...                         "type": "string",
...                         "description": "The city and state, e.g. San Francisco, CA",
...                     },
...                     "format": {
...                         "type": "string",
</tr></table>

... (truncated)

Commits
  • 5737175 Release: v0.23.0
  • 4455c05 Release: v0.23.0.rc1
  • 1e8e640 Release: v0.23.0.rc0
  • 3a62a08 Delete legacy tests in TestHfHubDownloadRelativePaths + implicit delete fol...
  • 1d03593 Render chat-template server-side for transformers-backed models (#2258)
  • 7e9196c Raise error in chat completion when unprocessable (#2257)
  • 84c0fd2 Update harmonized token param desc and type def (#2252)
  • 2757819 [wip] Implement hierarchical progress bar control in huggingface_hub (#2217)
  • 4df59b4 Revampt download to local dir process (#2223)
  • b6de3f9 Respect default timeouts in hf_file_system (#2253)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 13, 2024
@dependabot dependabot bot force-pushed the dependabot/pip/clients/python/huggingface-hub-0.23.0 branch from 0029e4a to 276b22b Compare May 13, 2024 07:27
@google-oss-prow google-oss-prow bot added size/M and removed size/S labels May 13, 2024
Copy link
Member

@tarilabs tarilabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used to support the import-from-HF user flow in this MR python client

@tarilabs
Copy link
Member

@dependabot recreate

Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.20.1 to 0.23.0.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](huggingface/huggingface_hub@v0.20.1...v0.23.0)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/clients/python/huggingface-hub-0.23.0 branch from c91c78c to 664bf41 Compare May 13, 2024 08:20
Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
Copy link
Member

@tarilabs tarilabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used to support the import-from-HF user flow in this MR python client

/approve
/lgtm

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tarilabs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 23cce10 into main May 13, 2024
9 checks passed
@dependabot dependabot bot deleted the dependabot/pip/clients/python/huggingface-hub-0.23.0 branch May 13, 2024 08:31
dhirajsb pushed a commit to dhirajsb/model-registry-kfp that referenced this pull request May 22, 2024
* Improve core layer testing

* Treat ids as string on service layer

* Moved testutils inside internal package

* Adapt test to name prefix implementation
dhirajsb pushed a commit to dhirajsb/model-registry-kfp that referenced this pull request May 22, 2024
* WIP working manually

* Increase REST wirings and cover with Robot

* Align to a309537 Improve core layer testing kubeflow#85

* Implement opeanpi models converter

* Treat coreApi as interface

* Align to ModelArtifact comment, not resolved yet

* Automate type_asserts generation with gen/openapi-server

* Add Robot for Data Layer mapping

implementing REST(Go)<->gRPC

* Add check for artifactType

* Wire REST FindXXX to core GetXXXByParams

* Wire REST GetXXXYYY to core API methods

* Wire REST UpdateXXX to core UpsertXXX methods

* Use localhost for Robot file

* Align to goverter changes

* rebase goverter implementation

* Update cmd/proxy.go

Co-authored-by: Andrea Lamparelli <a.lamparelli95@gmail.com>

---------

Co-authored-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
isinyaaa pushed a commit to isinyaaa/model-registry that referenced this pull request Jul 2, 2024
periodic sync upstream KF to midstream ODH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dependencies Pull requests that update a dependency file lgtm python Pull requests that update Python code size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant