Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from transformers import AutoTokenizer, LlamaForCausalLM
|
4 |
import spaces
|
|
|
|
|
|
|
5 |
|
6 |
# Initialize model and tokenizer
|
7 |
model_id = 'akjindal53244/Llama-3.1-Storm-8B'
|
|
|
2 |
import torch
|
3 |
from transformers import AutoTokenizer, LlamaForCausalLM
|
4 |
import spaces
|
5 |
+
import subprocess
|
6 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
7 |
+
|
8 |
|
9 |
# Initialize model and tokenizer
|
10 |
model_id = 'akjindal53244/Llama-3.1-Storm-8B'
|