How To Let Lightning Automatically Figure Out Batch Size Lightning is a lightweight PyTorch wrapper for high-performance AI research that reduces the boilerplate without limiting flexibility.