From 19e17f02c40443ceea4146a9d1bf522d641ebf66 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Fri, 13 Jan 2023 23:03:20 +0300 Subject: [PATCH] Add default for temprature --- src/config.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.v b/src/config.v index fca98fe..35f592d 100644 --- a/src/config.v +++ b/src/config.v @@ -16,7 +16,7 @@ pub struct GenerationConfig { // generating text. A higher temperature will produce more varied and // creative completions, while a lower temperature will produce more // predictable and repetitive completions. - temperature f32 // Min: 0, Max: 2. + temperature f32 = 0.7 // Min: 0, Max: 2. // This parameter is used to specify the fraction of the mass of the // distribution to keep when selecting the next token. For example, // if you set top_p to 0.5, ChatGPT will only consider the tokens