Spaces:
Runtime error
Runtime error
Fix app
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import spaces
|
|
8 |
import gradio as gr
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, TextIteratorStreamer
|
10 |
|
11 |
-
|
12 |
|
13 |
MODEL_ID = os.environ.get("MODEL_ID")
|
14 |
CHAT_TEMPLATE = os.environ.get("CHAT_TEMPLATE")
|
|
|
8 |
import gradio as gr
|
9 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, TextIteratorStreamer
|
10 |
|
11 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
12 |
|
13 |
MODEL_ID = os.environ.get("MODEL_ID")
|
14 |
CHAT_TEMPLATE = os.environ.get("CHAT_TEMPLATE")
|