homeyang commited on
Commit
6df5440
1 Parent(s): baae437

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -57,4 +57,5 @@ print(f"输入: {content}")
57
  inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
58
  outputs = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7, top_p=0.95)
59
  outputs = tokenizer.decode(outputs.cpu()[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
60
- print(f"输出: {outputs}")
 
 
57
  inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
58
  outputs = model.generate(**inputs, max_new_tokens=256, do_sample=True, temperature=0.7, top_p=0.95)
59
  outputs = tokenizer.decode(outputs.cpu()[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
60
+ print(f"输出: {outputs}")
61
+ ```