19 Commits
Author SHA1 Message Date
Vijay Janapa Reddi 74f9ae3f14 Audit napkin math assumptions 2026-06-26 19:20:13 -04:00
Vijay Janapa Reddi 65946a02fe Polish Vol II SVG figures 2026-06-12 11:13:55 -04:00
Vijay Janapa Reddi 9c3dce60dc Delete the core/constants.py compat shim; migrate the whole corpus
No-backward-compat sweep, part 2. The module had been reduced to a
units-only re-export ('retired, do not add values'); per policy it is
now gone and every consumer reads the real home:

- 32 internal modules, the package __init__, and core/__init__ import
  core.units (physics modules keep their own physics/constants)
- 43 book chapters' LEGO cells migrated (star imports, named imports,
  and the appendix attribute style 'constants.VIDEO_*' -> units.*);
  lego_focal_verify confirms identical pass/flag state to pre-sweep
  (8 pre-existing structural flags, A/B-verified unchanged)
- tutorial/tools/test imports migrated (incl. binder test_units.py);
  book tests' legacy-symbol scanner treats a missing constants.py as
  'nothing defined'
- test_constants_allowlist.py rewritten as a deletion pin: the module
  (and any shim for it) must never return; core.units must keep the
  measurement surface (ureg, Q_, GB, BYTES_FP16, PRECISION_MAP, ...)
- test_mlsysim_registry_parity.py deleted: it compared registry values
  against legacy constants 'before deletion' — that migration is
  complete (registry gate list updated)
- Docs prose (DATA_MODEL, architecture, contributing) states the
  deletion instead of describing a retired shim

749 passed; binder registry gate green; star import intact.
2026-06-06 11:34:47 -04:00
Vijay Janapa Reddi 4c13bdde41 Tighten introduction margin label 2026-06-03 08:03:48 -04:00
Vijay Janapa Reddi 23d27dcf9c Add margin figure reader alignment audits 2026-06-02 14:28:04 -04:00
Vijay Janapa Reddi 92744a40bc Move margin figure tooling into Book Tools 2026-06-02 14:19:37 -04:00
Vijay Janapa Reddi 80521aab7f Align log ladder bars to value endpoints 2026-06-02 10:10:04 -04:00
Vijay Janapa Reddi 512eb3bd7e Label log-scaled margin ladders 2026-06-02 10:06:21 -04:00
Vijay Janapa Reddi ce50dcf30a Add leaders to ratio margin ladders 2026-06-02 09:55:40 -04:00
Vijay Janapa Reddi 775d851593 Add strict margin figure candidates 2026-06-02 09:41:29 -04:00
Vijay Janapa Reddi a928c144e5 Tighten margin figure caption discipline 2026-06-02 09:24:19 -04:00
Vijay Janapa Reddi 46bcf87d7c Polish margin figure label placement 2026-06-02 08:00:46 -04:00
Vijay Janapa Reddi feb1c20c65 Proof and inventory margin figures 2026-06-01 22:42:49 -04:00
Vijay Janapa Reddi 3b574c74b7 Refine margin figure placements and generation 2026-06-01 21:59:51 -04:00
Vijay Janapa Reddi 6ec64cca4f Polish margin figure system 2026-06-01 20:24:14 -04:00
Vijay Janapa Reddi 91b2ae5dc1 fix(book): correct misleading margin figures and harden generator
Visual QA of all 207 margin figures surfaced figures that contradicted
their own captions/labels. Fixes:

- 6 ladder inversions where bar length taught the opposite of the data
  (P99 vs mean, Image vs Text bandwidth, FHE vs AES latency, HBM vs
  register energy, training vs inference memory, radio vs arithmetic).
  Regenerated via margin_devices with consistent-unit / mlsysim SSOT
  values.
- 5 trend/threshold figures whose shape did not match the relationship
  (cloud-edge crossover, FPS collapse, burst-vs-sustained levels) plus
  two caption reframes (retraining knee, training power).
- 7 segmented-bar figures whose labels were truncated to 4 chars and two
  whose highlight contradicted the caption (egress, optimizer state);
  regenerated readable with full labels.
- 10 passive/meta captions rewritten as declarative takeaways.

Root cause hardened in generate_margin_figures.py: _parse_number now
unit-aware (ms vs s, MB/s vs GB/s, pJ vs nJ) instead of mis-reading the
first letter of a unit as a k/M/B/T multiplier; ironbar label cap raised
from 5 chars so words are no longer chopped.
2026-05-30 18:44:55 -04:00
Vijay Janapa Reddi 74860f3427 fix(book): clarify margin rooflines and thresholds 2026-05-30 17:05:52 -04:00
Vijay Janapa Reddi 64b466e548 feat(book): add curated margin figures 2026-05-30 16:49:16 -04:00
Vijay Janapa Reddi 6339322363 feat(book): add margin figure system 2026-05-30 14:54:58 -04:00