shunxing1234
commited on
Commit
•
8ac8b62
1
Parent(s):
44b17f4
Update README.md
Browse files
README.md
CHANGED
@@ -40,7 +40,7 @@ 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']
|
44 |
tokens = torch.tensor(tokens)[None,].to(device)
|
45 |
stop_tokens = ["###", "[UNK]", "</s>"]
|
46 |
with torch.no_grad():
|
|
|
40 |
model.eval()
|
41 |
model.to(device)
|
42 |
text = "请给出10个要到北京旅游的理由。"
|
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():
|