mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-21 21:43:04 -05:00
[PR #1676] [MERGED] fix(lab11): correct Part E Tiling Dividend answer key from option C to option D #10223
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/1676
Author: @Shashank-Tripathi-07
Created: 5/5/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/lab11-part-e-tiling-answer📝 Commits (1)
a1172ccfix(lab11): correct Part E answer key from option C to D (10x tiling speedup)📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
labs/vol1/lab_11_hw_accel.py(+1 -1)📄 Description
Summary
In Lab 11 Part E (The Tiling Dividend), the answer key marks option C (~2-4x) as correct when the formula in the same cell computes a ~10x speedup -- matching option D.
Root cause
Lines 900-909 compute the FlashAttention tiling speedup at defaults (seq_len=4096, tile=256, d=128):
The displayed
{_speedup:.1f}xstat card therefore shows 10x, but the answer key at line 959 checkedpE_pred.value == "2_4"(option C), so selecting the answer that matches the computed and displayed value would incorrectly show the "wrong answer" callout.Fix
One line change -- no formula or option text modified.
Verification
At seq_len=4096 with tile=256: select option D (~10x) -- green "Correct" callout now fires. All other options correctly show the "wrong answer" callout.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.