ybelkada commited on
Commit
11dbf82
·
verified ·
1 Parent(s): 66ab4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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(shlex.split("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"))
8
- subprocess.run(shlex.split("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"))
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