Mountchicken commited on
Commit
3945b56
·
verified ·
1 Parent(s): 6c7f613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -19,9 +19,8 @@ os.system("pip install gradio_image_prompter==0.1.0")
19
  # os.system("pip install pydantic==2.10.6")
20
  os.system("pip install torch==2.4.0 torchvision==0.18.0 --index-url https://download.pytorch.org/whl/cu124")
21
 
22
- import subprocess
23
- os.system('pip install flash-attn==2.7.4.post1 --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
24
-
25
  import sys
26
  import threading
27
  # os.system("pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124")
 
19
  # os.system("pip install pydantic==2.10.6")
20
  os.system("pip install torch==2.4.0 torchvision==0.18.0 --index-url https://download.pytorch.org/whl/cu124")
21
 
22
+ os.environ["FLASH_ATTENTION_SKIP_CUDA_BUILD"] = "TRUE"
23
+ os.system("pip install flash-attn==2.7.4.post1 --no-build-isolation")
 
24
  import sys
25
  import threading
26
  # os.system("pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu124")