Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/contrib-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.9

# Install pip
- name: Install pip
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.13"]
python-version: ["3.9", "3.13"]
test_name:
[
"Repository only",
Expand All @@ -30,18 +30,18 @@ jobs:
"Xet only"
]
include:
- python-version: "3.13" # LFS not ran on 3.8
- python-version: "3.13" # LFS not ran on 3.9
test_name: "lfs"
- python-version: "3.8"
- python-version: "3.9"
test_name: "fastai"
- python-version: "3.10" # fastai not supported on 3.12 and 3.11 -> test it on 3.10
test_name: "fastai"
- python-version: "3.8"
- python-version: "3.9"
test_name: "tensorflow"
- python-version: "3.10" # tensorflow not supported on 3.12 -> test it on 3.10
test_name: "tensorflow"
- python-version: "3.8" # test torch~=1.11 on python 3.8 only.
test_name: "Python 3.8, torch_1.11"
- python-version: "3.9" # test torch~=1.11 on python 3.9 only.
test_name: "Python 3.9, torch_1.11"
- python-version: "3.12" # test torch latest on python 3.12 only.
test_name: "torch_latest"
steps:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
uv pip install --upgrade torch
;;

"Python 3.8, torch_1.11")
"Python 3.9, torch_1.11")
uv pip install "huggingface_hub[torch] @ ."
uv pip install torch~=1.11
;;
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
eval "$PYTEST ../tests/test_serialization.py"
;;

"Python 3.8, torch_1.11" | torch_latest)
"Python 3.9, torch_1.11" | torch_latest)
eval "$PYTEST ../tests/test_hub_mixin*"
eval "$PYTEST ../tests/test_serialization.py"
;;
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.11"]
python-version: ["3.9", "3.11"]
test_name: ["Everything else", "Xet only"]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
auto-update-conda: true
auto-activate-base: false
python-version: 3.8
python-version: 3.9
activate-environment: "build-hub"

- name: Setup conda env
Expand Down
2 changes: 1 addition & 1 deletion docs/source/cn/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rendered properly in your Markdown viewer.

在开始之前,您需要通过安装适当的软件包来设置您的环境

huggingface_hub 在 Python 3.8 或更高版本上进行了测试,可以保证在这些版本上正常运行。如果您使用的是 Python 3.7 或更低版本,可能会出现兼容性问题
huggingface_hub 在 Python 3.9 或更高版本上进行了测试,可以保证在这些版本上正常运行。如果您使用的是 Python 3.7 或更低版本,可能会出现兼容性问题

## 使用 pip 安装

Expand Down
2 changes: 1 addition & 1 deletion docs/source/de/guides/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class PyTorchModelHubMixin(ModelHubMixin):
revision: str,
cache_dir: str,
force_download: bool,
proxies: Optional[Dict],
proxies: Optional[dict],
resume_download: bool,
local_files_only: bool,
token: Union[str, bool, None],
Expand Down
2 changes: 1 addition & 1 deletion docs/source/de/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rendered properly in your Markdown viewer.

Bevor Sie beginnen, müssen Sie Ihre Umgebung vorbereiten, indem Sie die entsprechenden Pakete installieren.

`huggingface_hub` wurde für **Python 3.8+** getestet.
`huggingface_hub` wurde für **Python 3.9+** getestet.

## Installation mit pip

Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/guides/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class PyTorchModelHubMixin(ModelHubMixin):
revision: str,
cache_dir: str,
force_download: bool,
proxies: Optional[Dict],
proxies: Optional[dict],
resume_download: bool,
local_files_only: bool,
token: Union[str, bool, None],
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rendered properly in your Markdown viewer.

Before you start, you will need to setup your environment by installing the appropriate packages.

`huggingface_hub` is tested on **Python 3.8+**.
`huggingface_hub` is tested on **Python 3.9+**.

## Install with pip

Expand Down
14 changes: 7 additions & 7 deletions docs/source/fr/guides/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class PyTorchModelHubMixin(ModelHubMixin):
revision: str,
cache_dir: str,
force_download: bool,
proxies: Optional[Dict],
proxies: Optional[dict],
resume_download: bool,
local_files_only: bool,
token: Union[str, bool, None],
Expand Down Expand Up @@ -266,9 +266,9 @@ est ici pour vous donner des indications et des idées sur comment gérer l'int
n'hésitez pas à nous contacter si vous avez une question !

