Proper way to gather output from accelerate multi-gpu inference

I also encountered this issue… Could anyone give a solution?