Update requirements.txt
Browse files- requirements.txt +10 -7
requirements.txt
CHANGED
|
@@ -1,15 +1,18 @@
|
|
| 1 |
-
#
|
| 2 |
gradio
|
| 3 |
PyMuPDF
|
| 4 |
|
| 5 |
-
# Core
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
sentencepiece
|
| 10 |
Pillow
|
| 11 |
einops
|
| 12 |
easydict
|
| 13 |
addict
|
| 14 |
-
matplotlib
|
| 15 |
-
accelerate
|
|
|
|
| 1 |
+
# UI and PDF tools
|
| 2 |
gradio
|
| 3 |
PyMuPDF
|
| 4 |
|
| 5 |
+
# --- Core Model Dependencies with Forced Versions ---
|
| 6 |
+
# Forcing newer versions to fix the 'LlamaFlashAttention2' ImportError
|
| 7 |
+
transformers>=4.40.0
|
| 8 |
+
accelerate>=0.28.0
|
| 9 |
+
torch>=2.1.0
|
| 10 |
+
torchvision>=0.16.0
|
| 11 |
+
|
| 12 |
+
# Other model dependencies
|
| 13 |
sentencepiece
|
| 14 |
Pillow
|
| 15 |
einops
|
| 16 |
easydict
|
| 17 |
addict
|
| 18 |
+
matplotlib
|
|
|