The invention discloses a
large model reasoning method and device, related equipment and a
computer program product, and relates to the field of
artificial intelligence, and the method comprises the steps: firstly obtaining a
problem statement of a to-be-processed problem, then judging whether a current node is a key node or not according to an input token of a current reasoning node in a chain reasoning process of a
large model based on the
problem statement, and if yes, judging whether the current node is the key node or not; and if not, performing compression
processing on the original output token of the previous node, and reasoning subsequent nodes based on a compression
processing result. According to the method, whether the reasoning nodes are critical or not is judged, and then the output token of the non-critical reasoning nodes is compressed during subsequent reasoning, so that the input data volume needing to be processed in the subsequent reasoning process is reduced, the subsequent
processing speed is increased, and optimization of the calculation efficiency of chain reasoning, particularly
long chain reasoning is facilitated.