Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,11 @@ import torch
|
|
7 |
print(torch.__version__)
|
8 |
|
9 |
# install packages for mamba
|
10 |
-
def
|
11 |
subprocess.run(shlex.split("pip install https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.4.0/causal_conv1d-1.4.0+cu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"))
|
|
|
12 |
|
13 |
-
|
14 |
|
15 |
import torch
|
16 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
|
|
7 |
print(torch.__version__)
|
8 |
|
9 |
# install packages for mamba
|
10 |
+
def install_mamba():
|
11 |
subprocess.run(shlex.split("pip install https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.4.0/causal_conv1d-1.4.0+cu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"))
|
12 |
+
subprocess.run(shlex.split("pip install https://github.com/state-spaces/mamba/releases/download/v2.2.2/mamba_ssm-2.2.2+cu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"))
|
13 |
|
14 |
+
install_mamba()
|
15 |
|
16 |
import torch
|
17 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|