0.3 Compute setup
1. Learn
Section titled “1. Learn”- Kaggle Notebooks documentationsections "The Notebook editor", "Accelerators" (GPU) and "Usage limits"
2. Bridge
Section titled “2. Bridge”Parts 0–2 run on any laptop CPU or right in this page. From module 3.7 (a ResNet on CIFAR-10) onward, some tasks need a GPU. The course is designed so that a free Kaggle notebook is enough for every required task. Paid compute is always optional.
A Kaggle notebook is a Jupyter notebook running on Kaggle’s machines. You turn on a GPU under the notebook’s accelerator setting. The free GPU time is limited by a weekly quota and a maximum session length, and the docs’ Usage limits section has the current numbers (Kaggle Notebooks docs). Two habits keep you inside the quota: develop and debug on CPU with a tiny slice of the data, and only switch the GPU on for the real run. Files written in an interactive session disappear when it ends, unless you turn on Persistence in the notebook’s settings. For a long run, use Save Version → Save & Run All: it runs in the background and keeps what you write to /kaggle/working as the version’s output, so save checkpoints there (Kaggle Notebooks docs).
Each GPU task in the course ships as a ready-to-run notebook in the repo’s notebooks/ folder (this module’s is 0.3-gpu-check.ipynb). You upload it to Kaggle (File → Import notebook), turn the GPU on, and run it. Google Colab works too, with the same notebooks.
Why a GPU at all? A GPU runs thousands of simple arithmetic operations in parallel, and neural networks are mostly large matrix multiplications, the most parallel workload there is (How to Scale Your Model, part 1). The notebook below measures the gap on your own session. Module 5.1 explains where the speed comes from.
3. Explore
Section titled “3. Explore”There is no widget for this module: the notebook is the experiment.
- Make a free Kaggle account and open Code → New Notebook.
- Import
notebooks/0.3-gpu-check.ipynbfrom the repo. - Turn on a GPU accelerator and run every cell.
- The last cell prints
glassbox-gpu-okwith the GPU name and the measured matmul speed-up over the CPU.
Tick both items below when you have seen it.
5. Check
Section titled “5. Check”- not yet: Checkpoint quiz ≥ 80%
Learner log: time spent and points of confusion
Every confusion you note becomes a fix before the module is marked stable. Export it from the progress page and attach it to an issue.