aitune.utils.monitoring.parse_metrics
aitune.utils.monitoring.parse_metrics
Hardware metrics parsing and summary.
Module Contents
Functions
API
Recursively format a backend label with per-level indentation.
Split a params string on commas at the top nesting level only.
Format a compact backend label for multi-line table display.
Each top-level parameter is placed on its own indented line. Nested config objects are formatted recursively with increased indentation.
Example::
TensorRTBackend(use_dynamo=False,quantization_config=ONNXQuantizationConfig(precision=‘int8’)) -> TensorRTBackend( use_dynamo=False, quantization_config=ONNXQuantizationConfig( precision=‘int8’ ) )
Labels with no parameters (e.g. TorchEagerBackend()) or without
parentheses are returned unchanged.
Get a formatted summary of hardware metrics (memory, utilization, power) per module and backend.
Extract memory usage summary per module and backend (max values in GB).
Extract power usage summary per module and backend (mean and max in W).
Extract utilization summary per module and backend (mean and max in %).