Neural Thermodynamic Laws for Large Language Model Training