The invention discloses a question and answer method, a question and answer big model training method, related equipment and a program product, a configured question and answer big model can extract middle
hidden layer state features of question data, a mode
signal representing a reasoning mode adapted to the question data can be generated based on the middle
hidden layer state features, and exemplarily, the method is simple and convenient to implement, and the efficiency is high. A short CoT reasoning mode can be generated for a simple problem, a long CoT reasoning mode can be generated for a complex problem, and then the middle
hidden layer state features and the generated mode signals can be transmitted backwards for subsequent hidden layer reasoning to generate response information of problem data. Compared with a strategy of a fixed reasoning mode, the method has the advantages that reasoning accuracy can be guaranteed, reasoning efficiency can be improved, and
resource utilization can be optimized.