CUDA out of memory when using Trainer with compute_metrics

Yes, and I have found that compute_metrics will save all the logits before move them from CUDA to memory, just as sgugger said:

Sorry for forgetting mark this question as SOLVED :slight_smile:

2 Likes