public DeviceQuantizedMatrix(reader as SafetensorsReader, name as String, device as Device, buffer as Byte[] = null)
Loads through a shared descriptor reader; the caller owns and closes it. The reader is seeked and must not be shared concurrently.
| Parameter | Description |
|---|---|
reader | Validated open shard. |
name | Tensor name. |
device | CPU/GPU selector. |
buffer | Optional reusable upload block shared by a checkpoint loader. |
matrix = DeviceQuantizedMatrix(reader, "projection.weight", Device.gpu[0])