qbcompiler.configs.models.SaveSampleConfig Class Reference

qbcompiler.configs.models.SaveSampleConfig Class Reference#

Mobilint SDK qb Compiler: qbcompiler.configs.models.SaveSampleConfig Class Reference
Mobilint SDK qb Compiler v1.1
MCS002-EN
qbcompiler.configs.models.SaveSampleConfig Class Reference

Sample data generation and saving configuration. More...

Inheritance diagram for qbcompiler.configs.models.SaveSampleConfig:

Public Member Functions

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

Static Public Attributes

 model_config
bool apply = Field(default=False, description="Enable sample data saving")
str mode
int batch_size
Any batch_seq_lens
str save_folder
str dtype

Detailed Description

Sample data generation and saving configuration.

Parameters
applybool. Enable sample data saving
modestr. Inference mode: infer (standard) or inferWithCache (LLM cache models)
batch_sizeint. Number of inference batches to generate
batch_seq_lensList. Per-batch step-wise sequence lengths for inferWithCache mode. e.g. [[80, 1], [240, 10]]
save_folderstr. Output folder for sample data
dtypestr. Data type for saved samples: float or int8

Definition at line 1389 of file models.py.

Member Function Documentation

◆ with_updates()

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

Return a copy with updated fields.

Definition at line 1430 of file models.py.

Member Data Documentation

◆ model_config

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

Definition at line 1401 of file models.py.

◆ apply

bool qbcompiler.configs.models.SaveSampleConfig.apply = Field(default=False, description="Enable sample data saving")
static

Definition at line 1406 of file models.py.

◆ mode

str qbcompiler.configs.models.SaveSampleConfig.mode
static
Initial value:
= Field(
default="infer",
description="Inference mode: infer (standard) or inferWithCache (LLM cache models)",
)

Definition at line 1407 of file models.py.

◆ batch_size

int qbcompiler.configs.models.SaveSampleConfig.batch_size
static
Initial value:
= Field(
default=1,
alias="batchSize",
description="Number of inference batches to generate",
)

Definition at line 1411 of file models.py.

◆ batch_seq_lens

Any qbcompiler.configs.models.SaveSampleConfig.batch_seq_lens
static
Initial value:
= Field(
default=[],
alias="batchSeqLens",
description="Per-batch step-wise sequence lengths for inferWithCache mode. e.g. [[80, 1], [240, 10]]",
)

Definition at line 1416 of file models.py.

◆ save_folder

str qbcompiler.configs.models.SaveSampleConfig.save_folder
static
Initial value:
= Field(
default="sampleInout",
alias="saveFolder",
description="Output folder for sample data",
)

Definition at line 1421 of file models.py.

◆ dtype

str qbcompiler.configs.models.SaveSampleConfig.dtype
static
Initial value:
= Field(
default="float", description="Data type for saved samples: float or int8"
)

Definition at line 1426 of file models.py.


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