mirror of
https://github.com/mudler/LocalAI.git
synced 2025-01-30 08:04:13 +00:00
fix: set default batch size (#597)
This commit is contained in:
parent
1b7990d5d9
commit
10ddd72b58
@ -44,6 +44,8 @@ func defaultLLamaOpts(c Config) []llama.ModelOption {
|
|||||||
llamaOpts = append(llamaOpts, llama.SetTensorSplit(c.TensorSplit))
|
llamaOpts = append(llamaOpts, llama.SetTensorSplit(c.TensorSplit))
|
||||||
if c.Batch != 0 {
|
if c.Batch != 0 {
|
||||||
llamaOpts = append(llamaOpts, llama.SetNBatch(c.Batch))
|
llamaOpts = append(llamaOpts, llama.SetNBatch(c.Batch))
|
||||||
|
} else {
|
||||||
|
llamaOpts = append(llamaOpts, llama.SetNBatch(512))
|
||||||
}
|
}
|
||||||
|
|
||||||
return llamaOpts
|
return llamaOpts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user