compute-efficiencylisted
Install: claude install-skill TranBaDat2607/claude-code-kaggle-grandmaster
# Compute efficiency: more experiments per GPU-hour
Quota hours and runtime limits are fixed. A loop that runs twice as fast buys twice the experiments, and an
inference kernel that runs twice as fast can carry twice the ensemble. Treat speed work like any other experiment:
1. **Measure where the time goes** (section 2) before changing anything. Most slow Kaggle runs are input-bound
(4 CPU cores feed two T4s) or leave the GPU idle, and GPU-side tricks do nothing for either.
2. **Write the domain defaults in from the start** (section 1). They do not cost score.
3. **Change one thing, measure the speed-up, and check that the score holds** with a paired comparison on one fold.
fp16 overflow, a lower resolution, a shorter `max_len`, int4 weights or a different resize can all cost score.
## 1. Defaults by domain
Write these into every new training or inference script. The reference file for each domain has the how-to, the
conditions, and evidence from winning solutions.
| Domain | Defaults (always) | When measured, or when the data is large | Reference |
|---|---|---|---|
| Images, 3D volumes, video | AMP (fp16 + GradScaler on T4/P100, bf16 on Ampere+). `channels_last`. `cudnn.benchmark = True` for fixed input sizes. Inputs cached once as uint8 at the training resolution (npy/PNG/JPEG), never decoded from 2-4K images or DICOM every epoch. `num_workers` = CPU cores / processes, with `persistent_workers`. Fused AdamW. One fold per GPU on 2xT4 | augmentation and normalisat