Closed bala1802 closed 2 years ago
Hi @bala1802 thank you for your question!
Here is a link form HuggingFace that let's you use early stopping: https://huggingface.co/transformers/main_classes/callback.html#transformers.EarlyStoppingCallback
Also, you could use PyTorchLightning: https://pytorch-lightning.readthedocs.io/en/latest/common/early_stopping.html
If there are enough people wanting this I can add it in the future.
Can you please add examples for earlystopping based on the loss metrics during the training?