Commit
·
db57085
1
Parent(s):
6cbc624
Update README.md
Browse files
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 = "
|
| 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():
|
|
|
|
| 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():
|