One of the metrics that can be used to detect if a machine learning model is overfitting is looking at the loss function while training. A very small loss function usually indicates that overfitting is taking place and can be used to determine when to stop the training process.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence