Add LowVRAM option parameter (#642)

This commit is contained in:
Ettore Di Giacinto 2023-06-20 20:33:47 +02:00 committed by GitHub
parent 4e3c319e83
commit 2f5feb4841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -48,6 +48,10 @@ func defaultLLamaOpts(c Config) []llama.ModelOption {
llamaOpts = append(llamaOpts, llama.SetNBatch(512))
}
if c.LowVRAM {
llamaOpts = append(llamaOpts, llama.EnabelLowVRAM)
}
return llamaOpts
}