Skip to content

Commit b2f9fc8

Browse files
authored
chore(defaults): enlarge defaults, drop gpu layers which is infered (#5308)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 1fc6d46 commit b2f9fc8

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

core/backend/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func grpcModelOpts(c config.BackendConfig) *pb.ModelOptions {
9999
mmap = *c.MMap
100100
}
101101

102-
ctxSize := 1024
102+
ctxSize := 4096
103103
if c.ContextSize != nil {
104104
ctxSize = *c.ContextSize
105105
}

core/config/backend_config.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,6 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
304304
defaultTFZ := 1.0
305305
defaultZero := 0
306306

307-
// Try to offload all GPU layers (if GPU is found)
308-
defaultHigh := 99999999
309-
310307
trueV := true
311308
falseV := false
312309

@@ -366,9 +363,6 @@ func (cfg *BackendConfig) SetDefaults(opts ...ConfigLoaderOption) {
366363
if cfg.MirostatTAU == nil {
367364
cfg.MirostatTAU = &defaultMirostatTAU
368365
}
369-
if cfg.NGPULayers == nil {
370-
cfg.NGPULayers = &defaultHigh
371-
}
372366

373367
if cfg.LowVRAM == nil {
374368
cfg.LowVRAM = &falseV

0 commit comments

Comments
 (0)