shunxing1234 commited on
Commit
db57085
1 Parent(s): 6cbc624

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -39,8 +39,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_info, trust_remote_code=True)
39
  model = AutoModelForCausalLM.from_pretrained(model_info, trust_remote_code=True)
40
  model.eval()
41
  model.to(device)
42
- text = "请给出10个要到北京旅游的理由。"
43
- tokens = tokenizer.encode_plus(text)['input_ids'][:-1]
44
  tokens = torch.tensor(tokens)[None,].to(device)
45
  stop_tokens = ["###", "[UNK]", "</s>"]
46
  with torch.no_grad():
 
39
  model = AutoModelForCausalLM.from_pretrained(model_info, trust_remote_code=True)
40
  model.eval()
41
  model.to(device)
42
+ text = "明天是个"
43
+ tokens = tokenizer.encode_plus(text)['input_ids']
44
  tokens = torch.tensor(tokens)[None,].to(device)
45
  stop_tokens = ["###", "[UNK]", "</s>"]
46
  with torch.no_grad():