Skip to main content

Scenarios Zoo

Calculation Contracts and Reference Statistics

Scenarios.* contains reusable calculation settings and named workload/system cases. The scenario domain reference documents their class contracts: inputs, equations, assumptions, exclusions, calculated properties, and examples. The generic Scenario class provides a composed scorecard; calculation scenarios expose their own properties or solver results. Choosing a Python API explains the distinction. Use Classes A–Z when you already know a type name.

NoteRegistry Scale

mlsysim.Scenarios ships 923 executable scenario configurations across training, serving, compression, networking, reliability, sustainability, agentic harnesses, and cyber-physical robotics (indexed in Scenarios by Domain). mlsysim.ReferenceStats ships 207 sourced non-executable comparison anchors across 43 thematic sub-namespaces.

Use Hardware.* for devices, Systems.* for composed physical systems, Infrastructure.* for facility and grid facts, and Ops.* for operational policies. A reusable calculation selects these facts and supplies its declared workload assumptions. These categories apply across all textbook volumes.

Reference statistics (ReferenceStats.*)

The tables below highlight representative ReferenceStats.* sub-namespaces, followed by a complete index of all registered ReferenceStats namespaces. Provenance records where each reference number came from, while its registry path records what kind of fact it is.

Workload scale anchors (ReferenceStats.Workloads)

Entry Value Description
ChatGPT prompts per day 2500000000.0 Prompts ChatGPT receives from users worldwide each day, July 2025 (OpenAI to Axios).
Gmail emails per day 121000000000.0 Approximate daily Gmail volume.
Google searches per day 13700000000.0 Lower bound from Google’s disclosure of more than 5 trillion searches a year (2025).
Waymo sensor data rate (high) 19.0 TB/h Upper-bound AV sensor data generation rate.
Waymo sensor data rate (low) 1.0 TB/h Lower-bound AV sensor data generation rate.

Clinical imaging anchors (ReferenceStats.ClinicalImaging)

Entry Value Description
Retinal screening image size 40000000.0 Reference size for one retinal screening photograph in the rural-clinic workflow.

Energy comparison anchors (ReferenceStats.EnergyAnchors)

Entry Value Description
Boiling a cup (~250 mL) of water 100000 J Approximate energy to bring one cup (~250 mL) of water to a boil.
Smartphone full charge 40000 J Approximate energy to fully charge a smartphone battery.
US household annual electricity 10.7 MWh Rounded annual electricity use baseline for one average US household-year.

Emissions comparison anchors (ReferenceStats.EmissionsAnchors)

Entry Value Description
Transatlantic round-trip passenger CO₂e 1000.0 One economy passenger, New York to London and return (kg CO₂e).

Training scale profiles (ReferenceStats.TrainingScaleProfiles)

Entry Value Description
Scaling efficiency (1024 GPUs) 0.83 Modeled for the 175B reference job; pipeline fill and drain become visible (~6% of step).
Scaling efficiency (256 GPUs) 0.87 Modeled for the 175B reference job at a fixed GPT-3 batch; tensor-parallel communication is the main loss.
Scaling efficiency (32 GPUs) 0.9 Book convention for small jobs; the 175B reference job needs 64 GPUs per TP8xPP8 replica, so this tier is not modeled.
Scaling efficiency (8192 GPUs) 0.57 Modeled for the 175B reference job at a fixed GPT-3 batch; pipeline bubble dominates (~33% of step). Production runs with larger batches and interleaved pipelines retain more (MegaScale).
Per-accelerator compute efficiency 0.45 Fraction of peak each accelerator achieves on its local compute before communication losses.

Storage training corpus (ReferenceStats.StorageTrainingCorpus)

Entry Value Description
Storage running-example checkpoint bytes per parameter 112.0 Resumable mixed-precision Adam checkpoint footprint: FP16 weights, FP32 master weights, and two FP32 moments; gradients excluded.
Storage running-example checkpoint interval 10 min Reference checkpoint interval for checkpoint-count examples.
Storage running-example compressed source corpus 24000000000000.0 Compressed source corpus size for the storage running example.
Storage running-example training step time 200 ms Reference per-step compute time the input pipeline must keep fed.
Storage running-example token ID width 32.0 Serialized token-ID width for the tokenized corpus.
Storage running-example tokenized shard size 24000000000.0 Reference size of one tokenized training shard file.
Storage running-example tokenized corpus 48000000000000.0 Derived serialized token-ID corpus size for one epoch.
Storage running-example training tokens 1500000000000.0 Reference token count for the 175B-model storage running example.
Storage running-example training window 30 d Reference training-window duration for checkpoint-count examples.

Mobile power envelopes (ReferenceStats.MobilePower)

