tech Debug
CUDA Out of Memory: What Actually Works (And Why empty_cache() Doesn't)
CUDA OOM errors have five common root causes: oversized batch, gradients accumulating in the computation graph, unreleased intermediate tensors, multi-GPU imbalance, and memory fragmentation. Correct diagnosis beats adding empty_cache() every time.