Files
cs249r_book/mlsysim/docs/cli-reference.qmd
Vijay Janapa Reddi 54f35d847b Freeze registry models; fix the one mutation site; zoo UX
- frozen=True on all registry pydantic types (hardware, models,
  systems, infrastructure, datasets, platforms): registry entries are
  shared singletons read by every LEGO cell in a render — a stray
  assignment in any cell previously corrupted every downstream cell
  silently; it now raises ValidationError at the assignment site
- The freeze immediately caught the one real mutation site:
  SensitivitySolver's deepcopy-then-assign perturbation now builds
  modified copies via model_copy(update=...) instead
- mlsysim zoo: the CATEGORY argument --help always marked optional now
  actually is — omitting it renders both registries and exits 0
  (previously errored); contract test re-pinned, cli-reference updated

751 passed; training/ml_systems/distributed_training chapters execute
clean against frozen registries.
2026-06-06 11:08:18 -04:00

9.5 KiB