anugrah55 commited on
Commit
5598d1c
·
verified ·
1 Parent(s): e0148c3

Pin trl<=0.24.0 + add unsloth_zoo/accelerate/datasets/bitsandbytes

Browse files
Files changed (1) hide show
  1. requirements.txt +31 -24
requirements.txt CHANGED
@@ -1,24 +1,31 @@
1
- --extra-index-url https://download.pytorch.org/whl/cu124
2
- # Strategy: pin only torch (so we get the right CUDA wheel) and unsloth (which
3
- # locks the rest of the matrix — trl, transformers, peft, etc transitively
4
- # via its package metadata). We avoid hand-pinning the surrounding libraries
5
- # because hand-pins kept producing import-time syntax errors from skew.
6
- torch==2.6.0
7
- torchvision==0.21.0
8
- torchaudio==2.6.0
9
- unsloth==2026.4.8
10
- # Pin transformers to 4.x: the 5.x series dropped many legacy model classes
11
- # (e.g. BloomPreTrainedModel) that current peft / trl still reference, which
12
- # broke imports at runtime.
13
- transformers>=4.51.3,<5.0
14
- trl>=0.18.2,<=0.24.0,!=0.19.0
15
- peft>=0.18.0,<0.20
16
- xformers
17
- matplotlib>=3.8.0
18
- numpy>=1.24.0
19
- scipy>=1.10.0
20
- pydantic>=2.0.0
21
- fastapi>=0.110.0
22
- uvicorn>=0.27.0
23
- huggingface_hub>=0.24.0
24
- openenv-core[core]>=0.2.3
 
 
 
 
 
 
 
 
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