jeffreygo commited on
Commit
3b53c0f
1 Parent(s): 0c2f70d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -14,8 +14,8 @@ pip install transformers
14
  from transformers import CpmAntTokenizer, CpmAntForCausalLM
15
 
16
  texts = "今天天气不错,"
17
- model = CPMAntForCausalLM.from_pretrained("openbmb/cpm-ant-10b")
18
- tokenizer = CPMAntTokenizer.from_pretrained("openbmb/cpm-ant-10b")
19
  input_ids = tokenizer(texts, return_tensors="pt")
20
  outputs = model.generate(**input_ids)
21
  output_texts = tokenizer.batch_decode(outputs)
 
14
  from transformers import CpmAntTokenizer, CpmAntForCausalLM
15
 
16
  texts = "今天天气不错,"
17
+ model = CpmAntForCausalLM.from_pretrained("openbmb/cpm-ant-10b")
18
+ tokenizer = CpmAntTokenizer.from_pretrained("openbmb/cpm-ant-10b")
19
  input_ids = tokenizer(texts, return_tensors="pt")
20
  outputs = model.generate(**input_ids)
21
  output_texts = tokenizer.batch_decode(outputs)