mirror of
https://github.com/deepseek-ai/DeepSeek-R1.git
synced 2026-11-05 00:47:42 +00:00
[GH-ISSUE #151] Duplicate bos tokens after using tokenizer.apply_chat_template and tokenize #123
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-R1#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yanyongyu on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/151
I'm trying to use deepseek-ai/DeepSeek-R1-Distill-Qwen-7B, the
add_bos_tokenoption in the tokenizer_config istrue. After applying chat template and tokenization, there are two bos tokens in the input ids.I notice that the
add_bos_tokenoption has been changed twice in the commit b640c47 and 4831ee1. I'm not sure if the behavior is as expected and whether affects the inferencing and training process.Re-produce code:
@Adam-fei commented on GitHub (Feb 10, 2025):
Hello,I met the same issue.
Have you resolve this problem?
I see. You should modify the
tokenizer_config.json. Changeadd_bos_tokenfrom true to falseBut I don't understand why it is true by default.
@github-actions[bot] commented on GitHub (Apr 7, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
@github-actions[bot] commented on GitHub (May 9, 2025):
false