Worth noting is that line 32 in loss.py is the if statement. Also, machine CPU/memory usage is here (memory usage differs from the ps -aux logs above because they are from different jobs):
image2840×1284 271 KB