IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Python class

ProfilingConfig

ProfilingConfig

class max.pipelines.ProfilingConfig(*, config_file=None, section_name=None, gpu_profiling='off')

source

Bases: ConfigFileModel

Configuration for GPU profiling of pipeline models.

Parameters:

  • config_file (str | None)
  • section_name (str | None)
  • gpu_profiling (Literal['off', 'on', 'detailed'])

gpu_profiling

gpu_profiling: GPUProfilingMode

source

Whether to enable GPU profiling of the model.

model_config

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'strict': False}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_post_init()

model_post_init(context, /)

source

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:

  • self (BaseModel) – The BaseModel instance.
  • context (Any) – The context.

Return type:

None