The application provides a model training method, a text summary generation method, a device, equipment and a medium. The method comprises the following steps: encoding a training text by using an
encoder in a summary generation model to obtain an encoded
hidden layer state; determining a second decoding
hidden layer state output this time by using a decoder in the summary generation model according to a first decoding
hidden layer state output last time and a corresponding first predicted word, or according to a set initial first decoding hidden layer state and a corresponding first predicted word; determining a decoding probability of a second predicted word according to the encoded hidden layer state and the second decoding hidden layer state; and training the summary generation model to maximize the decoding probability in response to the second predicted word being contained in annotated
summary information of the training text. Thus, the summary generation model is trained based on the decoding probability of each predicted word and whether each predicted word is contained in the annotated
summary information of the training text, so that the prediction effect of the model can be improved.