QuantizationOptions
classin packageklyn.math.nn.quantization
public class QuantizationOptions
QuantizationOptions

Options for deterministic, row-local symmetric Q8 conversion. Source matrices become physical INT8; other tensors retain their original encoding. This is weight-only quantization, not activation calibration.

Example

options = QuantizationOptions(groupSize=128l, verbose=true)

Properties
Modifier and Type Member Description
public readonly property bufferBytes
bufferBytes as Long
Source block budget in bytes, independent of total model size.
public readonly property groupSize
groupSize as Long
Scalars per row-local group; power of two in 16..4096.
public readonly property verbose
verbose as Boolean
Whether to display bounded-rate console progress.
Constructors
Modifier and Type Member Description
public QuantizationOptions
QuantizationOptions(groupSize as Long = 128l, bufferBytes as Long = 1048576l, verbose as Boolean = true)
Configures Q8 grouping and the bounded-memory conversion pipeline.