SamplerConfig class final
How the next token is drawn: LiteRT-LM's Kotlin/Swift SamplerConfig.
Every field is set, as there. A conversation that names none uses the sampler the model file carries, field by field, else 0.8 / 40 / 0.95 / seed 1.
- Annotations
-
- @immutable
Constructors
- SamplerConfig({required int topK, required double topP, required double temperature, int seed = 0})
-
Throws ArgumentError for a value no engine samples with: a negative or
non-finite
temperature, atopKbelow 1, atopPoutside (0, 1].
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override