Large language model reasoning method, device, equipment, storage medium and program product
Патент · CN B
Полный текст
The application provides a large language model reasoning method, device, equipment, storage medium and program product, and relates to the technical field of artificial intelligence. When the DCU executes the draft model reasoning task of the previous round, the CPU pre-distributes an input memory corresponding to the main model for the request batch of the current round, generates input data of the current round of the main model and copies the input data to the input memory corresponding to the main model, the input data represents the reasoning result of the previous round of the draft model by a placeholder, sends a first copying instruction and the main model reasoning task to the DCU, the first copying instruction is used for instructing the DCU to copy the reasoning result of the previous round of the draft model to the input memory to cover the placeholder, and checks the reasoning result of the current round of the main model under the condition that the reasoning result of the current round of the main model is obtained, and carries out reasoning of the next round according to the checking result. The problem of serial dependence of the CPU and the DCU computing task is solved, and the utilization rate of computing resources is improved.