feat: implement multi-GPU support via DataParallel
Browse files- requirements.txt +20 -2
requirements.txt
CHANGED
|
@@ -1,9 +1,27 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
tiktoken>=0.5.1
|
| 3 |
datasets>=2.14.0
|
|
|
|
|
|
|
| 4 |
faiss-cpu>=1.7.4
|
|
|
|
|
|
|
| 5 |
tqdm>=4.66.1
|
| 6 |
-
bitsandbytes>=0.41.0
|
| 7 |
numpy<2.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
huggingface_hub>=0.20.0
|
| 9 |
wandb>=0.16.0
|
|
|
|
| 1 |
+
# SAGE - Self-Adaptive General Engine
|
| 2 |
+
# ======================================
|
| 3 |
+
# Core dependencies
|
| 4 |
+
|
| 5 |
+
# PyTorch - GPU compatibility notes:
|
| 6 |
+
# - For Tesla P100 (sm_60), V100, T4, A100: torch>=2.1.0
|
| 7 |
+
# - For older GPUs (sm_60): use torch==2.1.0 --index-url https://download.pytorch.org/whl/cu121
|
| 8 |
+
# - The code auto-detects GPU compatibility and falls back to CPU if needed
|
| 9 |
+
torch>=2.1.0
|
| 10 |
+
|
| 11 |
+
# Tokenization & Data
|
| 12 |
tiktoken>=0.5.1
|
| 13 |
datasets>=2.14.0
|
| 14 |
+
|
| 15 |
+
# Vector search (for RAG)
|
| 16 |
faiss-cpu>=1.7.4
|
| 17 |
+
|
| 18 |
+
# Utilities
|
| 19 |
tqdm>=4.66.1
|
|
|
|
| 20 |
numpy<2.0.0
|
| 21 |
+
|
| 22 |
+
# Quantization (optional GPU support)
|
| 23 |
+
bitsandbytes>=0.41.0
|
| 24 |
+
|
| 25 |
+
# Model Hub & Experiment Tracking
|
| 26 |
huggingface_hub>=0.20.0
|
| 27 |
wandb>=0.16.0
|