Fix: pin transformers==4.40.2 for PyTorch 2.1 compatibility
Browse files- 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
|
| 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 ββββββββββββββββββββββββββ
|