From c85510f958e6955d88ea1bafb4f320074bfbd0c1 Mon Sep 17 00:00:00 2001 From: Fanli Lin Date: Wed, 24 Jul 2024 00:47:51 +0800 Subject: [PATCH] [docs] change temperature to a positive value (#32077) fix --- docs/source/en/conversations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/conversations.md b/docs/source/en/conversations.md index 9336503ad7..a48c046b49 100644 --- a/docs/source/en/conversations.md +++ b/docs/source/en/conversations.md @@ -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