PyTorch SDK for optimal learning rate selection
Top 38.7% on sourcepulse
This library provides a PyTorch implementation of the learning rate range test, a technique for identifying optimal learning rates for neural network training. It's designed for researchers and practitioners seeking to improve model convergence and stability by systematically exploring learning rate boundaries.
How It Works
The library offers two primary methods: an exponential increase in learning rate (similar to fastai) or a linear increase (Leslie Smith's original approach). The exponential method computes training loss per learning rate, while the linear method uses evaluation loss. The exponential method is faster, while the linear method can yield more precise curves by leveraging evaluation loss sensitivity to divergence.
Quick Start & Requirements
pip install torch-lr-finder
examples
folder.Highlighted Details
lr_finder.history
.Maintenance & Community
CONTRIBUTING.md
.Licensing & Compatibility
Limitations & Caveats
The README does not specify the license, which may impact commercial adoption. The effectiveness of mixed-precision training is dependent on specific NVIDIA GPU hardware.
1 month ago
1 day