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

ModelOptModuleQuant

ModelOptModuleQuant​

class max.pipelines.weights.ModelOptModuleQuant(quant_algo, group_size)

source

Bases: object

One entry of a modelopt quantized_layers map.

Parameters:

  • quant_algo (str)
  • group_size (int | None)

group_size​

group_size: int | None

source

Inputs covered by one weight scale, or None when not declared.

quant_algo​

quant_algo: str

source

The module’s algorithm, such as "FP8" or "W4A16_NVFP4".