klyn.math.nn.quantization.GpuQuantizedMatrix.GpuQuantizedMatrix
constructor
public GpuQuantizedMatrix(path as Path, name as String, device as Device = Device.gpu)
Description

Loads one Q8 tensor without retaining the open file.

Parameters
ParameterDescription
pathKlyn Q8 v1 shard.
nameTensor name.
deviceGPU selector; auto chooses the first compatible GPU only.
Throws
  • ValueException for invalid format/device; IOException for failed reads.
Example

matrix = GpuQuantizedMatrix(Path("model.safetensors"), "lm_head.weight", Device.gpu[0])