在模型的tokenizer_config.json的chat_template 里面最尾加上以下代码

<think>\n\n</think>
 

加上之后程序会认为已经思考了,从而不再输出思考过程。
以下是对比结果:


 

更多推荐