llmcompressor.utils.metric_logging
Utility functions for metrics logging and GPU memory monitoring.
This module provides functions for tracking GPU memory usage, measuring model layer sizes, and comprehensive logging during compression workflows. Supports both NVIDIA and AMD GPU monitoring with detailed memory statistics and performance metrics.
Classes:
-
CompressionLogger–Log metrics related to compression algorithm
CompressionLogger
Log metrics related to compression algorithm
Parameters:
-
–start_ticktime when algorithm started
-
–lossesloss as result of algorithm
-
–gpu_typedevice manufacturer (e.g. Nvidia, AMD)
-
–visible_idslist of device ids visible to current process