qbcompiler.configs.models.CompileConfig Class Reference#
|
Mobilint SDK qb Compiler v1.4
MCS002-EN
|
Public Member Functions |
Static Public Attributes |
Static Protected Member Functions |
List of all members
qbcompiler.configs.models.CompileConfig Class Reference
Unified compilation configuration for Mobilint MXQ compilation. More...
Inheritance diagram for qbcompiler.configs.models.CompileConfig:
Public Member Functions | |
| "CompileConfig" | with_uint8_input (self, **kwargs) |
| Return a copy with uint8_input settings enabled. | |
| "CompileConfig" | with_preprocessing (self, **kwargs) |
| Return a copy with preprocessing settings enabled. | |
| "CompileConfig" | with_hessian_quant (self, **kwargs) |
| Return a copy with hessian_quant settings enabled. | |
| "CompileConfig" | with_bias_correction (self, **kwargs) |
| Return a copy with bias_correction settings enabled. | |
| "CompileConfig" | with_mod (self, **kwargs) |
| Return a copy with mod settings enabled. | |
| "CompileConfig" | with_llm (self, **kwargs) |
| Return a copy with llm settings enabled. | |
| "CompileConfig" | with_search_weight_scale (self, **kwargs) |
| Return a copy with search_weight_scale settings enabled. | |
| "CompileConfig" | with_load_scale (self, **kwargs) |
| Return a copy with load_scale settings enabled. | |
| "CompileConfig" | with_save_sample (self, **kwargs) |
| Return a copy with save_sample settings enabled. | |
| "CompileConfig" | with_extra_output (self, **kwargs) |
| Return a copy with extra_output settings enabled. | |
| "CompileConfig" | from_file (cls, Union[str, Path] path) |
| Load config from YAML or JSON file. | |
| "CompileConfig" | from_preset (cls, str name) |
| Load config from a preset. | |
| None | to_file (self, Union[str, Path] path) |
| Save config to YAML or JSON file. | |
Static Protected Member Functions | |
| dict | _flatten_grouped_json (dict data) |
| Flatten grouped JSON keys (e.g. | |
| dict | _group_to_json (dict data) |
| Group flat keys back into nested JSON structure (inverse of _flatten_grouped_json). | |
Detailed Description
Unified compilation configuration for Mobilint MXQ compilation.
Member Function Documentation
◆ with_uint8_input()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_uint8_input | ( | self, | |
| ** | kwargs ) |
◆ with_preprocessing()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_preprocessing | ( | self, | |
| ** | kwargs ) |
◆ with_hessian_quant()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_hessian_quant | ( | self, | |
| ** | kwargs ) |
◆ with_bias_correction()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_bias_correction | ( | self, | |
| ** | kwargs ) |
◆ with_mod()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_mod | ( | self, | |
| ** | kwargs ) |
◆ with_llm()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_llm | ( | self, | |
| ** | kwargs ) |
◆ with_search_weight_scale()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_search_weight_scale | ( | self, | |
| ** | kwargs ) |
◆ with_load_scale()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_load_scale | ( | self, | |
| ** | kwargs ) |
◆ with_save_sample()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_save_sample | ( | self, | |
| ** | kwargs ) |
◆ with_extra_output()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.with_extra_output | ( | self, | |
| ** | kwargs ) |
◆ from_file()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.from_file | ( | cls, | |
| Union[str, Path] | path ) |
◆ _flatten_grouped_json()
|
staticprotected |
◆ from_preset()
| "CompileConfig" qbcompiler.configs.models.CompileConfig.from_preset | ( | cls, | |
| str | name ) |
◆ _group_to_json()
|
staticprotected |
◆ to_file()
| None qbcompiler.configs.models.CompileConfig.to_file | ( | self, | |
| Union[str, Path] | path ) |
Member Data Documentation
◆ model_config
|
static |
◆ model_paths
|
static |
◆ calib_data_path
|
static |
◆ save_paths
|
static |
◆ use_random_calib
|
static |
◆ inference_scheme
|
static |
◆ cpu_offload
|
static |
◆ force_npu_input_reposition
|
static |
◆ force_npu_output_reposition
|
static |
◆ optimize_option
|
static |
◆ buffer_mode
|
static |
◆ device
|
static |
◆ dtype
|
static |
◆ debug
|
static |
◆ trace
|
static |
◆ image_channels
|
static |
◆ config_version
|
static |
◆ split_blocks
|
static |
◆ split_parts
|
static |
◆ uint8_input
|
static |
◆ preprocessing
|
static |
◆ resource_management
|
static |
◆ calibration
|
static |
◆ bit
◆ hessian_quant
|
static |
◆ bias_correction
|
static |
◆ mod
◆ llm
◆ moe
◆ equivalent_transformation
|
static |
◆ search_weight_scale
|
static |
◆ load_scale
|
static |
◆ runtime_options
|
static |
◆ save_sample
|
static |
◆ extra_output
|
static |
The documentation for this class was generated from the following file:
Generated by