Skip to content

Commit

Permalink
[docs] change temperature to a positive value (#32077)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
faaany authored Jul 23, 2024
1 parent bc2adb0 commit c85510f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/en/conversations.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ inputs = {key: tensor.to(model.device) for key, tensor in inputs.items()}
print("Tokenized inputs:\n", inputs)

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

# 5: Decode the output back to a string
Expand Down

0 comments on commit c85510f

Please sign in to comment.