16773 Commits
Author SHA1 Message Date
Vijay Janapa Reddi 9cbb4cd381 Document currency unit grouping rule 2026-06-01 12:06:32 -04:00
Vijay Janapa Reddi d4896dcb8c Pin units for auto-scaled LEGO formatters 2026-06-01 12:02:12 -04:00
Vijay Janapa Reddi aa4f4167d0 Make LEGO output names assert display units 2026-06-01 11:52:10 -04:00
Vijay Janapa Reddi f1bf612895 Make currency output names explicit 2026-06-01 11:24:46 -04:00
Vijay Janapa Reddi 990adfdbbf Tighten LEGO math layout and unit grouping 2026-06-01 11:19:22 -04:00
Vijay Janapa Reddi 3847958f9a Harden LEGO currency formatting 2026-06-01 11:00:14 -04:00
Vijay Janapa Reddi 1f4c16fa89 Migrate LEGO outputs to semantic formatters 2026-06-01 09:49:47 -04:00
Vijay Janapa Reddi 53169381ec Add semantic unit formatters and close LEGO unit warnings 2026-06-01 08:57:19 -04:00
Vijay Janapa Reddi a71464d108 Document LEGO unit hardening verification 2026-06-01 07:09:46 -04:00
Vijay Janapa Reddi 771911d1e0 Apply LEGO unit discipline across chapters 2026-06-01 07:08:36 -04:00
Vijay Janapa Reddi a0b719c1d4 Harden LEGO unit audit gates 2026-06-01 07:08:06 -04:00
Vijay Janapa Reddi d53c0b1c52 Add MLSysIM unit formatting anchors 2026-06-01 07:07:50 -04:00
Vijay Janapa Reddi 8a4bc970e6 Default fmt_percent and range helpers to auto precision.
precision=None delegates to _resolve_display_precision so integer-like
percentages no longer hit the spurious-trailing-zero guard at render time.
2026-05-31 19:37:29 -04:00
Vijay Janapa Reddi e7c3f7e34f Fix TFLOP/s per W rate integrity and add L011 lint rule.
GpuEfficiencyTrajectoryRecap now divides Pint quantities through OUTPUT;
L011 blocks magnitude-ratio rate reattachment without preserved denominators.
2026-05-31 19:35:08 -04:00
Vijay Janapa Reddi e6a3636bfa Close prose-units gate: scoped checker and sustainable_ai pilot.
Teach book_check_lego_prose_units to flag only closed-export duplicate units;
fix sustainable_ai OUTPUT/prose contract and pass 81/81 QMD files (G3).
2026-05-31 19:34:00 -04:00
Vijay Janapa Reddi 5c2d9bfcd2 Fix L014 closed-name fmt detection and refresh honest baseline.
The linter silently missed *_unit_str = fmt(...) assignments; replace the broken
space-strip check with L014_CLOSED_FMT and allowlist 81 known cases until 8½-B.
2026-05-31 19:28:18 -04:00
Vijay Janapa Reddi 89c287556f Enable lego-units as a default binder validation scope.
CI validate-dev now runs the LEGO unit linter on every push automatically.
2026-05-31 19:16:00 -04:00
Vijay Janapa Reddi 1270f364d1 Fix LEGO closure regressions across Vol I and Vol II.
Repair glued cell fences, carbon_from_energy usage, lint-driven unit fixes,
and comment headers so headless exec passes on all 81 content files.
2026-05-31 19:15:28 -04:00
Vijay Janapa Reddi f1bbdfd9ed Exempt Pint USD in LEGO cells from currency prose check.
Also recognize fmt_sci_qty and range helpers as canonical formatters, and allow
fmt_math on _str exports when building LaTeX-safe inline values.
2026-05-31 19:15:07 -04:00
Vijay Janapa Reddi 758e5ddfce Clear lego-units lint debt and add closure codemods.
Zero the warning baseline, retire L017 false positives, add L019 blocking and
lint tests, and ship codemods for glued fences and bulk lint fixes.
2026-05-31 19:13:23 -04:00
Vijay Janapa Reddi 60710adadd Promote L019 to block .m_as() and refresh lint baseline post-migration.
Adds error-severity L019, --write-baseline, and fixes six regressions
(NS→nanosecond, Waymo closed-fixed names); baseline now 411 warnings.
2026-05-31 19:02:36 -04:00
Vijay Janapa Reddi 76f3f8f606 Migrate Vol II chapters and appendices from .m_as() to .to().magnitude.
Fixes US-vs-USD fabric latency, fmt_emissions auto-scale precision, and
fmt_power unit pinning; full Vol II LEGO exec test passes.
2026-05-31 18:58:52 -04:00
Vijay Janapa Reddi 0fa88d8715 Migrate Vol I remaining chapters from .m_as() to .to().magnitude.
Covers model_compression through conclusion plus Vol I appendices; fixes
byte-vs-Bparam and missing USD/kg/param imports surfaced by exec tests.
2026-05-31 18:58:47 -04:00
Vijay Janapa Reddi 9548af10e4 Add bulk .m_as() migration script and mark Step 14+ complete.
The script converts LEGO .m_as(unit) to .to(unit).magnitude with guards for
US (microsecond), byte vs Bparam, and comment-only leftovers.
2026-05-31 18:58:43 -04:00
Vijay Janapa Reddi 071a2f8f94 data_selection.qmd: complete Layer C LEGO unit migration
Quantity-first .to(unit).magnitude across 29 LEGO cells including
storage bandwidth and Llama2 training FLOP estimates.
2026-05-31 18:52:52 -04:00
Vijay Janapa Reddi 3b8d7eb576 training.qmd: complete Layer C LEGO unit migration
Bulk quantity-first migration across 54 LEGO cells; zero .m_as()
remain after .to(unit).magnitude conversion including USD rates.
2026-05-31 18:52:10 -04:00
Vijay Janapa Reddi 35d5c6519e frameworks.qmd: complete Layer C LEGO unit migration
Replace all .m_as() with .to(unit).magnitude across 32 LEGO cells
including ridge-point, memory footprint, and PCIe bandwidth calcs.
2026-05-31 18:51:33 -04:00
Vijay Janapa Reddi 716539efc4 nn_architectures.qmd: complete Layer C LEGO unit migration
Replace all .m_as() with quantity-first .to(unit).magnitude across
36 LEGO cells including lighthouse roster, KV cache, and throughput calcs.
2026-05-31 18:50:41 -04:00
Vijay Janapa Reddi 48cd0160a4 nn_computation.qmd: complete Layer C LEGO unit migration
Replace all .m_as() with .to(unit).magnitude across 35 LEGO cells;
quantity-first patterns for memory, parameter, and accelerator specs.
2026-05-31 18:40:09 -04:00
Vijay Janapa Reddi ba2c24dcc0 docs: update LEGO hardening progress through data_engineering
Record data_engineering.qmd completion; next queue item is nn_computation.
2026-05-31 18:39:01 -04:00
Vijay Janapa Reddi 3a78dea696 data_engineering.qmd: complete Layer C LEGO unit migration
Quantity-first EXECUTE/GUARD across all 33 LEGO cells including
DataGravity, FeedingProblem, RealtimeCost, StorageBandwidth, and
summary recaps; zero .m_as() remain.
2026-05-31 18:38:49 -04:00
Vijay Janapa Reddi b0e546e8fe docs: update LEGO hardening progress through ml_workflow
Record ml_systems and ml_workflow chapter completion on fmt-fix.
2026-05-31 18:36:02 -04:00
Vijay Janapa Reddi afb322c0e3 ml_workflow.qmd: complete Layer C LEGO unit migration
Quantity-first EXECUTE/GUARD for MobilenetSpecs, ConstraintPropagation,
BandwidthCompute, StorageCosts, and DeploymentEconomics; zero .m_as() remain.
2026-05-31 18:35:55 -04:00
Vijay Janapa Reddi ac0618fabf ml_systems.qmd: complete Layer C LEGO unit migration
Finish WildlifeMonitoring, BrakingDistance, and MobilePowerFallacyCalc;
chapter now has zero .m_as() in LEGO cells.
2026-05-31 18:35:12 -04:00
Vijay Janapa Reddi faa2531d22 ml_systems.qmd: ResNet pitfall and energy-per-inference cells
Quantity-first EnergyInference query ratios and fmt_qty energy outputs;
MobileResnetPitfallRecap uses param-scaled byte footprint.
2026-05-31 18:34:55 -04:00
Vijay Janapa Reddi 692941bb27 ml_systems.qmd: edge fleet TCO and mobile constraint cells
Quantity-first migration for EdgeSizingFleetTCO, BatteryTax,
ThermalQuantCalc, MobileBatteryCapacity, and MobileResourceRecap;
drop dead VoiceAssistantWall .m_as intermediates.
2026-05-31 18:34:12 -04:00
Vijay Janapa Reddi 720e057583 ml_systems.qmd: Layer C through MobileEfficiencyRecap
Quantity-first EXECUTE/GUARD and domain formatters for HardwareSpectrumSetup
through EdgeSizingThroughput; fixes DataLocality bit-bandwidth timing and
EdgeSizing flop-rate dimensionality.
2026-05-31 18:33:22 -04:00
Vijay Janapa Reddi 0ce0ad2618 Harden ml_systems Lighthouse and ResNet roofline LEGO cells.
Migrate EnergyTransmission, LighthouseModels, ResnetSetup, ResnetCloud, and ResnetMobile to quantity-first .to() conversions and registry-backed fmt_count outputs.
2026-05-31 18:25:01 -04:00
Vijay Janapa Reddi 33bc46cea5 Complete vol1 introduction LEGO unit hardening through WaymoStats.
Migrate VerificationGap through DeploymentSystems, ResNet50 D·A·M example, GPT3Training, ImageNetStats, ScenarioRegistry, and WaymoStats to .to() conversions with domain formatters; drop duplicate units in Waymo prose.
2026-05-31 18:24:12 -04:00
Vijay Janapa Reddi 92b0b3efb4 Harden vol1 introduction opening LEGO cells to quantity-first pattern.
Migrate AIMomentStats, GPT3WeightFootprint, and GPT3TrainingEnergy to .to() conversions with fmt_qty/fmt_memory/fmt_energy; drop duplicate GB unit in weights footnote.
2026-05-31 18:20:20 -04:00
Vijay Janapa Reddi ba03d8bdcb Harden sustainable_ai cooling, PUE, and mobile LEGO cells to quantity-first pattern.
Migrate MemoryHierarchy, MatMul, PueSavings, H100TdpCoolingRecap, rack-power recaps, mobile/on-device energy, and WakeWordPower to fmt_power/fmt_energy with registry LOADs; update progress ledger.
2026-05-31 18:19:38 -04:00
Vijay Janapa Reddi 9f9d64f09a book: migrate GridQueue and RackPowerBudget to quantity-first LEGO
Power cells use pint quantities for cluster/rack loads and fmt_power for closed exports.
2026-05-31 18:09:19 -04:00
Vijay Janapa Reddi 96397f8efe book: migrate embodied/inference lifecycle and H100TdpRackRecap cells
Cells: EmbodiedCarbonAmort, TrainingEmbodiedRecap, InferenceLifecycleExample,
TrainingEmissionsRecap, H100TdpRackRecap — quantity-first EXECUTE and domain formatters.
2026-05-31 18:08:22 -04:00
Vijay Janapa Reddi 3c4c8edbbd book: migrate AutoPlacement through TrainingEmissions to quantity-first LEGO
Cells: AutoPlacement, GpuEmissionsScenario, PueEfficiency, LifecycleCarbonEstimate,
TrainingEmissions, A100PowerScenario — registry/quantity LOAD, domain formatters, prose cleanup.
2026-05-31 18:07:14 -04:00
Vijay Janapa Reddi 49e1cff3c1 book: migrate CarbonCostGPT3 to registry-first quantity-first LEGO
LOAD pulls GPT-3 training energy and flight CO₂e from MLSysIM; EXECUTE uses
carbon_from_energy; OUTPUT uses fmt_energy/fmt_emissions; prose drops duplicate units.
2026-05-31 18:01:39 -04:00
Vijay Janapa Reddi 17b7eca96d mlsysim: promote GPT-3 training energy to Quantity and add flight CO₂e anchor
training_energy_mwh is now a pint Quantity in the model registry; Literature
Sustainability holds the transatlantic round-trip CO₂e comparison anchor.
Vol1 cells that read GPT-3 training energy updated for Quantity LOAD.
2026-05-31 18:01:39 -04:00
Vijay Janapa Reddi 346afc94cd book: migrate ArchetypeATdp, CarbonFrontier, SustainableMobilePowerEnvelope to quantity-first LEGO
Pilot cells in sustainable_ai use fmt_power/fmt_energy/fmt_emissions and
physics helpers; prose drops duplicate unit suffixes where formatters carry them.
2026-05-31 17:53:07 -04:00
Vijay Janapa Reddi c37b99034e book: allow domain formatters in math check and scope lego-units to staged files
Pre-commit lego-units now lints only staged QMDs with per-file baseline so
parallel WIP does not block atomic migration commits; full-repo baseline remains for CI.
2026-05-31 17:53:05 -04:00
Vijay Janapa Reddi 15f2f22294 docs: add LEGO unit hardening progress ledger and LOAD registry-first plan
Track migration steps, Layer A′ registry-first rules, and per-cell fmt audit
notes for ongoing unit hardening work.
2026-05-31 17:48:13 -04:00
Vijay Janapa Reddi 8154f90099 book: add lego-units linter with warning-only baseline and CI hook
Wire lint_lego_units.py into binder check code --scope lego-units and
book-check-lego-units pre-commit with a committed warning baseline.
2026-05-31 17:47:25 -04:00