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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update huggingface-hub requirement from <0.24,>=0.19.0 to >=0.19.0,<0.25 #1379

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 22, 2024

Updates the requirements on huggingface-hub to permit the latest version.

Release notes

Sourced from huggingface-hub's releases.

v0.24.0: Inference, serialization and optimizations

⚡️ OpenAI-compatible inference client!

The InferenceClient's chat completion API is now fully compliant with OpenAI client. This means it's a drop-in replacement in your script:

- from openai import OpenAI
+ from huggingface_hub import InferenceClient

client = OpenAI(


client = InferenceClient(
base_url=...,
api_key=...,
)

output = client.chat.completions.create(
model="meta-llama/Meta-Llama-3-8B-Instruct",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Count to 10"},
],
stream=True,
max_tokens=1024,
)
for chunk in output:
print(chunk.choices[0].delta.content)

Why switching to InferenceClient if you already use OpenAI then? Because it's better integrated with HF services, such as the Serverless Inference API and Dedicated Endpoints. Check out the more detailed answer in this HF Post.

For more details about OpenAI compatibility, check out this guide's section.

(other) InferenceClient improvements

Some new parameters have been added to the InferenceClient, following the latest changes in our Inference API:

  • prompt_name, truncate and normalize in feature_extraction
  • model_id and response_format, in chat_completion
  • adapter_id in text_generation
  • hypothesis_template and multi_labels in zero_shot_classification

Of course, all of those changes are also available in the AsyncInferenceClient async equivalent 🤗

... (truncated)

Commits
  • 44b6e0f Release: v0.24.0
  • 83b5d7f Merge branch 'main' into v0.24-release
  • 1f9dbf8 fix: Handle single return value. (#2396)
  • b5e0d76 Update _async_client.py
  • 7fe286b Merge branch 'main' into tv0.24-release
  • 9c98a4b Do not mention gitalyUid in expand parameter (#2395)
  • d8e92aa Release: v0.24.0.rc0
  • 36396f1 [InferenceClient] Add support for adapter_id (text-generation) and `respons...
  • 6ddaf44 Fix list_accepted_access_requests if grant user manually (#2392)
  • e370fa6 Prevent empty commits if files did not change (#2389)
  • Additional commits viewable in compare view

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 requested a review from a team as a code owner July 22, 2024 01:07
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 22, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 29, 2024

A newer version of huggingface-hub exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@mvpatel2000 mvpatel2000 requested a review from dakinggg July 29, 2024 14:25
@mvpatel2000
Copy link
Collaborator

@dakinggg will not review because scary to me

@dakinggg
Copy link
Collaborator

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 30, 2024

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@dakinggg dakinggg enabled auto-merge (squash) July 30, 2024 23:37
@dakinggg
Copy link
Collaborator

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/pip/huggingface-hub-gte-0.19.0-and-lt-0.25 branch from e2b748c to 77846bc Compare July 30, 2024 23:39
Updates the requirements on [huggingface-hub](https://github.com/huggingface/huggingface_hub) to permit the latest version.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](huggingface/huggingface_hub@v0.19.0...v0.24.0)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/huggingface-hub-gte-0.19.0-and-lt-0.25 branch from 77846bc to 9bfba52 Compare July 30, 2024 23:59
@dakinggg dakinggg merged commit 78e91ef into main Jul 31, 2024
9 checks passed
@dependabot dependabot bot deleted the dependabot/pip/huggingface-hub-gte-0.19.0-and-lt-0.25 branch July 31, 2024 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants