The invention discloses a
hybrid expert network training method, device and equipment and a
computer program product, experts in a
hybrid expert layer are equally divided into a plurality of groups and equally distributed to a plurality of pieces of equipment, and different pieces of equipment share the same routing module. In the training process, for an input
hidden layer sequence of the mixed expert layer, the
score of each path of experts is calculated through a routing module, for each
expert group, activation experts in the group are selected according to the scores of the experts in the group, the number of the activation experts in different groups is the same, and each
expert group processes the complete
hidden layer sequence. And
processing the input
hidden layer sequence by the activation experts in each
expert group to obtain the output of the activation experts, and obtaining the output of the
hybrid expert layer based on the output of each activation expert. According to the method and the device, absolute balance of calculation among the devices is ensured, and the effect of the model is not influenced by drop-pad (namely data discarding and 0 filling).