yury-zyphra
commited on
Commit
•
b77f25a
1
Parent(s):
2dda52e
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
|
5 |
+
Install Zyphra's fork of mamba-ssm: https://github.com/Zyphra/mamba
|
6 |
+
|
7 |
+
Then one should be able to load any iteration using the following snippet (say iteration 10,000):
|
8 |
+
```
|
9 |
+
from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel
|
10 |
+
model = MambaLMHeadModel.from_pretrained("Zyphra/Mamba-370M", iteration=10_000, device="cuda")
|
11 |
+
```
|
12 |
+
|
13 |
+
If iteration is not specified, then the model from the root of the repository is loaded, which is the final iteration (610,351).
|