Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
import subprocess
|
2 |
import sys
|
3 |
-
import shlex
|
4 |
import spaces
|
5 |
|
6 |
# install packages for mamba
|
7 |
-
subprocess.run(
|
8 |
-
subprocess.run(
|
9 |
|
10 |
import torch
|
11 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
|
|
1 |
import subprocess
|
2 |
import sys
|
|
|
3 |
import spaces
|
4 |
|
5 |
# install packages for mamba
|
6 |
+
subprocess.run("pip install https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.0.0/causal_conv1d-1.0.0+cu122torch2.2cxx11abiTRUE-cp310-cp310-linux_x86_64.whl".split())
|
7 |
+
subprocess.run("pip install https://github.com/state-spaces/mamba/releases/download/v1.0.1/mamba_ssm-1.0.1+cu122torch2.2cxx11abiTRUE-cp310-cp310-linux_x86_64.whl".split())
|
8 |
|
9 |
import torch
|
10 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|