ybelkada commited on
Commit
49a065e
β€’
1 Parent(s): cdc9318

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,10 +7,11 @@ import torch
7
  print(torch.__version__)
8
 
9
  # install packages for mamba
10
- def install():
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
- install()
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