public class QuantizedMatrix
A packed Klyn Q8 matrix with row-local FP32 scales. Loading allocates only the INT8 weights and their scales, never a full floating copy. Explicit CPU primitives consume that representation directly; this class does not claim GPU execution or implement a complete language model.
matrix = QuantizedMatrix(Path("model-q8.safetensors"), "projection.weight")
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | columnscolumns as Long |
Input columns in the original weight matrix. |
| public readonly property | rowsrows as Long |
Output rows in the original weight matrix. |
| public readonly property | storageBytesstorageBytes as ULong |
Physical weight and scale bytes, excluding object headers. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | QuantizedMatrixQuantizedMatrix(path as Path, name as String) |
Loads and validates one rank-two matrix from a Klyn Q8 shard. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | embeddingCPU | Decodes selected embedding rows on the CPU, not the entire table. |
| public | multiplyCPU | Computes inputs times this weight matrix's transpose on the CPU. |