v0.4.6
What's Changed
Early Stopping is Now Opt-In
patiencedefaults toNone— early stopping is disabled unless explicitly set. Previously it defaulted to15, silently terminating training for users who didn't opt in.EarlyStopperis only added to the training loop whenpatienceis provided.
current_patience on Trainer State
trainer.state.current_patiencenow tracks how many consecutive epochs have passed without a validation loss improvement, allowing real-time monitoring of early stopping progress.
Default Device Changed to "cpu"
Trainer,Evaluator, andget_devicenow default todevice="cpu"instead of"cuda", preventing an immediateValueErroron CPU-only machines. Users with GPUs should explicitly passdevice="cuda"ordevice="mps".
Full Changelog: v0.4.5...v0.4.6