Documentation

progressive

Progressive corpus loading models.

Classes

class

ProgressiveLoadResult

(BaseModel)

Complete progressive loading results.

Attributes

NameTypeDescription
cf_memory_by_steplist[float] | None—
cf_scalingScalingAnalysis | None—
corpora_orderlist[str]—
max_corporaint—
num_runsint—
stepslist[ProgressiveLoadStep]—
tf_memory_by_steplist[float] | None—
tf_scalingScalingAnalysis | None—

Methods

get_steps_by_impl(self, implementation: Literal[('TF', 'CF')]) → list[ProgressiveLoadStep]

Get steps for a specific implementation.

Parameters
  • implementation: Literal[('TF', 'CF')]
get_steps_by_run(self, run_id: int) → list[ProgressiveLoadStep]

Get steps for a specific run.

Parameters
  • run_id: int
to_dict(self) → dict

Convert to JSON-serializable dictionary.

to_json(self) → str

Serialize to JSON string.

class

ProgressiveLoadStep

(BaseModel)

Single step in progressive loading test.

Attributes

NameTypeDescription
corpora_loadedlist[str]—
corpus_addedstr—
cumulative_load_time_sfloat—
implementationLiteral[('TF', 'CF')]—
incremental_rss_mbfloat—
run_idint—
stepint—
step_load_time_sfloat—
total_rss_mbfloat—

Methods

to_dict(self) → dict

Convert to JSON-serializable dictionary.

class

ScalingAnalysis

(BaseModel)

Linear scaling analysis results.

Attributes

NameTypeDescription
implementationLiteral[('TF', 'CF')]—
intercept_mbfloat—
predicted_10_corpora_mbfloat—
predicted_50_corpora_mbfloat—
r_squaredfloat—
slope_mb_per_corpusfloat—

Methods

to_dict(self) → dict

Convert to JSON-serializable dictionary.