Without more details, we can’t help you. You shouldn’t reach those memory levels, you are probably loading the full dataset before iterating over it. Please refer to this post : DataLoader increases RAM usage every iteration