fix: set default batch size (#597)

This commit is contained in:
Ettore Di Giacinto
2023-06-14 19:09:27 +02:00
committed by GitHub
parent 1b7990d5d9
commit 10ddd72b58

View File

@ -44,6 +44,8 @@ func defaultLLamaOpts(c Config) []llama.ModelOption {
llamaOpts = append(llamaOpts, llama.SetTensorSplit(c.TensorSplit))
if c.Batch != 0 {
llamaOpts = append(llamaOpts, llama.SetNBatch(c.Batch))
} else {
llamaOpts = append(llamaOpts, llama.SetNBatch(512))
}
return llamaOpts