I have isolated the evaluation step and it still runs out of memory in the same way, despite of the training step. I don’t understand though why the evaluation step would use more memory than the training.