Entry Value Description
Background adaptation power budget (high) 1000 mW Upper bound for background on-device adaptation power.
Background adaptation power budget (low) 500 mW Lower bound for background on-device adaptation power.
Mobile ML burst power (high) 10 W Upper bound for brief smartphone ML burst processing.
Mobile ML burst power (low) 5 W Lower bound for brief smartphone ML burst processing.
Mobile ML sustained power (high) 3 W Upper bound for sustained smartphone ML processing.
Mobile ML sustained power (low) 2 W Lower bound for sustained smartphone ML processing.
Mobile NPU peak power 4 W Higher-bound mobile inference power envelope.
Mobile NPU typical power 3 W Typical sustained power for on-device mobile inference.
Object-detector power 2 W Reference power draw of an always-on object-detection workload.

Phone battery anchors (ReferenceStats.PhoneBattery)

Entry Value Description
Phone battery capacity 3000 mAh Typical flagship smartphone battery charge capacity.
Phone battery energy (capacity x voltage) 39960.0 J Battery energy derived from capacity x voltage.
Flagship phone battery energy 15 h·W Modern flagship smartphone battery pack energy rating.
Phone battery voltage 3.7 V Nominal Li-ion cell voltage.

All ReferenceStats Sub-Namespaces

Namespace Entries Representative Item
ReferenceStats.AnomalyModel 3 Auc
ReferenceStats.CarbonPlacementProfile 1 TrainingRunEnergy
ReferenceStats.CheckpointArchetypes 5 Dense20BTransformerCheckpointSize
ReferenceStats.ClinicalImaging 1 RetinalPhotoSize
ReferenceStats.ClusterTcoProfile 6 Reference10KAnnualStaffing
ReferenceStats.CollectiveCommunicationProfile 2 GradientBuffer
ReferenceStats.DataParallelScalingProfile 3 PerGpuBatch
ReferenceStats.EdgeAdaptationTierProfile 26 BudgetDeviceMemoryLimit
ReferenceStats.EdgeDeviceSpectrum 16 ArduinoNano33BleFlash
ReferenceStats.ElasticResizeProfile 9 FullGpus
ReferenceStats.EmissionsAnchors 1 TransatlanticRoundTripCo2Kg
ReferenceStats.EnergyAnchors 3 BoilingWater
ReferenceStats.FacilityScaleAnchors 2 HyperscaleCampusPower
ReferenceStats.FleetEvolution 3 AlgorithmGain
ReferenceStats.FleetUtilizationSnapshot 3 AssignedShare
ReferenceStats.ForcedPreemptionProfile 2 LostWork
ReferenceStats.MidScaleTrainingCarbonProfile 1 TrainingDays
ReferenceStats.MixedPrecisionAdam 3 CheckpointBytesPerParameter
ReferenceStats.MobilePower 9 BackgroundAdaptationHigh
ReferenceStats.ModelLoading 4 PcieSwapReferenceModelSize
ReferenceStats.NetworkEconomicsProfile 3 ClusterCapex
ReferenceStats.OuraSleepStudy 8 AccelOnlyAccuracy
ReferenceStats.PhoneBattery 4 CapacityMah
ReferenceStats.PhysicalAI 32 Buses
ReferenceStats.PhysicalAIBuses 6 CanFdJitter
ReferenceStats.PhysicalAICompute 4 EdgeMemoryBandwidthOrin
ReferenceStats.PhysicalAIKinematics 4 BlindTravelRate10mps
ReferenceStats.PhysicalAIRates 9 ChunkHi
ReferenceStats.PhysicalAISafety 4 HumanFatalCrashMiles
ReferenceStats.PhysicalAIThermal 5 TauBatteryPack
ReferenceStats.ProfilerTraceProfile 2 NsightTracePerGpu
ReferenceStats.RecommenderAtScaleProfile 5 EmbeddingTableSize
ReferenceStats.ReplicaColdStartProfile 3 ArtifactFetchBandwidth
ReferenceStats.ServingProfiles 15 CircuitBreakerErrorThreshold
ReferenceStats.SpotInterruptionProfile 3 CheckpointOverhead
ReferenceStats.StorageTrainingCorpus 9 CheckpointBytesPerParameter
ReferenceStats.TextTokenization 1 WordsPerToken
ReferenceStats.TorchvisionParameterCounts 3 MobileNetV2
ReferenceStats.TrainingCostAnchors 3 Gpt2Cost2019
ReferenceStats.TrainingScaleProfiles 5 Eff1024Gpu
ReferenceStats.UtilizationTierProfile 3 ActiveEquivalents
ReferenceStats.WaterAnchors 2 UsHouseholdAnnualWaterHigh
ReferenceStats.Workloads 5 ChatGptPromptsPerDay

Python Access

import mlsysim

eff_1024 = mlsysim.ReferenceStats.TrainingScaleProfiles.Eff1024Gpu
retinal_photo = mlsysim.ReferenceStats.ClinicalImaging.RetinalPhotoSize
flight_kg = mlsysim.ReferenceStats.EmissionsAnchors.TransatlanticRoundTripCo2Kg
household_year = mlsysim.ReferenceStats.EnergyAnchors.USHouseholdAnnualElectricity
corpus_tokens = mlsysim.ReferenceStats.StorageTrainingCorpus.TrainingTokens
checkpoint_interval = mlsysim.ReferenceStats.StorageTrainingCorpus.CheckpointInterval
Back to top