Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,7 @@ import spaces
|
|
6 |
import os
|
7 |
|
8 |
|
9 |
-
|
10 |
-
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
11 |
# Initialize the model pipeline
|
12 |
generator = pipeline('text-generation', model='hydra-project/ChatHercules-2.5-Mistral-7B', torch_dtype=torch.bfloat16)
|
13 |
@spaces.GPU
|
|
|
6 |
import os
|
7 |
|
8 |
|
9 |
+
|
|
|
10 |
# Initialize the model pipeline
|
11 |
generator = pipeline('text-generation', model='hydra-project/ChatHercules-2.5-Mistral-7B', torch_dtype=torch.bfloat16)
|
12 |
@spaces.GPU
|