Skip to content

fix(deps): update dependency huggingface-hub to ~=0.33.0 #1505

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 11, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
huggingface-hub ~=0.32.4 -> ~=0.33.0 age adoption passing confidence

Release Notes

huggingface/huggingface_hub (huggingface-hub)

v0.33.0: [v0.33.0]: Welcoming Featherless.AI and Groq as Inference Providers!

Compare Source

⚡ New provider: Featherless.AI

Featherless AI is a serverless AI inference provider with unique model loading and GPU orchestration abilities that makes an exceptionally large catalog of models available for users. Providers often offer either a low cost of access to a limited set of models, or an unlimited range of models with users managing servers and the associated costs of operation. Featherless provides the best of both worlds offering unmatched model range and variety but with serverless pricing. Find the full list of supported models on the models page.

from huggingface_hub import InferenceClient

client = InferenceClient(provider="featherless-ai")

completion = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-R1-0528", 
    messages=[
        {
            "role": "user",
            "content": "What is the capital of France?"
        }
    ], 
)

print(completion.choices[0].message)

⚡ New provider: Groq

At the heart of Groq's technology is the Language Processing Unit (LPU™), a new type of end-to-end processing unit system that provides the fastest inference for computationally intensive applications with a sequential component, such as Large Language Models (LLMs). LPUs are designed to overcome the limitations of GPUs for inference, offering significantly lower latency and higher throughput. This makes them ideal for real-time AI applications.

Groq offers fast AI inference for openly-available models. They provide an API that allows developers to easily integrate these models into their applications. It offers an on-demand, pay-as-you-go model for accessing a wide range of openly-available LLMs.

from huggingface_hub import InferenceClient

client = InferenceClient(provider="groq")

completion = client.chat.completions.create(
    model="meta-llama/Llama-4-Scout-17B-16E-Instruct",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Describe this image in one sentence."},
                {
                    "type": "image_url",
                    "image_url": {"url": "https://vagabundler.com/wp-content/uploads/2019/06/P3160166-Copy.jpg"},
                },
            ],
        }
    ],
)

print(completion.choices[0].message)

🤖 MCP and Tiny-agents

It is now possible to run tiny-agents using a local server e.g. llama.cpp. 100% local agents are right behind the corner!

Fixing some DX issues in the tiny-agents CLI.

📚 Documentation

New translation from the Hindi-speaking community, for the community!

🛠️ Small fixes and maintenance

😌 QoL improvements
🐛 Bug and typo fixes
🏗️ internal

Significant community contributions

The following contributors have made significant changes to the library over the last release:


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Summary by Sourcery

Chores:

  • Update huggingface_hub version in pyproject.toml to ~0.33.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link
Contributor

sourcery-ai bot commented Jun 11, 2025

Reviewer's Guide

This PR updates the development dependency huggingface_hub from ~0.32.4 to ~0.33.0 in the project configuration, enabling the latest inference provider integrations, documentation updates, and bug fixes provided by the upstream release.

Sequence Diagram: Using Featherless.AI via huggingface-hub

sequenceDiagram
    actor User as Developer
    participant IC as InferenceClient
    participant FAS as Featherless.AI Service

    User->>+IC: InferenceClient(provider="featherless-ai")
    User->>+IC: chat.completions.create(model="deepseek-ai/DeepSeek-R1-0528", messages=[{"role": "user", "content": "..."}])
    IC->>+FAS: API Request (model, messages)
    FAS-->>-IC: Completion Response
    IC-->>-User: Completion Object
Loading

Sequence Diagram: Using Groq via huggingface-hub

sequenceDiagram
    actor User as Developer
    participant IC as InferenceClient
    participant GS as Groq Service

    User->>+IC: InferenceClient(provider="groq")
    User->>+IC: chat.completions.create(model="meta-llama/Llama-4-Scout-17B-16E-Instruct", messages=[{"role": "user", "content": "..."}])
    IC->>+GS: API Request (model, messages)
    GS-->>-IC: Completion Response
    IC-->>-User: Completion Object
Loading

Class Diagram: huggingface_hub.InferenceClient and Associated Data Objects

classDiagram
      class InferenceClient {
        +__init__(provider: str)
        +chat_completions_create(model: str, messages: list) : Completion
      }
      class Completion {
        +choices: List~Choice~
      }
      class Choice {
        +message: Message
      }
      class Message {
        +role: str
        +content: any
      }
      InferenceClient "1" ..> "1" Completion : creates
      Completion "1" o-- "*" Choice : has
      Choice "1" o-- "1" Message : has
Loading

File-Level Changes

Change Details Files
Bump dev dependency huggingface_hub to ~0.33.0
  • Updated version specifier from ~=0.32.4 to ~=0.33.0 in the project’s dev dependencies
pyproject.toml

Possibly linked issues

  • #0: The PR updates the huggingface-hub dependency tracked by the issue's dependency dashboard.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@ericcurtin
Copy link
Member

We may want to consider removing this dependancy, it's more hassle then it's worth, we have our own huggingface client.

@rhatdan
Copy link
Member

rhatdan commented Jun 12, 2025

I agree we should remove it.

@rhatdan rhatdan merged commit 7550fd3 into main Jun 13, 2025
15 checks passed
@renovate renovate bot deleted the renovate/huggingface-hub-0.x branch June 13, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants