Fixed Patience system

This commit is contained in:
Christian Risi 2025-10-12 01:22:06 +02:00
parent f98f5a2611
commit 79438e3d30

View File

@ -332,6 +332,9 @@ while current_epoch < MAX_EPOCHS:
if counter > 1:
patience += 1
if counter == 0:
patience = max(0, patience - 1)
txt_train_avg_loss = sum(text_batch_losses) / len(text_batch_losses)