Skip to content

Commit

Permalink
Merge branch 'master' into update/CPPLLAMA_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler authored Apr 21, 2024
2 parents 9fc7c72 + 180cd4c commit 6f485ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/config/backend_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
defaultMirostatETA := 0.1
defaultTypicalP := 1.0
defaultTFZ := 1.0
defaultInfinity := -1
defaultZero := 0

// Try to offload all GPU layers (if GPU is found)
defaultHigh := 99999999
Expand Down Expand Up @@ -254,7 +254,7 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
}

if cfg.Maxtokens == nil {
cfg.Maxtokens = &defaultInfinity
cfg.Maxtokens = &defaultZero
}

if cfg.Mirostat == nil {
Expand Down

0 comments on commit 6f485ea

Please sign in to comment.