mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-25 21:15:00 +00:00
feat(options): add repeat_last_n
(#2660)
feat(options): add repeat_last_n Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
b783c811db
commit
a8bfb6f9c2
3 changed files with 10 additions and 3 deletions
|
@ -25,7 +25,10 @@ type PredictionOptions struct {
|
|||
Batch int `json:"batch" yaml:"batch"`
|
||||
IgnoreEOS bool `json:"ignore_eos" yaml:"ignore_eos"`
|
||||
RepeatPenalty float64 `json:"repeat_penalty" yaml:"repeat_penalty"`
|
||||
Keep int `json:"n_keep" yaml:"n_keep"`
|
||||
|
||||
RepeatLastN int `json:"repeat_last_n" yaml:"repeat_last_n"`
|
||||
|
||||
Keep int `json:"n_keep" yaml:"n_keep"`
|
||||
|
||||
FrequencyPenalty float64 `json:"frequency_penalty" yaml:"frequency_penalty"`
|
||||
PresencePenalty float64 `json:"presence_penalty" yaml:"presence_penalty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue