deepseek-ai / DeepSeek-Math

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

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

Open FreeYiran opened 8 months ago

FreeYiran commented 8 months ago

image

DejianYang commented 7 months ago

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