AutoTunerNvMMHConfig#

class tensorrt_llm.llmapi.AutoTunerNvMMHConfig(
*,
max_tactics: Annotated[int, Gt(gt=0)] = 5,
)[source]#

Bases: StrictBaseModel

nvMatmulHeuristics (nvMMH) guidance for the CuTe DSL GEMM/BMM autotuner.

CuTe DSL GEMM and BMM runners profile only the kernel configurations that nvMatmulHeuristics ranks highest for each problem shape, taking every field it models (CTA tile, cluster shape, split-K, rasterization order and swizzle) as returned, instead of profiling their full tactic space. max_tactics counts kernel configurations, not profiled tactics.

field max_tactics: Annotated[int, Gt(gt=0)] = 5#

Number of top-ranked nvMatmulHeuristics kernel configurations kept per GEMM/BMM shape. Each configuration expands into one tactic per combination of the knobs nvMatmulHeuristics does not model (e.g. SM107 prefetch, scheduler and mixed-cluster variants), so the number of profiled tactics can be several times max_tactics.

Constraints:
  • gt = 0

__init__(**data: Any) → None#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.