kevinwufei commited on
Commit
0d1f710
Β·
verified Β·
1 Parent(s): 7737001

Fix: pin transformers==4.40.2 for PyTorch 2.1 compatibility

Browse files
Files changed (1) hide show
  1. auto_train.sh +2 -2
auto_train.sh CHANGED
@@ -64,8 +64,8 @@ if [[ "$PYTORCH_VERSION" == "none" ]]; then
64
  else
65
  echo " Using existing PyTorch $PYTORCH_VERSION (skipping reinstall)"
66
  fi
67
- # Install other deps without touching torch
68
- pip install -q transformers pillow pandas requests tqdm scikit-learn huggingface_hub datasets 2>&1 | tail -3
69
  echo " βœ“ Dependencies installed"
70
 
71
  # ── Step 2: Download CIFAKE dataset ──────────────────────────
 
64
  else
65
  echo " Using existing PyTorch $PYTORCH_VERSION (skipping reinstall)"
66
  fi
67
+ # Install other deps - pin transformers to version compatible with PyTorch 2.1
68
+ pip install -q "transformers==4.40.2" pillow pandas requests tqdm scikit-learn huggingface_hub datasets 2>&1 | tail -3
69
  echo " βœ“ Dependencies installed"
70
 
71
  # ── Step 2: Download CIFAKE dataset ──────────────────────────