Update README.md
Browse files
README.md
CHANGED
@@ -6,10 +6,10 @@ tags: []
|
|
6 |
from transformers import MambaConfig, MambaForCausalLM, AutoTokenizer
|
7 |
import torch
|
8 |
|
9 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
10 |
tokenizer.pad_token = tokenizer.eos_token
|
11 |
|
12 |
-
model = MambaForCausalLM.from_pretrained("
|
13 |
model.config.use_cache = True
|
14 |
input_ids = tokenizer("Hey how are you doing?", return_tensors= "pt")["input_ids"]
|
15 |
|
|
|
6 |
from transformers import MambaConfig, MambaForCausalLM, AutoTokenizer
|
7 |
import torch
|
8 |
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained("ArthurZ/mamba-130m")
|
10 |
tokenizer.pad_token = tokenizer.eos_token
|
11 |
|
12 |
+
model = MambaForCausalLM.from_pretrained("ArthurZ/mamba-130m", vocab_size=50280, num_hidden_layers=24, torch_dtype=torch.float32)
|
13 |
model.config.use_cache = True
|
14 |
input_ids = tokenizer("Hey how are you doing?", return_tensors= "pt")["input_ids"]
|
15 |
|