The embodiment of the invention provides an
assembly line optimization method and device for multi-
modal large model training, and relates to the technical field of
artificial intelligence. According to the method, each model slice of a to-be-trained multi-
modal large model is deployed to different training devices, each training batch is divided into a plurality of micro-batches, for each training batch, training sequences corresponding to different training devices are determined according to a
parallel scheduling strategy, and the training sequences are used for training the multi-
modal large model. The training sequence comprises a
forward propagation position, an input back propagation position and a weight back propagation position of each micro-batch, and finally, on each training device, a training process of a corresponding training batch is executed based on the training sequence until training is completed. A back propagation process is divided into back propagation of an input matrix and back propagation of a weight matrix, three calculation stages are jointly formed by the back propagation process and
forward propagation, peak shifting calculation can be carried out, bubble time can be effectively filled, idle duration can be reduced, the bubble proportion of an
assembly line can be remarkably reduced, and training
throughput can be greatly improved.