qbcompiler.configs.models.ResourceManagementConfig Class Reference

qbcompiler.configs.models.ResourceManagementConfig Class Reference#

Mobilint SDK qb Compiler: qbcompiler.configs.models.ResourceManagementConfig Class Reference
Mobilint SDK qb Compiler v1.2
MCS002-KR
qbcompiler.configs.models.ResourceManagementConfig Class Reference

Configuration for resource management during model compilation. More...

Inheritance diagram for qbcompiler.configs.models.ResourceManagementConfig:

Classes

class  WeightMemory
 Weight memory management configuration. More...

Public Member Functions

"ResourceManagementConfig" with_updates (self, **kwargs)
 Return a copy with updated fields.

Static Public Attributes

 model_config
str weight_dtype
bool use_gpu_only_for_calibration
 WeightMemory
 default_factory
 alias

Detailed Description

Configuration for resource management during model compilation.

Controls GPU and memory management settings during the compilation process.

Parameters
weight_dtypestr. Weight data type for calibration (e.g., 'float32', 'float16')
use_gpu_only_for_calibrationbool. If True, use GPU only during the calibration phase
weight_memoryWeightMemory. Weight memory management configuration

Definition at line 87 of file models.py.

Member Function Documentation

◆ with_updates()

"ResourceManagementConfig" qbcompiler.configs.models.ResourceManagementConfig.with_updates ( self,
** kwargs )

Return a copy with updated fields.

Definition at line 136 of file models.py.

Member Data Documentation

◆ model_config

qbcompiler.configs.models.ResourceManagementConfig.model_config
static
Initial value:
= ConfigDict(
populate_by_name=True,
extra="forbid",
)

Definition at line 98 of file models.py.

◆ weight_dtype

str qbcompiler.configs.models.ResourceManagementConfig.weight_dtype
static
Initial value:
= Field(
default="float32",
alias="weightDtype",
description="Weight data type for calibration (e.g., 'float32', 'float16')",
)

Definition at line 103 of file models.py.

◆ use_gpu_only_for_calibration

bool qbcompiler.configs.models.ResourceManagementConfig.use_gpu_only_for_calibration
static
Initial value:
= Field(
default=True,
alias="useGPUOnlyForCalibration",
description="If True, use GPU only during the calibration phase",
)

Definition at line 108 of file models.py.

◆ WeightMemory

qbcompiler.configs.models.ResourceManagementConfig.WeightMemory
static

Definition at line 132 of file models.py.

◆ default_factory

qbcompiler.configs.models.ResourceManagementConfig.default_factory
static

Definition at line 133 of file models.py.

◆ alias

qbcompiler.configs.models.ResourceManagementConfig.alias
static

Definition at line 133 of file models.py.


The documentation for this class was generated from the following file: