How to gather results from different process #2044
Unanswered
mrbeann
asked this question in
Community | Q&A
Replies: 2 comments 10 replies
-
Thanks for your feedback. I believe you should define your model in a torch.nn.Module class first. The code snippet is not a typical PyTorch Model. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to train a model with ColossalAI and want to calculate some metrics like accuracy. Thus, I record the predictions and truth as follows. But the results show it only contains single batch results. What should I do to get the correct results? (maybe something like
torch.distributed.all_gather
is needed?)Beta Was this translation helpful? Give feedback.
All reactions