mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1387
Author: @profvjreddi
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/labs-1332-polish📝 Commits (1)
3690a6efix(labs): lab_02 part A option alignment + extract tabs-cell widgets (#1332)📊 Changes
17 files changed (+205 additions, -91 deletions)
View changed files
📝
labs/vol1/lab_02_ml_systems.py(+25 -19)📝
labs/vol1/lab_04_data_engr.py(+12 -5)📝
labs/vol1/lab_05_nn_compute.py(+13 -6)📝
labs/vol1/lab_06_nn_arch.py(+10 -4)📝
labs/vol1/lab_07_ml_frameworks.py(+12 -5)📝
labs/vol1/lab_08_model_train.py(+12 -6)📝
labs/vol1/lab_09_data_selection.py(+11 -5)📝
labs/vol1/lab_10_model_compress.py(+8 -1)📝
labs/vol1/lab_11_hw_accel.py(+10 -3)📝
labs/vol1/lab_12_perf_bench.py(+9 -2)📝
labs/vol1/lab_13_model_serving.py(+13 -6)📝
labs/vol1/lab_14_ml_ops.py(+12 -5)📝
labs/vol1/lab_15_responsible_engr.py(+12 -5)📝
labs/vol1/lab_16_ml_conclusion.py(+14 -7)📝
labs/vol2/lab_02_compute_infra.py(+10 -4)📝
labs/vol2/lab_03_communication.py(+11 -4)📝
labs/vol2/lab_04_data_storage.py(+11 -4)📄 Description
what
two follow-ups to the #1332 sweep, now closing out everything concrete in Peter's report.
1. lab_02 Part A options now match the hardware registry
the scenario claimed "6x compute increase" and marked option D (<1.1x speedup) correct. actual
mlsysim.Hardware:at AI=5 both GPUs are deeply memory-bound so the speedup collapses to the BW ratio (1.64x, not <1.1x). peter observed exactly this in #1332: ''Latency improvement value / speedup calculations are a bit mismatched. Selecting 1.1x above leads to a correct 1.64 result below.''
aligned to reality:
memory_wall_correctcheck, key-takeaway text, roofline ''ideal Nx'' annotation all updated2. extracted 42 widgets from tabs cells into their own widget cells
every
mo.ui.*still defined inside a tabs cell body got moved into a new@app.cellimmediately before it, with the widget name added to the tabs cell signature. 16 labs, 42 widgets. this is what @asgalon asked for in lab_02 (''move partD_data_size and partD_wireless one cell up'') extended to every lab that had the same shape.done via a mechanical codemod (lived at /tmp/extract_tabs_widgets.py, not committed - single-shot utility).
audit results
test plan
labs/tests/test_static.py+test_engine.py: 825 passed 4 skipped 1 xfailedmarimo checkon lab_05, lab_10, lab_16, vol2/lab_03: exit 0addresses remaining #1332 items. the browser smoke from #1374 will continue to guard against regressions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.