Update README.md
Browse files
README.md
CHANGED
@@ -23,10 +23,28 @@ Please check the following GitHub project for model details and evaluation resul
|
|
23 |
|
24 |
## How to Get Started with the Model
|
25 |
|
26 |
-
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
|
|
|
|
|
|
30 |
|
31 |
## Evaluation Results
|
32 |
|
|
|
23 |
|
24 |
## How to Get Started with the Model
|
25 |
|
26 |
+
First, install `xlstm` and `mlstm_kernels` packages:
|
27 |
|
28 |
+
```bash
|
29 |
+
pip install xlstm
|
30 |
+
pip install mlstm_kernels
|
31 |
+
```
|
32 |
+
|
33 |
+
For now, install the transformers repositiory fork from NX-AI (until it is merged):
|
34 |
+
|
35 |
+
```bash
|
36 |
+
pip install 'transformers @ git+ssh://[email protected]/NX-AI/transformers.git@integrate_xlstm'
|
37 |
+
```
|
38 |
+
|
39 |
+
Use this model as:
|
40 |
+
|
41 |
+
```
|
42 |
+
from peft import PeftModel
|
43 |
+
from transformers import AutoModelForCausalLM
|
44 |
|
45 |
+
base_model = AutoModelForCausalLM.from_pretrained("NX-AI/xLSTM-7b")
|
46 |
+
model = PeftModel.from_pretrained(base_model, "mrs83/FlowerTune-xLSTM-7b-NLP-PEFT")
|
47 |
+
```
|
48 |
|
49 |
## Evaluation Results
|
50 |
|