using A100(40G)*8 gpus server to train T5-3b,it reports OOM resource is exhausted problem

Author: flyingwatersCreated Aug 10, 2022Updated Jun 6, 2023

Why ?I used model:8 batch 1 settings and 8 batchsize {input:1024, output:512}, there is still a OOM。 But I see Pytorch can train T5-3b at V100 32G * 8 , whether It was caused by Mesh-tensorflow‘s less efficient than deepspeed?? I want to figure out the problem?? actually I want use T5 because Tensorflow is easy for deployment. Why deepspeed can train larger model than mesh_tensorflow????

Source: google-research/text-to-text-transfer-transformer