Skip to content

Instantly share code, notes, and snippets.

@mlelarge
mlelarge / grade_hw3.py
Created March 23, 2026 21:27
HW3 llm-efficiency auto-grading
#!/usr/bin/env python3
"""
Self-grading script for LLM Efficiency homework.
Parses your test output files and computes your grade.
Usage: python self_grade.py
This script does NOT run any code. It reads the output files
produced by test_and_submit.sh (in results/ or results_manual/)
and computes your score.
@mlelarge
mlelarge / grade_hw2.py
Created March 23, 2026 21:05
HW2 controlled-generation auto-grading
#!/usr/bin/env python3
"""Compute your grade from the test_and_submit log file.
Usage:
1. Run ./test_and_submit.sh (this produces a test_and_submit_YYYYMMDD_HHMMSS.log)
2. Run: python grade_student.py
The script automatically finds the latest test_and_submit_*.log in the
current directory and parses the pytest results for each part.
@mlelarge
mlelarge / check_grade.py
Last active March 23, 2026 18:22
Grading Flash-Attention
#!/usr/bin/env python3
"""
Check your grade for the Flash Attention homework.
Usage — run from the root of your repository:
python check_grade.py # uses existing test_results.xml
python check_grade.py --run-tests # runs pytest first, then grades
"""
@mlelarge
mlelarge / kmeans_broadcast.ipynb
Created April 25, 2023 13:56
kmeans_broadcast.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mlelarge
mlelarge / learn_cosinus.ipynb
Created January 24, 2023 23:25
learn_cosinus.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mlelarge
mlelarge / mnist_download.ipynb
Created March 3, 2021 16:07
MNIST_download.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mlelarge
mlelarge / 01_intro_dldiy_colab.ipynb
Created January 8, 2019 18:55
01_intro_DLDIY_colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mlelarge
mlelarge / 01_intro_dldiy_colab.ipynb
Created January 8, 2019 11:32
01_intro_DLDIY_colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.