We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
max_tokens
1 parent 284ad02 commit 180cd4cCopy full SHA for 180cd4c
core/config/backend_config.go
@@ -210,7 +210,7 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
210
defaultMirostatETA := 0.1
211
defaultTypicalP := 1.0
212
defaultTFZ := 1.0
213
- defaultInfinity := -1
+ defaultZero := 0
214
215
// Try to offload all GPU layers (if GPU is found)
216
defaultHigh := 99999999
@@ -254,7 +254,7 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
254
}
255
256
if cfg.Maxtokens == nil {
257
- cfg.Maxtokens = &defaultInfinity
+ cfg.Maxtokens = &defaultZero
258
259
260
if cfg.Mirostat == nil {
0 commit comments