|
package schema |
|
|
|
type PredictionOptions struct { |
|
|
|
|
|
Model string `json:"model" yaml:"model"` |
|
|
|
|
|
Language string `json:"language"` |
|
|
|
|
|
Translate bool `json:"translate"` |
|
|
|
|
|
N int `json:"n"` |
|
|
|
|
|
TopP *float64 `json:"top_p" yaml:"top_p"` |
|
TopK *int `json:"top_k" yaml:"top_k"` |
|
Temperature *float64 `json:"temperature" yaml:"temperature"` |
|
Maxtokens *int `json:"max_tokens" yaml:"max_tokens"` |
|
Echo bool `json:"echo"` |
|
|
|
|
|
Batch int `json:"batch" yaml:"batch"` |
|
IgnoreEOS bool `json:"ignore_eos" yaml:"ignore_eos"` |
|
RepeatPenalty float64 `json:"repeat_penalty" yaml:"repeat_penalty"` |
|
|
|
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"` |
|
TFZ *float64 `json:"tfz" yaml:"tfz"` |
|
|
|
TypicalP *float64 `json:"typical_p" yaml:"typical_p"` |
|
Seed *int `json:"seed" yaml:"seed"` |
|
|
|
NegativePrompt string `json:"negative_prompt" yaml:"negative_prompt"` |
|
RopeFreqBase float32 `json:"rope_freq_base" yaml:"rope_freq_base"` |
|
RopeFreqScale float32 `json:"rope_freq_scale" yaml:"rope_freq_scale"` |
|
NegativePromptScale float32 `json:"negative_prompt_scale" yaml:"negative_prompt_scale"` |
|
|
|
UseFastTokenizer bool `json:"use_fast_tokenizer" yaml:"use_fast_tokenizer"` |
|
|
|
|
|
ClipSkip int `json:"clip_skip" yaml:"clip_skip"` |
|
|
|
|
|
Tokenizer string `json:"tokenizer" yaml:"tokenizer"` |
|
} |
|
|