MambaRetriever commited on
Commit
43a9621
verified
1 Parent(s): 4833300

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +50 -3
README.md CHANGED
@@ -1,3 +1,50 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - state-spaces/mamba2-130m
7
+ pipeline_tag: question-answering
8
+ ---
9
+
10
+ # Mamba Retriever
11
+
12
+ This repository contains model checkpoint for [Mamba Retriever](https://github.com/MambaRetriever/MambaRetriever)
13
+
14
+ The model architecture is built upon [mamba](https://github.com/state-spaces/mamba), and is trained from [mamba2-130m](https://huggingface.co/state-spaces/mamba2-130m)
15
+
16
+
17
+ # Usage
18
+
19
+ We highly recommend creating a new conda environment first:
20
+ ```
21
+ conda create -n mamba_retriever python=3.10.14
22
+ conda activate mamba_retriever
23
+ ```
24
+
25
+ Then, run the following in your terminal:
26
+ ```
27
+ git clone https://github.com/state-spaces/mamba.git
28
+ conda install cudatoolkit==11.8 -c nvidia
29
+ pip install -r requirements.txt
30
+ pip3 install torch==2.1.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
31
+ pip install accelerate -U
32
+ cd mamba
33
+ pip install .
34
+ ```
35
+
36
+ Next, download and install the following two files from https://github.com/state-spaces/mamba/releases and https://github.com/Dao-AILab/causal-conv1d/releases:
37
+ ```
38
+ mamba_ssm-2.2.2+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
39
+ causal_conv1d-1.4.0+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
40
+ ```
41
+
42
+ You can install them using
43
+ ```
44
+ pip install mamba_ssm-2.2.2+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
45
+ pip install causal_conv1d-1.4.0+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
46
+ ```
47
+
48
+ ## Evaluation
49
+
50
+ All evaluation code and details are available at [Mamba Retriever Github](https://github.com/MambaRetriever/MambaRetriever)