What is the correct way to compute metrics while training using Accelerate?

Hi,

Can someone please tell me the correct method to compute metrics while training a model using accelerator library?

I tried to use a general AverageMeter method, but when I checked the metrics with a single-GPU method, it is not matching. Please advise.

1 Like