rahul7star commited on
Commit
b3d298b
·
verified ·
1 Parent(s): dc3566a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -2,6 +2,7 @@
2
  # PyTorch 2.8 (temporary hack)
3
  import os
4
  os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 "torch<2.9" spaces')
 
5
  import spaces
6
  import argparse
7
  import logging
 
2
  # PyTorch 2.8 (temporary hack)
3
  import os
4
  os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 "torch<2.9" spaces')
5
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
6
  import spaces
7
  import argparse
8
  import logging