In this article
Transposing the right operand does not imply transposing its scale tensor; logical scale axes, physical packing, and numeric format need separate descriptions.
Treat microscaling as a coupled representation
The dot_scaled API combines operand values with scale tensors and explicit format labels. This is more than a conventional matrix product whose inputs happen to occupy fewer bytes. Values, scale groups, and packing axes jointly describe the represented numbers. A wrapper that handles ordinary transposition correctly can still misinterpret a microscaled operand if it moves scales using the same generic rule as the data matrix.
Preserve the right-hand scale convention
For a right operand with logical shape [K,N], the API documents scale shape [N,K//group_size] and explicitly instructs callers not to transpose that scale tensor. The scale indexing follows output-column and reduction-group roles. It is therefore not simply the same orientation as the operand matrix. Preserve the documented logical convention when constructing a kernel input rather than inferring scale axes from the visible order of a separately stored operand buffer.
Separate physical preshuffling
The block-scaled multiplication tutorial explains physical scale layouts prepared for hardware access and their logical reshaping for the language operation. The cuBLAS scaling-layout documentation provides another concrete library contract. These layouts should not be declared interchangeable without conversion. Physical contiguity for an instruction and the logical tensor shape accepted by an API describe different layers of the representation.
Diagnose a transpose-wrapper failure
Suppose a port keeps operand values intact but produces incorrect output after a generic helper transposes both the right matrix and its scales. Use distinct scale groups and nonuniform values to expose the association error. Compare dequantized logical values with a reference before comparing the final product. Also record the operand packing-axis flags when applicable. Equal byte counts or compatible ranks cannot prove that scale groups still apply to the intended value vectors.
Version formats and layout together
Record format labels, operand logical shapes, packing axes, scale-group convention, physical scale storage, and backend revision. Guides to tensor strides and mixed-precision accumulation provide context. Validate the represented numbers before benchmarking hardware acceleration. The API also documents evolving emulation behavior for unsupported native paths, so identify the actual backend rather than assuming every successful dot_scaled invocation executed the same instruction family or numerical preparation.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.