Skip to content

Commit e805846

Browse files
authored
Merge pull request #103 from huggingface/bump-versions-and-release
Bump `transformers` and `sentence-transformers`
2 parents 8c3562d + 253555b commit e805846

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

setup.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# Due to an error affecting kenlm and cmake (see https://github.com/kpu/kenlm/pull/464)
1717
# Also see the transformers patch for it https://github.com/huggingface/transformers/pull/37091
1818
"kenlm@git+https://github.com/kpu/kenlm@ba83eafdce6553addd885ed3da461bb0d60f8df7",
19-
"transformers[sklearn,sentencepiece,audio,vision]==4.48.0",
20-
"huggingface_hub[hf_transfer]==0.27.1",
19+
"transformers[sklearn,sentencepiece,audio,vision]==4.51.2",
20+
"huggingface_hub[hf_transfer]==0.30.2",
2121
# vision
2222
"Pillow",
2323
"librosa",
@@ -34,11 +34,11 @@
3434

3535
extras = {}
3636

37-
extras["st"] = ["sentence_transformers==3.3.1"]
38-
extras["diffusers"] = ["diffusers==0.32.1", "accelerate==1.2.1"]
37+
extras["st"] = ["sentence_transformers==4.0.2"]
38+
extras["diffusers"] = ["diffusers==0.33.1", "accelerate==1.6.0"]
3939
# Includes `peft` as PEFT requires `torch` so having `peft` as a core dependency
4040
# means that `torch` will be installed even if the `torch` extra is not specified.
41-
extras["torch"] = ["torch==2.3.1", "torchvision", "torchaudio", "peft==0.14.0"]
41+
extras["torch"] = ["torch==2.5.1", "torchvision", "torchaudio", "peft==0.15.1"]
4242
extras["test"] = [
4343
"pytest==7.2.1",
4444
"pytest-xdist",
@@ -60,13 +60,13 @@
6060
version=VERSION,
6161
author="Hugging Face",
6262
description="Hugging Face Inference Toolkit is for serving 🤗 Transformers models in containers.",
63-
url="",
63+
url="https://github.com/huggingface/huggingface-inference-toolkit",
6464
package_dir={"": "src"},
6565
packages=find_packages(where="src"),
6666
install_requires=install_requires,
6767
extras_require=extras,
6868
entry_points={"console_scripts": "serve=sagemaker_huggingface_inference_toolkit.serving:main"},
69-
python_requires=">=3.8",
69+
python_requires=">=3.9",
7070
license="Apache License 2.0",
7171
classifiers=[
7272
"Development Status :: 5 - Production/Stable",
@@ -76,7 +76,6 @@
7676
"License :: OSI Approved :: Apache Software License",
7777
"Operating System :: OS Independent",
7878
"Programming Language :: Python :: 3",
79-
"Programming Language :: Python :: 3.8",
8079
"Programming Language :: Python :: 3.9",
8180
"Programming Language :: Python :: 3.10",
8281
"Programming Language :: Python :: 3.11",

src/huggingface_inference_toolkit/diffusers_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def __call__(
7474

7575
# Call pipeline with parameters
7676
out = self.pipeline(prompt, num_images_per_prompt=1, **kwargs)
77+
7778
return out.images[0]
7879

7980

0 commit comments

Comments
 (0)