Skip to content

Commit b442aa2

Browse files
authored
Unpin hfh (#6876)
* unpin hfh * ignore transformers warnings * Revert "ignore transformers warnings" This reverts commit 889a48d. * disable errors
1 parent 15ffefe commit b442aa2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
uv pip install --system -r additional-tests-requirements.txt --no-deps
6262
- name: Install dependencies (latest versions)
6363
if: ${{ matrix.deps_versions == 'deps-latest' }}
64-
run: uv pip install --system --upgrade pyarrow "huggingface-hub<0.23.0" dill
64+
run: uv pip install --system --upgrade pyarrow huggingface-hub dill
6565
- name: Install dependencies (minimum versions)
6666
if: ${{ matrix.deps_versions != 'deps-latest' }}
6767
run: uv pip install --system pyarrow==12.0.0 huggingface-hub==0.21.2 transformers dill==0.3.1.1

pyproject.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ known-first-party = ["datasets"]
1515

1616
[tool.pytest.ini_options]
1717
# Test fails if a FutureWarning is thrown by `huggingface_hub`
18-
filterwarnings = [
19-
"error::FutureWarning:huggingface_hub*",
20-
]
18+
# Temporarily disabled because transformers 4.41.1 calls deprecated code from `huggingface_hub` that causes FutureWarning
19+
# filterwarnings = [
20+
# "error::FutureWarning:huggingface_hub*",
21+
# ]
2122
markers = [
2223
"unit: unit test",
2324
"integration: integration test",

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
# for data streaming via http
136136
"aiohttp",
137137
# To get datasets from the Datasets Hub on huggingface.co
138-
"huggingface-hub>=0.21.2,<0.23.0", # temporary pin: see https://github.com/huggingface/datasets/issues/6860
138+
"huggingface-hub>=0.21.2",
139139
# Utilities from PyPA to e.g., compare versions
140140
"packaging",
141141
# To parse YAML metadata from dataset cards

0 commit comments

Comments
 (0)