byteShapeToQuantShape

Convert a physical byte shape back to a logical element shape.

Inverse of quantShapeToByteShape. The last dimension (byte row size) must be a multiple of the type size. It is replaced by (byteRow / typeSize) * blockSize.

Example: Q4_K with byte shape 32, 144 → 32, 256

Return

Logical element dimensions

Parameters

byteShape

Physical byte dimensions

quantType

The quantization format

Throws

if the last dimension is not aligned to type size