Skip to content

Commit c85510f

Browse files
authored
[docs] change temperature to a positive value (huggingface#32077)
fix
1 parent bc2adb0 commit c85510f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/en/conversations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ inputs = {key: tensor.to(model.device) for key, tensor in inputs.items()}
195195
print("Tokenized inputs:\n", inputs)
196196

197197
# 4: Generate text from the model
198-
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.)
198+
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.1)
199199
print("Generated tokens:\n", outputs)
200200

201201
# 5: Decode the output back to a string

0 commit comments

Comments
 (0)