BundleSampler class final

The sampler a .litertlm file declares: each value null when the file does not set it.

Annotations
  • @immutable

Constructors

BundleSampler({double? temperature, int? topK, double? topP, int? randomSeed})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
True when the file sets nothing.
no setter
randomSeed → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
temperature → double?
final
topK → int?
final
topP → double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
validate() → void
Throws an ArgumentError for a value no engine can sample with, as core's SamplingParams.validate does.

Operators

operator ==(Object other) → bool
The equality operator.
override