Data Scenarios
Data preparation, selection, storage, and delivery.
Source locations
- Inputs and calculations:
mlsysim/engine/scenario_definitions/data.py. - Named configurations:
mlsysim/engine/scenario_catalog/data/. - Result schemas:
mlsysim/engine/result_types/data.py.
Public imports and existing class reference URLs remain stable.
Scenario contracts
- AcceleratorInputFeedScenario:
acceleratorscopies ofhardwaretrainingworkloadatsustained_ratesamples a second each, fed fromsupplywithencoded_samplebytes stored per sample anddecoded_samplebytes after decode. - ActiveLearningBudgetScenario: Active learning against a fixed label budget when scoring the pool is charged to the same budget.
- ActiveLearningRoundsScenario: Active learning from
initial_labelsaddinglabels_per_roundforroundsrounds, each round payinground_scoring_costto score the pool, against random labeling that needsrandom_labelsat the samelabel_price. - AdmissionOrderScenario: Independent admission checks (pass probability, slot time) run in each of
orders. - AllocationGrowthScenario: A compute-optimal allocation
X_opt ~ C^exponentwhen compute grows bycompute_multiple. - AlwaysOnDetectorTargetsScenario: An always-on detector’s product contract: what it must catch, how rarely it may wake falsely, what it may occupy on the device, and the data budget and schedule that must deliver it.
- AttemptGroupContrastScenario:
attemptsindependent attempts per fixture at each ofpass_rates. - BatchVersusStreamingIngestScenario: One event stream ingested by always-on streaming cores or by a batch job each hour.
- BudgetMatchedLabelingScenario: A
poolto label atlabel_priceunderbudget: random labeling spends the budget, active learning reaches the same quality withactive_labels. - CheckpointStormScenario: Every one of
replicaswritesworkload’s full resumable state through one ingest path. - CodecEpochScenario:
epoch_bytesdecompressed on the host each epoch forepochsepochs, at each codec’sdecode_rates. - CohortDispositionScenario: A finite cohort of attempts by disposition at a cutoff, its total cost, and the disposition that emits a learning artifact.
- ColumnProjectionScenario: A model that uses
columns_usedofcolumns_totalequal-size columns, read from a row or a columnar file. - CompressedReadScenario: Compressed shards read at
read_bandwidth, decoded on CPU cores at each codec’s output rate. - CoresetRunScenario:
workloadtrained forepochsoverdataseton onehardwareatutilization, against akeep_fractioncoreset scored by one forward pass ofworkloadorproxy. - CorpusDenominatorsScenario: A retained pool of record classes (records, stored tokens per record, selected target tokens per record);
focusis the class whose shares are read,admittedthe classes a route admits. - CorpusRepetitionScenario: A training
run(ClusterTrainingTimeScenario) set against the unique tokens of its workload’s own corpus. - CorpusTierScenario: An audio corpus (
dataset) kept on storage tiers atstorage_ratesand read atread_bandwidths. - CoverageFloorScenario: A
keep_fractioncoreset drawn without regard to class frompoolexamples, of whichrare_sharebelong to a rare class that needs at leastfloorexamples. - CurriculumScheduleScenario: A curriculum that reaches target in
curriculum_epochsagainstbaseline_epochsshuffled, with an optional linear warmup ofwarmup_epochs(epoch j serves j/W of the data). - DataBudgetScenario: A data budget split into
sharesby category; the labeling share buys labels atlabel_priceplusreview_overheadfor quality review. - DataCostBreakdownScenario: A supervised dataset’s bill:
acquisition,labelsatlabel_price,storage_byteskept forstorage_durationatstorage_rate, andrunstraining runs ofrun_timeeach onacceleratorsataccelerator_rate. - DataEchoingScenario: A host that prepares
host_ratesamples a second feeding an accelerator that consumesaccelerator_rate, overepochsofexamples, with each prepared sample usedecho_factortimes. - DataScalingReturnScenario: Growing a dataset from
base_examplestoscaled_examplesforaccuracy_gainpoints. - DataStallScenario: A batch delivered in
io_timeagainstcompute_timeof compute, in sequence or overlapped. - DesignTradeoffScenario: One design-space move of a knob from
baselinetoalternative, with an illustrative quality gain fromgain_lowtogain_high(fractions); costs scale byratio. - DuplicateRemovalScenario: Near-duplicate shares removed from
run’s corpus: the training time and energy each share returns, against one read of the corpus and the MinHash signatures of its documents. - FailureTriageScenario:
runstrajectories a month failing atfailure_rate, each probe’s attributed share, and a fine-tuning run on every failure ofworkloadondevicesxhardware. - FeatureLookupScenario: An online service at
request_ratethat readsreads_per_requeststored features per request. - HostIoCpuScenario:
deviceseach consumingrequests_per_devicereads per second, at each path’s CPU service time. - InformationComputeRatioScenario: Accuracy gained per training FLOP for one epoch over all of
datasetand over akeep_fractionsubset, withgain_fullandgain_subsetpoints of gain. - InputDemandScenario:
consumerseach readsamples_per_stepsamples perstep_timeof compute. - LabelGranularityScenario: Label entries for one image: a per-pixel mask against
boxesboxes ofcoords_per_box. - LabelingVersusTrainingScenario: A labeling budget against one training run:
epochsoverdataset_examplesatthroughput_per_acceleratoronaccelerators, priced at a low and a high hourly rate. - LaborEffortScenario:
itemslabeled by hand attime_per_itemeach: total hours and full-time person-years. - MinHashBandingScenario: A MinHash signature cut into
bandsbands ofrowshashes overshingle_words-word shingles. - ObjectStorageBillScenario: A dataset kept in object storage for a billing period and read
readstimes across a boundary. - PrefetchDepthScenario: Ready batches that cover each tier’s tail read, and host memory at a safety depth.
- PretrainingAmortizationScenario:
taskstasks trained from scratch atscratch_computeeach against one pretraining run ofpretrain_computeplusfinetune_computeper task, with the labels each path needs. - RunAmortizationScenario: A one-time investment of
build_costplusoperating_costthat savessaving_per_runon every training run that reuses its output. - RunSplitLeakageScenario:
attemptsruns per task, each assigned to training with probabilitytrain_fraction. - SelectionBudgetScenario: Selection that takes
selection_timeand leaves a subset that trains insubset_time, against full training infull_time(the selection inequality in hours). - SemiSupervisedCostScenario: A supervised baseline with
supervised_labelsandsupervised_computeagainst a semi-supervised run withssl_labelsandssl_compute, labels atlabel_price. - ShardPackagingScenario:
filessamples packaged intoshardslarge files on a file system rated atrated_bandwidth. - StagingBurstScenario: A collector of
rolloutsconcurrent rollouts feedingslotsverifiers, whose checks stall attimeout, with records charged atrecord_ceilingagainststore. - StorageFootprintScenario: What a training run of
workloadreads once, saves every interval, and archives. - StreamVsStageScenario: Stream every epoch from remote object storage, or stage the dataset locally once per run.
- SyntheticFootprintScenario: Generated samples with provenance metadata, read once per verification pass.
- TieredCacheScenario: A fast tier in front of a slow one: a stated hit rate, or capacity over a uniformly sampled corpus.
- TieredCheckpointScenario: One save of
workload’s state onfleet: local write per node, then a durable drain. - UtilizationLossScenario:
fleet’s accelerators billed atdevice_hour_ratewhile utilization falls.