Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from threading import Thread
|
|
7 |
from transformers import TextIteratorStreamer
|
8 |
|
9 |
# Install required packages
|
10 |
-
subprocess.check_call([sys.executable, "-m", "pip", "install", "-U", "--force-reinstall", "--no-deps", "einops", "accelerate", "
|
11 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
12 |
|
13 |
from transformers import OlmoeForCausalLM, AutoTokenizer
|
|
|
7 |
from transformers import TextIteratorStreamer
|
8 |
|
9 |
# Install required packages
|
10 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", "-U", "--force-reinstall", "--no-deps", "einops", "accelerate", "transformers", "sentencepiece", "torch"])
|
11 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
12 |
|
13 |
from transformers import OlmoeForCausalLM, AutoTokenizer
|