Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FreeYiran opened this issue Apr 3, 2024 · 1 comment
Open

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

FreeYiran opened this issue Apr 3, 2024 · 1 comment

Comments

@FreeYiran
Copy link

image

@DejianYang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants