JunxiongWang commited on
Commit
3bd6751
1 Parent(s): 2f582fc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -27,7 +27,7 @@ model=MambaLMHeadModel.from_pretrained("JunxiongWang/MambaByte_PG19_972M", devic
27
 
28
  text = "It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife,"
29
  text_byte = np.frombuffer(text.encode('utf-8'), dtype=np.uint8)
30
- input_ids = torch.from_numpy(text_byte[None, :]).long().cuda()
31
 
32
  sample = model.generate(
33
  input_ids=input_ids,
 
27
 
28
  text = "It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife,"
29
  text_byte = np.frombuffer(text.encode('utf-8'), dtype=np.uint8)
30
+ input_ids = torch.from_numpy(text_byte[None, :].copy()).long().cuda()
31
 
32
  sample = model.generate(
33
  input_ids=input_ids,