model_analyzer/config/input/config_command_profile.py
def _fill_config(self):
        """
        Builder function makes calls to add config to 
        fill the config with options
        """

        self._add_config(
            ConfigField(
                'config_file',
                field_type=ConfigPrimitive(str),
                flags=['-f', '--config-file'],
                description="Path to Config File for subcommand 'profile'."))
        self._add_config(
            ConfigField(
                'checkpoint_directory',
                flags=['--checkpoint-directory', '-s'],
                default_value=DEFAULT_CHECKPOINT_DIRECTORY,
                field_type=ConfigPrimitive(str,
                                           validator=parent_path_validator),
                description=
                "Full path to directory to which to read and write checkpoints and profile data."
            ))
        self._add_config(
            ConfigField(
                'monitoring_interval',
                flags=['-i', '--monitoring-interval'],
                field_type=ConfigPrimitive(float),
                default_value=DEFAULT_MONITORING_INTERVAL,
                description=
                'Interval of time between metrics measurements in seconds'))
        self._add_config(
            ConfigField(
                'duration_seconds',
                field_type=ConfigPrimitive(int),
                flags=['-d', '--duration-seconds'],
                default_value=DEFAULT_DURATION_SECONDS,
                description=
                'Specifies how long (seconds) to gather server-only metrics'))
        self._add_config(
            ConfigField(
                'use_local_gpu_monitor',
                field_type=ConfigPrimitive(bool),
                flags=['--use-local-gpu-monitor'],
                default_value=DEFAULT_USE_LOCAL_GPU_MONITOR,
                description=
                'Specify whether GPU metrics should be monitored by local DCGM monitor. '
                'If this flag is set, model analyzer will query metrics directly via DCGM.'
            ))
        self._add_config(
            ConfigField(
                'collect_cpu_metrics',
                field_type=ConfigPrimitive(bool),
                flags=['--collect-cpu-metrics'],
                default_value=DEFAULT_COLLECT_CPU_METRICS,
                description='Specify whether CPU metrics are collected or not'))
        self._add_config(
            ConfigField(
                'gpus',
                flags=['--gpus'],
                field_type=ConfigListString(),
                default_value=DEFAULT_GPUS,
                description="List of GPU UUIDs to be used for the profiling. "
                "Use 'all' to profile all the GPUs visible by CUDA."))

        self._add_repository_configs()
        self._add_client_configs()
        self._add_profile_models_configs()
        self._add_perf_analyzer_configs()
        self._add_triton_configs()
        self._add_run_search_configs()

        Builder function makes calls to add config to 
        fill the config with options
        
Builder function makes calls to add config to
fill the config with options
Builder function makes calls to add config to fill the config with options
def _fill_config(self):
        self._add_config(
            ConfigField(
                'config_file',
                field_type=ConfigPrimitive(str),
                flags=['-f', '--config-file'],
                description="Path to Config File for subcommand 'profile'."))
        self._add_config(
            ConfigField(
                'checkpoint_directory',
                flags=['--checkpoint-directory', '-s'],
                default_value=DEFAULT_CHECKPOINT_DIRECTORY,
                field_type=ConfigPrimitive(str,
                                           validator=parent_path_validator),
                description=
                "Full path to directory to which to read and write checkpoints and profile data."
            ))
        self._add_config(
            ConfigField(
                'monitoring_interval',
                flags=['-i', '--monitoring-interval'],
                field_type=ConfigPrimitive(float),
                default_value=DEFAULT_MONITORING_INTERVAL,
                description=
                'Interval of time between metrics measurements in seconds'))
        self._add_config(
            ConfigField(
                'duration_seconds',
                field_type=ConfigPrimitive(int),
                flags=['-d', '--duration-seconds'],
                default_value=DEFAULT_DURATION_SECONDS,
                description=
                'Specifies how long (seconds) to gather server-only metrics'))
        self._add_config(
            ConfigField(
                'use_local_gpu_monitor',
                field_type=ConfigPrimitive(bool),
                flags=['--use-local-gpu-monitor'],
                default_value=DEFAULT_USE_LOCAL_GPU_MONITOR,
                description=
                'Specify whether GPU metrics should be monitored by local DCGM monitor. '
                'If this flag is set, model analyzer will query metrics directly via DCGM.'
            ))
        self._add_config(
            ConfigField(
                'collect_cpu_metrics',
                field_type=ConfigPrimitive(bool),
                flags=['--collect-cpu-metrics'],
                default_value=DEFAULT_COLLECT_CPU_METRICS,
                description='Specify whether CPU metrics are collected or not'))
        self._add_config(
            ConfigField(
                'gpus',
                flags=['--gpus'],
                field_type=ConfigListString(),
                default_value=DEFAULT_GPUS,
                description="List of GPU UUIDs to be used for the profiling. "
                "Use 'all' to profile all the GPUs visible by CUDA."))
        self._add_repository_configs()
        self._add_client_configs()
        self._add_profile_models_configs()
        self._add_perf_analyzer_configs()
        self._add_triton_configs()
        self._add_run_search_configs()
def _fill_config ( self ) : self . _add_config ( ConfigField ( 'config_file' , field_type = ConfigPrimitive ( str ) , flags = [ '-f' , '--config-file' ] , description = "Path to Config File for subcommand 'profile'." ) ) self . _add_config ( ConfigField ( 'checkpoint_directory' , flags = [ '--checkpoint-directory' , '-s' ] , default_value = DEFAULT_CHECKPOINT_DIRECTORY , field_type = ConfigPrimitive ( str , validator = parent_path_validator ) , description = "Full path to directory to which to read and write checkpoints and profile data." ) ) self . _add_config ( ConfigField ( 'monitoring_interval' , flags = [ '-i' , '--monitoring-interval' ] , field_type = ConfigPrimitive ( float ) , default_value = DEFAULT_MONITORING_INTERVAL , description = 'Interval of time between metrics measurements in seconds' ) ) self . _add_config ( ConfigField ( 'duration_seconds' , field_type = ConfigPrimitive ( int ) , flags = [ '-d' , '--duration-seconds' ] , default_value = DEFAULT_DURATION_SECONDS , description = 'Specifies how long (seconds) to gather server-only metrics' ) ) self . _add_config ( ConfigField ( 'use_local_gpu_monitor' , field_type = ConfigPrimitive ( bool ) , flags = [ '--use-local-gpu-monitor' ] , default_value = DEFAULT_USE_LOCAL_GPU_MONITOR , description = 'Specify whether GPU metrics should be monitored by local DCGM monitor. ' 'If this flag is set, model analyzer will query metrics directly via DCGM.' ) ) self . _add_config ( ConfigField ( 'collect_cpu_metrics' , field_type = ConfigPrimitive ( bool ) , flags = [ '--collect-cpu-metrics' ] , default_value = DEFAULT_COLLECT_CPU_METRICS , description = 'Specify whether CPU metrics are collected or not' ) ) self . _add_config ( ConfigField ( 'gpus' , flags = [ '--gpus' ] , field_type = ConfigListString ( ) , default_value = DEFAULT_GPUS , description = "List of GPU UUIDs to be used for the profiling. " "Use 'all' to profile all the GPUs visible by CUDA." ) ) self . _add_repository_configs ( ) self . _add_client_configs ( ) self . _add_profile_models_configs ( ) self . _add_perf_analyzer_configs ( ) self . _add_triton_configs ( ) self . _add_run_search_configs ( )
Builder function makes calls to add config to
fill the config with options
Builder function makes calls to add config to fill the config with options
"""
        Builder function makes calls to add config to 
        fill the config with options
        """
self