<!-- Généré en utilisant https://www.tablesgenerator.com/markdown_tables -->
| Intégration | Utilisant des helpers | Utilisant [`ModelHubMixin`] |
|:---:|:---:|:---:|
| Expérience utilisateur | `model = load_from_hub(...)`<br>`push_to_hub(model, ...)` | `model = MyModel.from_pretrained(...)`<br>`model.push_to_hub(...)` |
| Flexible | Très flexible.<br>Vous controllez complètement l'implémentation. | Moins flexible.<br>Votre framework doit avoir une classe de modèle. |
| Maintenance | Plus de maintenance pour ajouter du support pour la configuration, et de nouvelles fonctionnalités. Peut aussi nécessiter de fixx des problèmes signalés par les utilisateurs.| Moins de maintenance vu que la plupart des intégrations avec le Hub sont implémentés dans `huggingface_hub` |
| Documentation / Anotation de type| A écrire à la main | Géré partiellement par `huggingface_hub`. |
| Intégration | Utilisant des helpers | Utilisant [`ModelHubMixin`] |
| :-------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------: |
| Expérience utilisateur | `model = load_from_hub(...)`<br>`push_to_hub(model, ...)` | `model = MyModel.from_pretrained(...)`<br>`model.push_to_hub(...)` |
| Flexible | Très flexible.<br>Vous controllez complètement l'implémentation. | Moins flexible.<br>Votre framework doit avoir une classe de modèle. |
| Maintenance | Plus de maintenance pour ajouter du support pour la configuration, et de nouvelles fonctionnalités. Peut aussi nécessiter de fixx des problèmes signalés par les utilisateurs. | Moins de maintenance vu que la plupart des intégrations avec le Hub sont implémentés dans `huggingface_hub` |
| Documentation / Anotation de type | A écrire à la main | Géré partiellement par `huggingface_hub`. |
2 changes: 1 addition & 1 deletion docs/source/fr/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rendered properly in your Markdown viewer.
Avant de commencer, vous allez avoir besoin de préparer votre environnement
en installant les packages appropriés.

`huggingface_hub` est testée sur **Python 3.8+**.
`huggingface_hub` est testée sur **Python 3.9+**.

## Installation avec pip

Expand Down
2 changes: 1 addition & 1 deletion docs/source/hi/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rendered properly in your Markdown viewer.

आरंभ करने से पहले, आपको उपयुक्त पैकेज स्थापित करके अपना परिवेश सेटअप करना होगा।

`huggingface_hub` का परीक्षण **Python 3.8+** पर किया गया है।
`huggingface_hub` का परीक्षण **Python 3.9+** पर किया गया है।

## पिप के साथ स्थापित करें

