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

FP8BlockActivation

FP8BlockActivation​

class max.nn.common_layers.quant_tensor.FP8BlockActivation(data, scales)

source

Bases: QTensor

FP8 block-quantized activation tensor.

Parameters:

  • data (Tensor) – float8_e4m3fn tokens of shape [total_tokens, K].
  • scales (Tensor) – float32 scales, one per (1, block_k) block.

data​

data: Tensor

source

scales​

scales: Tensor

source