feat: update llama, enable NUMA (#684)

This commit is contained in:
Ettore Di Giacinto authored and GitHub committed 2023-06-27 09:00:10 +02:00
1 parent e130b208ab
commit 3593cb0c87
3 files changed
+6 -1

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ type Config struct {
TrimSpace []string `yaml:"trimspace"`
ContextSize int `yaml:"context_size"`
F16 bool `yaml:"f16"`
NUMA bool `yaml:"numa"`
Threads int `yaml:"threads"`
Debug bool `yaml:"debug"`
Roles map[string]string `yaml:"roles"`
+4
View File
@@ -48,6 +48,10 @@ func defaultLLamaOpts(c Config) []llama.ModelOption {
llamaOpts = append(llamaOpts, llama.SetNBatch(512))
}
if c.NUMA {
llamaOpts = append(llamaOpts, llama.EnableNUMA)
}
if c.LowVRAM {
llamaOpts = append(llamaOpts, llama.EnabelLowVRAM)
}