public DeviceQuantizedMatrix(path as Path, name as String, device as Device = Device.auto)
Loads one Q8 tensor without retaining the open file.
| Parameter | Description |
|---|---|
path | Klyn Q8 v1 shard. |
name | Tensor name. |
device | CPU/GPU selector; auto chooses a compatible GPU, otherwise CPU. |
matrix = DeviceQuantizedMatrix(Path("model.safetensors"), "lm_head.weight", Device.gpu[0])