gabrielchua commited on
Commit
b9c3370
1 Parent(s): d46f0e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ from transformers import AutoModelForCausalLM
8
  from janus.models import MultiModalityCausalLM, VLChatProcessor
9
  from janus.utils.io import load_pil_images
10
 
 
 
 
11
  # Specify the path to the model
12
  model_path = "deepseek-ai/Janus-1.3B"
13
 
 
8
  from janus.models import MultiModalityCausalLM, VLChatProcessor
9
  from janus.utils.io import load_pil_images
10
 
11
+ import subprocess
12
+ subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
13
+
14
  # Specify the path to the model
15
  model_path = "deepseek-ai/Janus-1.3B"
16