Expand Down
18 changes: 9 additions & 9 deletions docs/source/ko/guides/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class PyTorchModelHubMixin(ModelHubMixin):
revision: str,
cache_dir: str,
force_download: bool,
proxies: Optional[Dict],
proxies: Optional[dict],
resume_download: bool,
local_files_only: bool,
token: Union[str, bool, None],
Expand Down Expand Up @@ -393,11 +393,11 @@ class VoiceCraft(
두 가지 접근 방법에 대한 장단점을 간단히 정리해보겠습니다. 아래 표는 단순히 예시일 뿐입니다. 각자 다른 프레임워크에는 고려해야 할 특정 사항이 있을 수 있습니다. 이 가이드는 통합을 다루는 아이디어와 지침을 제공하기 위한 것입니다. 언제든지 궁금한 점이 있으면 문의해 주세요!

<!-- Generated using https://www.tablesgenerator.com/markdown_tables -->
| 통합 | helpers 사용 시 | [`ModelHubMixin`] 사용 시 |
|:---:|:---:|:---:|
| 사용자 경험 | `model = load_from_hub(...)`<br>`push_to_hub(model, ...)` | `model = MyModel.from_pretrained(...)`<br>`model.push_to_hub(...)` |
| 유연성 | 매우 유연합니다.<br>구현을 완전히 제어합니다. | 유연성이 떨어집니다.<br>프레임워크에는 모델 클래스가 있어야 합니다. |
| 유지 관리 | 구성 및 새로운 기능에 대한 지원을 추가하기 위한 유지 관리가 더 필요합니다. 사용자가 보고한 문제를 해결해야할 수도 있습니다. | Hub와의 대부분의 상호 작용이 `huggingface_hub`에서 구현되므로 유지 관리가 줄어듭니다. |
| 문서화 / 타입 주석 | 수동으로 작성해야 합니다. | `huggingface_hub`에서 부분적으로 처리됩니다. |
| 다운로드 횟수 표시기 | 수동으로 처리해야 합니다. | 클래스에 `config` 속성이 있다면 기본적으로 활성화됩니다. |
| 모델 카드 | 수동으로 처리해야 합니다. | library_name, tags 등을 활용하여 기본적으로 생성됩니다. |
| 통합 | helpers 사용 시 | [`ModelHubMixin`] 사용 시 |
| :------------------: | :-------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------: |
| 사용자 경험 | `model = load_from_hub(...)`<br>`push_to_hub(model, ...)` | `model = MyModel.from_pretrained(...)`<br>`model.push_to_hub(...)` |
| 유연성 | 매우 유연합니다.<br>구현을 완전히 제어합니다. | 유연성이 떨어집니다.<br>프레임워크에는 모델 클래스가 있어야 합니다. |
| 유지 관리 | 구성 및 새로운 기능에 대한 지원을 추가하기 위한 유지 관리가 더 필요합니다. 사용자가 보고한 문제를 해결해야할 수도 있습니다. | Hub와의 대부분의 상호 작용이 `huggingface_hub`에서 구현되므로 유지 관리가 줄어듭니다. |
| 문서화 / 타입 주석 | 수동으로 작성해야 합니다. | `huggingface_hub`에서 부분적으로 처리됩니다. |
| 다운로드 횟수 표시기 | 수동으로 처리해야 합니다. | 클래스에 `config` 속성이 있다면 기본적으로 활성화됩니다. |
| 모델 카드 | 수동으로 처리해야 합니다. | library_name, tags 등을 활용하여 기본적으로 생성됩니다. |
2 changes: 1 addition & 1 deletion docs/source/ko/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rendered properly in your Markdown viewer.

시작하기 전에 적절한 패키지를 설치하여 환경을 설정해야 합니다.

`huggingface_hub`는 **Python 3.8+**에서 테스트되었습니다.
`huggingface_hub`는 **Python 3.9+**에서 테스트되었습니다.

## pip로 설치하기 [[install-with-pip]]

Expand Down
2 changes: 1 addition & 1 deletion docs/source/tm/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

நீங்கள் தொடங்குவதற்கு முன், தகுந்த தொகுப்புகளை நிறுவுவதன் மூலம் உங்கள் சூழலை அமைக்க வேண்டும்.

`huggingface_hub` **Python 3.8+** மின்பொருள்களில் சோதிக்கப்பட்டுள்ளது.
`huggingface_hub` **Python 3.9+** மின்பொருள்களில் சோதிக்கப்பட்டுள்ளது.

### பிப் மூலம் நிறுவு

Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_version() -> str:
"soundfile",
"Pillow",
"gradio>=4.0.0", # to test webhooks # pin to avoid issue on Python3.12
"requests", # for gradio
"requests", # for gradio
"numpy", # for embeddings
"fastapi", # To build the documentation
]
Expand All @@ -108,8 +108,7 @@ def get_version() -> str:

extras["quality"] = [
"ruff>=0.9.0",
"mypy>=1.14.1,<1.15.0; python_version=='3.8'",
"mypy==1.15.0; python_version>='3.9'",
"mypy==1.15.0",
"libcst>=1.4.0",
"ty",
]
Expand Down Expand Up @@ -140,7 +139,7 @@ def get_version() -> str:
],
"fsspec.specs": "hf=huggingface_hub.HfFileSystem",
},
python_requires=">=3.8.0",
python_requires=">=3.9.0",
install_requires=install_requires,
classifiers=[
"Intended Audience :: Developers",
Expand All @@ -150,7 +149,6 @@ def get_version() -> str:
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
Loading
Loading