deepseek-ai / DeepSeek-Math

DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
MIT License
783 stars 46 forks source link

apply_chat_template()报错,请问如何修改代码 #16

Open FreeYiran opened 5 months ago

FreeYiran commented 5 months ago

image

DejianYang commented 5 months ago

你的transformers的版本是多少?我们这边使用的是4.35, 具体用法如下: apply_chat_template([{'role': 'user', 'content': xx}], ...)