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', profiling_enabled=False, profiling_output_path=None, profiling_dynolog_enabled=True, profiling_warmup_steps=0, profiling_active_steps=10, profiling_periodic_flush_seconds=60)
Bases: ConfigFileModel
Configuration for the GPU (NVTX/Nsight) and libkineto/HTA profilers.
-
Parameters:
gpu_profilingβ
gpu_profiling: GPUProfilingMode
Whether to enable GPU profiling of the model.
model_configβ
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'strict': False}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_post_init()β
model_post_init(context, /)
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
profiling_active_stepsβ
profiling_active_steps: int
Reserved; step-windowed capture is not yet implemented.
profiling_dynolog_enabledβ
profiling_dynolog_enabled: bool
Whether the Dynolog IPC listener is active. On by default.
profiling_enabledβ
profiling_enabled: bool
Master switch for the libkineto-backed profiler.
profiling_output_pathβ
Trace output path; file or directory.
profiling_periodic_flush_secondsβ
profiling_periodic_flush_seconds: int
Crash-safe flush cadence.
profiling_warmup_stepsβ
profiling_warmup_steps: int
Reserved; step-windowed capture is not yet implemented.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!