mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-21 11:04:59 +00:00
fix: set default batch size (#597)
This commit is contained in:
parent
1b7990d5d9
commit
10ddd72b58
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue