klyn.math.nn.quantization.QuantizedMatrix.QuantizedMatrix
constructor
public QuantizedMatrix(path as Path, name as String)
Description

Loads and validates one rank-two matrix from a Klyn Q8 shard.

Parameters
ParameterDescription
pathQuantized Safetensors file.
nameOriginal tensor name, excluding the scale suffix.
Throws
  • ValueException for incompatible metadata, shapes or invalid values.
  • IOException for failed or truncated reads.
Example

matrix = QuantizedMatrix(Path("model.safetensors"), "lm_head.weight")