Model training method and apparatus based on hybrid parallelism manner, and device
AssigneeHuawei Technologies Co., Ltd.
InventorsFanxin LI, Shixiong ZHAO, Heming CUI, Sen WANG, Li CHEN, Gong ZHANG
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsFanxin LI, Shixiong ZHAO, Heming CUI, Sen WANG, Li CHEN, Gong ZHANG
Estimating the term…
This application discloses a model training method and apparatus based on a hybrid parallelism manner. In this method, a neural network model is divided into a plurality of pipeline stages, and each pipeline stage includes a plurality of sub-stages of the neural network model. Computing nodes corresponding to the plurality of pipeline stages are invoked in a hybrid parallelism manner according to a sequence of sub-stages in the neural network model. When iterative training is performed on a network layer in a corresponding pipeline stage, because sub-stages at same locations in adjacent pipeline stages are consecutive in the neural network model, the computing node does not need to wait for completion of forward propagation of a previous pipeline stage, and can perform forward propagation on the corresponding pipeline stage only after forward propagation of the 1st sub-stage in the previous pipeline stage is completed.
A model training method based on a hybrid parallelism manner, wherein the hybrid parallelism manner comprises a data parallelism manner and a pipeline parallelism manner, and the method comprises:
A model training apparatus, wherein the model training apparatus comprises a memory and a processor;
A non-transitory computer-readable storage medium, wherein the storage medium stores at least one piece of program code, and the at least one piece of program code, when read by a processor, cause the processor to:
Dependencies are inferred from the claim text.