run_full_pipeline.sh: fix legacy 'future' import error on Py3.10
Browse filesThe transitive 'future' dep (pulled in by unsloth deps) ships an old
sdist-only release that does `from collections import Sequence` which
was moved to collections.abc in 3.10. Pre-install future>=1.0.0 (which
has wheels and the proper import) and drop the cu121 extras suffix
since the L4 image already ships CUDA 12.5.
Made-with: Cursor
scripts/run_full_pipeline.sh
CHANGED
|
@@ -12,8 +12,11 @@
|
|
| 12 |
set -euo pipefail
|
| 13 |
|
| 14 |
echo "[1/6] Installing GPU stack ..."
|
| 15 |
-
pip install -q --upgrade pip
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
pip install -q "trl>=0.12" peft accelerate bitsandbytes datasets tensorboard matplotlib
|
| 18 |
pip install -q -r requirements.txt
|
| 19 |
|
|
|
|
| 12 |
set -euo pipefail
|
| 13 |
|
| 14 |
echo "[1/6] Installing GPU stack ..."
|
| 15 |
+
pip install -q --upgrade pip setuptools wheel
|
| 16 |
+
# Pre-pin a Python-3.10-safe `future`; legacy versions fail to build wheels
|
| 17 |
+
# with `cannot import name Sequence from collections` on 3.10+.
|
| 18 |
+
pip install -q "future>=1.0.0"
|
| 19 |
+
pip install -q "unsloth @ git+https://github.com/unslothai/unsloth.git"
|
| 20 |
pip install -q "trl>=0.12" peft accelerate bitsandbytes datasets tensorboard matplotlib
|
| 21 |
pip install -q -r requirements.txt
|
| 22 |
|