SamplerParams constructor
const
SamplerParams({
- int seed = defaultSeed,
- double temperature = 0.8,
- int topK = 40,
- double topP = 0.95,
- double minP = 0.05,
- double typicalP = 1.0,
- double topNSigma = 0.0,
- int minKeep = 1,
- double repeatPenalty = 1.0,
- int penaltyLastN = 64,
- double frequencyPenalty = 0.0,
- double presencePenalty = 0.0,
- bool greedy = false,
- bool infill = false,
- MirostatConfig mirostat = MirostatConfig.disabled,
- DynamicTempConfig dynamicTemp = DynamicTempConfig.disabled,
- XtcConfig xtc = XtcConfig.disabled,
- DryConfig dry = DryConfig.disabled,
- AdaptivePConfig adaptiveP = AdaptivePConfig.disabled,
- GrammarConfig grammar = GrammarConfig.disabled,
- List<
LogitBiasEntry> logitBias = const [],
Implementation
const SamplerParams({
this.seed = defaultSeed,
this.temperature = 0.8,
this.topK = 40,
this.topP = 0.95,
this.minP = 0.05,
this.typicalP = 1.0,
this.topNSigma = 0.0,
this.minKeep = 1,
this.repeatPenalty = 1.0,
this.penaltyLastN = 64,
this.frequencyPenalty = 0.0,
this.presencePenalty = 0.0,
this.greedy = false,
this.infill = false,
this.mirostat = MirostatConfig.disabled,
this.dynamicTemp = DynamicTempConfig.disabled,
this.xtc = XtcConfig.disabled,
this.dry = DryConfig.disabled,
this.adaptiveP = AdaptivePConfig.disabled,
this.grammar = GrammarConfig.disabled,
this.logitBias = const [],
});