diff --git a/core/config/backend_config.go b/core/config/backend_config.go index 2adfeee54..daaf02574 100644 --- a/core/config/backend_config.go +++ b/core/config/backend_config.go @@ -276,8 +276,12 @@ func (cfg *BackendConfig) SetDefaults(debug bool, threads, ctx int, f16 bool) { cfg.F16 = &f16 } + if cfg.Debug == nil { + cfg.Debug = &falseV + } + if debug { - cfg.Debug = &debug + cfg.Debug = &trueV } }