Implement Hessian-aware rounding
CodingAdvanced⏱ 1 dayQuantizationgptqimplementationreconstruction error
Problem
Implement and evaluate layer-wise quantization.
- Implement round-to-nearest and the Hessian-aware sweep for a single linear layer.
- Compare reconstruction error on held-out activations across bit widths.
- Vary the input correlation and show the gap behaves as the theory predicts.
- Demonstrate the numerical failure of naive repeated rank-one updates and fix it with Cholesky.
Implement it, then check the implementation against something you can verify independently.
Write it
Solve it here5 tests · Python runs in your browser
⌘/Ctrl + ↵ to run · limit 30s · draft saved in this browser
5 tests will run against your code. The first run downloads the Python runtime — several megabytes, once per browser.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Implement backpropagation from scratch run | Deep Learning | Coding | 3 hours | ||
| Implement kernel ridge regression run | Classical ML | Coding | 1 hour | ||
| Implement multi-head attention from scratch run | Deep Learning | Coding | 3 hours | ||
| Implement power iteration and verify the convergence rate run | Foundations | Coding | 1 hour | ||
| Implement random projection and measure the distortion run | High-Dim Probability | Coding | 1 hour |