Uses of Class
io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
Packages that use OptionsBuilder
-
Uses of OptionsBuilder in io.github.amithkoujalgi.ollama4j.core.utils
Methods in io.github.amithkoujalgi.ollama4j.core.utils that return OptionsBuilderModifier and TypeMethodDescriptionOptionsBuilder.setMirostat
(int value) Enable Mirostat sampling for controlling perplexity.OptionsBuilder.setMirostatEta
(float value) Influences how quickly the algorithm responds to feedback from the generated text.OptionsBuilder.setMirostatTau
(float value) Controls the balance between coherence and diversity of the output.OptionsBuilder.setNumCtx
(int value) Sets the size of the context window used to generate the next token.OptionsBuilder.setNumGpu
(int value) The number of layers to send to the GPU(s).OptionsBuilder.setNumGqa
(int value) The number of GQA groups in the transformer layer.OptionsBuilder.setNumPredict
(int value) Maximum number of tokens to predict when generating text.OptionsBuilder.setNumThread
(int value) Sets the number of threads to use during computation.OptionsBuilder.setRepeatLastN
(int value) Sets how far back for the model to look back to prevent repetition.OptionsBuilder.setRepeatPenalty
(float value) Sets how strongly to penalize repetitions.OptionsBuilder.setSeed
(int value) Sets the random number seed to use for generation.Sets the stop sequences to use.OptionsBuilder.setTemperature
(float value) The temperature of the model.OptionsBuilder.setTfsZ
(float value) Tail free sampling is used to reduce the impact of less probable tokens from the output.OptionsBuilder.setTopK
(int value) Reduces the probability of generating nonsense.OptionsBuilder.setTopP
(float value) Works together with top-k.