KingNish commited on
Commit
75f341f
·
verified ·
1 Parent(s): 549135a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -11,9 +11,11 @@ is_shared_ui = True if "innova-ai/YuE-music-generator-demo" in os.environ['SPACE
11
  def install_flash_attn():
12
  try:
13
  print("Installing flash-attn...")
 
14
  subprocess.run(
15
- ["pip", "install", "flash-attn"],
16
- check=True
 
17
  )
18
  print("flash-attn installed successfully!")
19
  except subprocess.CalledProcessError as e:
 
11
  def install_flash_attn():
12
  try:
13
  print("Installing flash-attn...")
14
+ # Install flash attention
15
  subprocess.run(
16
+ "pip install flash-attn --no-build-isolation",
17
+ env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
18
+ shell=True,
19
  )
20
  print("flash-attn installed successfully!")
21
  except subprocess.CalledProcessError as e: