yuan-tian commited on
Commit
bd6ed33
1 Parent(s): ebbe24d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -115,7 +115,7 @@ Previous Answer:
115
 
116
  ### Response:"""
117
  inputs = tokenizer(input_text, return_tensors="pt", padding=True).to("cuda")
118
- outputs = model.generate(**inputs)
119
  print(tokenizer.decode(outputs[0], skip_special_tokens = True))
120
  ```
121
 
 
115
 
116
  ### Response:"""
117
  inputs = tokenizer(input_text, return_tensors="pt", padding=True).to("cuda")
118
+ outputs = model.generate(**inputs, max_new_tokens=256)
119
  print(tokenizer.decode(outputs[0], skip_special_tokens = True))
120
  ```
121