JunxiongWang commited on
Commit
2792c5b
·
verified ·
1 Parent(s): 3c34689

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -19,7 +19,7 @@ model=MambaLMHeadModel.from_pretrained("JunxiongWang/MambaByte_Books", device='c
19
 
20
  text = "In fair Verona, where we lay our scene, From ancient grudge, break to new mutiny, Where civil blood makes civil hands unclean."
21
  text_byte = np.frombuffer(text.encode('utf-8'), dtype=np.uint8)
22
- input_ids = torch.from_numpy(text_byte[None, :]).long().cuda()
23
 
24
  sample = model.generate(
25
  input_ids=input_ids,
 
19
 
20
  text = "In fair Verona, where we lay our scene, From ancient grudge, break to new mutiny, Where civil blood makes civil hands unclean."
21
  text_byte = np.frombuffer(text.encode('utf-8'), dtype=np.uint8)
22
+ input_ids = torch.from_numpy(text_byte[None, :].copy()).long().cuda()
23
 
24
  sample = model.generate(
25
  input_ids=input_ids,