Spaces:
Sleeping
Sleeping
Pin trl<=0.24.0 + add unsloth_zoo/accelerate/datasets/bitsandbytes
Browse files- requirements.txt +31 -24
requirements.txt
CHANGED
|
@@ -1,24 +1,31 @@
|
|
| 1 |
-
--extra-index-url https://download.pytorch.org/whl/cu124
|
| 2 |
-
# Strategy:
|
| 3 |
-
#
|
| 4 |
-
#
|
| 5 |
-
#
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--extra-index-url https://download.pytorch.org/whl/cu124
|
| 2 |
+
# Strategy: strict ML pins mirroring requirements-unsloth.txt (the locally
|
| 3 |
+
# verified matrix). Loose pins on trl/transformers caused a runtime import
|
| 4 |
+
# error: trl resolved to a version requiring transformers>=5, while
|
| 5 |
+
# transformers landed on a 4.x release with API trimmed for 5.x, breaking
|
| 6 |
+
# `from transformers import PreTrainedModel`.
|
| 7 |
+
torch==2.6.0
|
| 8 |
+
torchvision==0.21.0
|
| 9 |
+
torchaudio==2.6.0
|
| 10 |
+
unsloth==2026.4.8
|
| 11 |
+
unsloth_zoo
|
| 12 |
+
# Pin transformers to 4.x: the 5.x series dropped many legacy model classes
|
| 13 |
+
# (e.g. BloomPreTrainedModel) that current peft / trl still reference, which
|
| 14 |
+
# broke imports at runtime.
|
| 15 |
+
transformers>=4.51.3,<5.0
|
| 16 |
+
trl>=0.18.2,<=0.24.0,!=0.19.0
|
| 17 |
+
peft>=0.18.0,<0.20
|
| 18 |
+
accelerate>=1.0.0
|
| 19 |
+
datasets>=2.18.0
|
| 20 |
+
bitsandbytes>=0.43.0
|
| 21 |
+
xformers
|
| 22 |
+
matplotlib>=3.8.0
|
| 23 |
+
|
| 24 |
+
# Space control panel + env API deps
|
| 25 |
+
numpy>=1.24.0
|
| 26 |
+
scipy>=1.10.0
|
| 27 |
+
pydantic>=2.0.0
|
| 28 |
+
fastapi>=0.110.0
|
| 29 |
+
uvicorn>=0.27.0
|
| 30 |
+
huggingface_hub>=0.24.0
|
| 31 |
+
openenv-core[core]>=0.2.3
|