CUDA out of memory when using Trainer with compute_metrics

Thank you for this answer! It helped me a lot!