Skip to content

Commit c680622

Browse files
committed
fix(llama.cpp): disable mirostat as default
Even if increasing the quality of the output, it has shown to have performance drawbacks to be so noticeable that the confuses users about speed of LocalAI. This changeset disables Mirostat by default (which can be still enabled manually). Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 96f67ef commit c680622

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/config/backend_config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
261261
defaultTopP := 0.95
262262
defaultTopK := 40
263263
defaultTemp := 0.9
264-
defaultMirostat := 2
264+
// https://github.com/mudler/LocalAI/issues/2780
265+
defaultMirostat := 0
265266
defaultMirostatTAU := 5.0
266267
defaultMirostatETA := 0.1
267268
defaultTypicalP := 1.0

0 commit comments

Comments
 (0)