mrs83 commited on
Commit
816214d
·
verified ·
1 Parent(s): 6bc1db5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -2
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
- Use the code below to get started with the model.
27
 
28
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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