Quantisation & model size
See what quantisation does to model size, then quantise a single weight to INT8 by hand — scale, zero-point and the rounding error you pay.
Predict first
Commit to a guess before you touch anything. Being wrong here is how it sticks.
A 60 M-parameter model in FP16 (2 bytes/param). How many MB of weights?
Experiment
Move the controls and watch the outputs. Goals tick off automatically when you reach them.
Model size by precision
Weights only — activations, the runtime and the batch add memory at inference.
Quantise one weight
Explain it
Put what you saw into words. This is what the exam will ask you to do.
How does Grad-CAM explain a CNN's prediction, and how should you audit a vision model for bias?
Code it
Write real code against real data. Python and SQL run right here in your browser and hidden tests check your work; the AI reviews it like an examiner.
Grad-CAM from activations and gradients
Write grad_cam(A, G) for activations A and gradients G of shape C × H × W:
alpha_k= mean ofG[k]over the spatial dimensions (global average pooling);- heatmap =
ReLU(Σ_k alpha_k · A[k]); - normalise to [0, 1] by dividing by the maximum (if it's > 0).
Return the H × W heatmap and say in a comment why the ReLU is there.
Challenge
Fixed variations, a new problem every day, and unlimited AI challenges built from your current settings.
FP32 Weight Memory Footprint
A vision model has 25 million parameters. How many MB (1 MB = 10⁶ bytes) do its weights occupy in FP32?