If I understand the issue correctly, your training doesn’t stop at all?
If so, could you add print statements and make sure that the training loop is indeed executed and the code isn’t hanging at one point?