davanstrien HF Staff Claude Opus 4.6 commited on
Commit
f88a101
·
1 Parent(s): 7162b0e

Replace deprecated HF_TRANSFER with HF_XET_HIGH_PERFORMANCE

Browse files

- Remove `[hf_transfer]` extra from PEP 723 dependencies (5 scripts)
- Replace `HF_HUB_ENABLE_HF_TRANSFER=1` with `HF_XET_HIGH_PERFORMANCE=1` (4 scripts)
- Hub now uses Xet storage backend; hf_transfer is deprecated

Ref: https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables#hfxethighperformance

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

deepseek-ocr-vllm.py CHANGED
@@ -2,7 +2,7 @@
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
- # "huggingface-hub[hf_transfer]",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
@@ -276,8 +276,8 @@ def main(
276
  # Track processing start time
277
  start_time = datetime.now()
278
 
279
- # Enable HF_TRANSFER for faster downloads
280
- os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
281
 
282
  # Login to HF if token provided
283
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
 
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
+ # "huggingface-hub",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
 
276
  # Track processing start time
277
  start_time = datetime.now()
278
 
279
+ # Enable high-performance Xet downloads
280
+ os.environ["HF_XET_HIGH_PERFORMANCE"] = "1"
281
 
282
  # Login to HF if token provided
283
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
nanonets-ocr.py CHANGED
@@ -2,7 +2,7 @@
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
- # "huggingface-hub[hf_transfer]",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
@@ -222,8 +222,8 @@ def main(
222
  # Track processing start time
223
  start_time = datetime.now()
224
 
225
- # Enable HF_TRANSFER for faster downloads
226
- os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
227
 
228
  # Login to HF if token provided
229
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
 
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
+ # "huggingface-hub",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
 
222
  # Track processing start time
223
  start_time = datetime.now()
224
 
225
+ # Enable high-performance Xet downloads
226
+ os.environ["HF_XET_HIGH_PERFORMANCE"] = "1"
227
 
228
  # Login to HF if token provided
229
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
nanonets-ocr2.py CHANGED
@@ -2,7 +2,7 @@
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
- # "huggingface-hub[hf_transfer]",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
@@ -228,8 +228,8 @@ def main(
228
  # Track processing start time
229
  start_time = datetime.now()
230
 
231
- # Enable HF_TRANSFER for faster downloads
232
- os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
233
 
234
  # Login to HF if token provided
235
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
 
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
+ # "huggingface-hub",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
 
228
  # Track processing start time
229
  start_time = datetime.now()
230
 
231
+ # Enable high-performance Xet downloads
232
+ os.environ["HF_XET_HIGH_PERFORMANCE"] = "1"
233
 
234
  # Login to HF if token provided
235
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
olmocr2-vllm.py CHANGED
@@ -2,7 +2,7 @@
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
- # "huggingface-hub[hf_transfer]",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
 
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
+ # "huggingface-hub",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
rolm-ocr.py CHANGED
@@ -2,7 +2,7 @@
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
- # "huggingface-hub[hf_transfer]",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
@@ -216,8 +216,8 @@ def main(
216
  # Track processing start time
217
  start_time = datetime.now()
218
 
219
- # Enable HF_TRANSFER for faster downloads
220
- os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
221
 
222
  # Login to HF if token provided
223
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")
 
2
  # requires-python = ">=3.11"
3
  # dependencies = [
4
  # "datasets",
5
+ # "huggingface-hub",
6
  # "pillow",
7
  # "vllm",
8
  # "tqdm",
 
216
  # Track processing start time
217
  start_time = datetime.now()
218
 
219
+ # Enable high-performance Xet downloads
220
+ os.environ["HF_XET_HIGH_PERFORMANCE"] = "1"
221
 
222
  # Login to HF if token provided
223
  HF_TOKEN = hf_token or os.environ.get("HF_TOKEN")