IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

MXFP8Activation

MXFP8Activation​

class max.nn.common_layers.quant_tensor.MXFP8Activation(data, scales, scales_offset)

source

Bases: QTensor

MXFP8-quantized activation tensor, rows sorted by expert.

Parameters:

  • data (Tensor) – float8_e4m3fn tokens of shape [total_tokens, K].
  • scales (Tensor) – float8_e8m0fnu block scales, one per 32 values, in the padded SF-atom layout.
  • scales_offset (Tensor) – Per-expert offset into the padded scales.

data​

data: Tensor

source

scales​

scales: Tensor

source

scales_offset​

scales_offset: Tensor

source