mattbitzesty commited on
Commit
e19a381
·
unverified ·
1 Parent(s): dcde171

hf_train_job: disable Xet to avoid progress-reporter bug on large checkpoint upload

Browse files
Files changed (1) hide show
  1. scripts/hf_train_job.py +4 -0
scripts/hf_train_job.py CHANGED
@@ -13,6 +13,10 @@ from pathlib import Path
13
  # workspace, avoiding stale/cached model-volume mounts.
14
 
15
  TOKEN = os.environ.get("HF_TOKEN")
 
 
 
 
16
  WORKSPACE = Path("/workspace")
17
  SOURCE_DIR = WORKSPACE / "pino-fresh"
18
  DATASET_DIR = WORKSPACE / "pino-dataset"
 
13
  # workspace, avoiding stale/cached model-volume mounts.
14
 
15
  TOKEN = os.environ.get("HF_TOKEN")
16
+ # Disable Xet storage for large-file uploads; fall back to LFS to avoid a
17
+ # huggingface_hub/hf-xet progress-reporter bug observed in the HF Jobs image.
18
+ os.environ.setdefault("HF_HUB_ENABLE_XET", "false")
19
+
20
  WORKSPACE = Path("/workspace")
21
  SOURCE_DIR = WORKSPACE / "pino-fresh"
22
  DATASET_DIR = WORKSPACE / "pino-dataset"