Guanzheng commited on
Commit
e126d28
1 Parent(s): 74e9804

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -38,7 +38,7 @@ import torch
38
  from transformers import AutoTokenizer, AutoModelForCausalLM
39
 
40
  tokenizer = AutoTokenizer.from_pretrained("DAMO-NLP-SG/CLEX-Mixtral-8x7B-32K", trust_remote_code=True)
41
- model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-SG/CLEX-Mixtral-8x7B-32K", torch_dtype=torch.bfloat16)
42
  inputs = tokenizer("What is CLEX?", return_tensors="pt")
43
  sample = model.generate(**inputs, max_length=128)
44
  print(tokenizer.decode(sample[0]))
 
38
  from transformers import AutoTokenizer, AutoModelForCausalLM
39
 
40
  tokenizer = AutoTokenizer.from_pretrained("DAMO-NLP-SG/CLEX-Mixtral-8x7B-32K", trust_remote_code=True)
41
+ model = AutoModelForCausalLM.from_pretrained("DAMO-NLP-SG/CLEX-Mixtral-8x7B-32K", torch_dtype=torch.bfloat16, trust_remote_code=True)
42
  inputs = tokenizer("What is CLEX?", return_tensors="pt")
43
  sample = model.generate(**inputs, max_length=128)
44
  print(tokenizer.decode(sample[0]))