Upload requirements.txt with huggingface_hub
Browse files- requirements.txt +20 -0
requirements.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CPU-only PyTorch (no CUDA)
|
| 2 |
+
--index-url https://download.pytorch.org/whl/cpu
|
| 3 |
+
torch==2.4.0
|
| 4 |
+
torchvision==0.19.0
|
| 5 |
+
torchaudio==2.4.0
|
| 6 |
+
|
| 7 |
+
# Diffusers & transformers
|
| 8 |
+
diffusers==0.31.0
|
| 9 |
+
transformers==4.44.0
|
| 10 |
+
accelerate==0.33.0
|
| 11 |
+
safetensors==0.4.4
|
| 12 |
+
|
| 13 |
+
# Gradio
|
| 14 |
+
gradio==5.0.0
|
| 15 |
+
|
| 16 |
+
# Image handling
|
| 17 |
+
pillow==10.4.0
|
| 18 |
+
|
| 19 |
+
# Optional: xformers not needed on CPU
|
| 20 |
+
# xformers==0.0.27.post2 # 不安装,CPU 不支持
|