A PyTorch Lightning extension that enhances model experimentation with flexible finetuning schedules.
Project description
A PyTorch Lightning extension that enhances model experimentation with flexible finetuning schedules.
FinetuningScheduler is simple to use yet powerful, offering a number of features that facilitate model research and exploration:
- easy specification of flexible finetuning schedules with explicit or regex-based parameter selection
- implicit schedules for initial/naive model exploration
- explicit schedules for performance tuning, fine-grained behavioral experimentation and computational efficiency
- automatic restoration of best per-phase checkpoints driven by iterative application of early-stopping criteria to each finetuning phase
- composition of early-stopping and manually-set epoch-driven finetuning phase transitions
Setup
Step 0: Install from PyPI
pip install finetuning-scheduler
Step 1: Import the FinetuningScheduler callback and start finetuning!
from pytorch_lightning import Trainer
from finetuning_scheduler import FinetuningScheduler
trainer = Trainer(callbacks=[FinetuningScheduler()])
Get started by following the Finetuning Scheduler introduction which includes a CLI-based example or by following the notebook-based Finetuning Scheduler tutorial (link will be added as soon as it is released on the PyTorch Lightning production site).
Examples
Scheduled Finetuning For SuperGLUE
- Notebook-based Tutorial (link will be added as soon as it is released on the PyTorch Lightning production site)
- CLI-based Tutorial
Community
Finetuning Scheduler is developed and maintained by the community in close communication with the PyTorch Lightning team. Thanks to everyone in the community for their tireless effort building and improving the immensely useful core PyTorch Lightning project.
PR's welcome! Please see the contributing guidelines (which are essentially the same as PyTorch Lightning's).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for finetuning-scheduler-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f073fb7cb89e7ba4efe9f79079ea36859424589fcb1a4e61c3b70f96d58996f1 |
|
MD5 | 669cb0eb4d25049c66e7eb8bfb568b14 |
|
BLAKE2b-256 | 375076f3c4581167badda9b61a958ee6fe6aeccd81b181f2f917afa52c0eaea2 |
Hashes for finetuning_scheduler-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 155aed0fe4c5593741c8700a947c82df6765736a9263d17e4629a598b8622d83 |
|
MD5 | bd00f2060df409ace31259e90419cc52 |
|
BLAKE2b-256 | f6677bfc5e245864b395372c3f1fddcf5abba40dd996732cfba012e8ccfad2a9 |