shunxing1234
commited on
Commit
•
8045fd7
1
Parent(s):
347d85c
Update README_zh.md
Browse files- README_zh.md +1 -1
README_zh.md
CHANGED
@@ -45,7 +45,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_info, trust_remote_code=True)
|
|
45 |
model = AutoModelForCausalLM.from_pretrained(model_info, trust_remote_code=True)
|
46 |
model.eval()
|
47 |
model.to(device)
|
48 |
-
text = "
|
49 |
tokens = tokenizer.encode_plus(text)['input_ids']
|
50 |
tokens = torch.tensor(tokens)[None,].to(device)
|
51 |
stop_tokens = ["###", "[UNK]", "</s>"]
|
|
|
45 |
model = AutoModelForCausalLM.from_pretrained(model_info, trust_remote_code=True)
|
46 |
model.eval()
|
47 |
model.to(device)
|
48 |
+
text = "杭州亚运会的亮点和期待 2023年9月23日至10月8日,杭州将举办第19届亚洲运动会"
|
49 |
tokens = tokenizer.encode_plus(text)['input_ids']
|
50 |
tokens = torch.tensor(tokens)[None,].to(device)
|
51 |
stop_tokens = ["###", "[UNK]", "</s>"]
|