JunxiongWang
commited on
Commit
•
4dce4b1
1
Parent(s):
e617ead
Update README.md
Browse files
README.md
CHANGED
@@ -20,7 +20,7 @@ model=MambaLMHeadModel.from_pretrained("JunxiongWang/MambaByte_Stories", device=
|
|
20 |
text = "It was terribly cold and nearly dark on the last evening of the old year, and the snow was falling fast."
|
21 |
|
22 |
text_byte = np.frombuffer(text.encode('utf-8'), dtype=np.uint8)
|
23 |
-
input_ids = torch.from_numpy(text_byte[None, :]).long().cuda()
|
24 |
|
25 |
sample = model.generate(
|
26 |
input_ids=input_ids,
|
|
|
20 |
text = "It was terribly cold and nearly dark on the last evening of the old year, and the snow was falling fast."
|
21 |
|
22 |
text_byte = np.frombuffer(text.encode('utf-8'), dtype=np.uint8)
|
23 |
+
input_ids = torch.from_numpy(text_byte[None, :].copy()).long().cuda()
|
24 |
|
25 |
sample = model.generate(
|
26 |
input_ids=input_ids,
|