mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 18:01:20 -05:00
Module 19 - Benchmarking #510
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?
Originally created by @ngbolin on GitHub (Feb 22, 2026).
Hello,
As I was looking at the notes on Benchmarking, the following graph seems counterintuitive to me. Since the x-axis refers to latency, shouldn't the lines connecting A, B and C have a positive slope to capture the trade-off?
@ngbolin commented on GitHub (Feb 22, 2026):
In addition, there are 4 benchmark tasks listed in the notes, but writeups for only 3 were provided. Furthermore, anomaly detection falls within binary classification, so it should be included in the case where 2 random variables between 0 and 1 are generated i.e. np.rand(2).
@profvjreddi commented on GitHub (Feb 22, 2026):
Thanks @ngbolin for the feedback. Here’s what I changed:
You’re correct that with latency on the x-axis and accuracy on the y-axis, the Pareto frontier should have a positive slope. I swapped the points so C (low latency, low accuracy) is on the left and A (high latency, high accuracy) on the right.
I added the missing Image Classification task to the “Standard Benchmark Tasks” section.
Anomaly detection is binary (anomaly/normal), so I updated it to use np.random.rand(2) like keyword spotting and visual wake words.
I fixed the benchmark harness so it passes TinyTorch Tensors instead of numpy arrays and transposes image inputs from HWC to CHW for Conv2d. All four benchmarks now run with TinyTorch models.
Honestly, these need more testing. 😓
I was originally considering importing MLPerf Tiny to run the real benchmarks instead of this simplified implementation. If you have suggestions for validation or integration with the official suite, I’d appreciate them.
Changes are in feature/tinytorch-core (commits
335bad8cdthrough55007e1f6).@all-contributors please add @ngbolin as a contributor for ✍️ Doc,Code in TinyTorch
@github-actions[bot] commented on GitHub (Feb 22, 2026):
I've added @ngbolin as a contributor to tinytorch! 🎉
Recognized for: doc
Project: tinytorch (explicitly mentioned in comment)
Based on: @all-contributors please add @ngbolin as a contributor for ✍️ Doc,Code in TinyTorch
The contributor list has been updated in:
tinytorch/.all-contributorsrctinytorch/README.mdREADME.mdWe love recognizing our contributors! ❤️