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

Set 0.5.1 release with bumped dependencies #96

Merged
merged 7 commits into from
Oct 29, 2024
Merged

Conversation

alvarobartt
Copy link
Member

@alvarobartt alvarobartt commented Oct 24, 2024

Description

This PR sets the 0.5.1 version for the huggingface-inference-toolkit and bumps some of the dependencies as of the recent releases, including the ping of the huggingface_hub that deprecates the cached_download affecting diffusers<0.31.0.

Some of the version bumps are described below:

Additionally, this PR also extends support for newer models such as Llama 3.2, MLlama, Stable Diffusion 3.5, and some more; due to the dependency bump.

- `transformers` 4.45.2 includes Llama 3.1, MLlama, and much more (see
release notes at
https://github.com/huggingface/transformers/releases/tag/v4.45.0)
- `diffusers` 0.31.0 includes Stable Diffusion 3.5 and much more (see
release notes at
https://github.com/huggingface/diffusers/releases/tag/v0.31.0)
- `huggingface_hub` 0.26.1 bumped to avoid issues with deprecated
`cached_download` affecting older versions of `diffusers` i.e. 0.30.0 or
below, so it was a sensible dependency
- Also bumped `torch` 2.3.1, `peft` 0.13.2, `accelerate` 1.0.1 stable
release, and `sentence-transformers` 3.2.1
@philschmid philschmid self-requested a review October 24, 2024 09:37
@philschmid philschmid requested a review from ErikKaum October 24, 2024 09:38
Previous `diffusers` versions shouldn't be installed, but since the
`huggingface_hub` dependency below 0.26 is still compatible with the
current and previous releases of `transformers`, `diffusers`, etc. then
pining `huggingface_hub<0.26` makes the most sense atm
According to SemVer, changes that do not affect the public-facing API
and are just a maintenance update fall under the PATCH category, not the
MINOR category
@alvarobartt alvarobartt changed the title Set 0.6.0 release with bumped dependencies Set 0.5.1 release with bumped dependencies Oct 28, 2024
@alvarobartt alvarobartt self-assigned this Oct 28, 2024
Copy link
Member

@philschmid philschmid left a comment

Choose a reason for hiding this comment

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

one comment

setup.py Outdated Show resolved Hide resolved
@alvarobartt alvarobartt merged commit 145ecf6 into main Oct 29, 2024
6 checks passed
@alvarobartt alvarobartt deleted the bump-dependencies branch October 29, 2024 08:15
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.

ImportError: cannot import name 'cached_download' from 'huggingface_hub'
2 participants