mirror of
https://github.com/deepseek-ai/DeepSeek-MoE.git
synced 2026-11-05 00:57:43 +00:00
[GH-ISSUE #28] finetune后的模型输出异常 #27
Labels
No labels
pull-request
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-MoE#27
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 @JustQJ on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-MoE/issues/28
按照提供的finetune.py脚本在alpaca数据上微调后,使用下面的代码测试模型,输出有多余的
<|EOT|>符号,请问怎么纠正去掉这些符号,谢谢。测试代码:
模型输出:
@zwd003 commented on GitHub (Mar 1, 2024):
你好,可以将换成eos这个special_token
@JustQJ commented on GitHub (Mar 1, 2024):
不好意思,没有理解什么意思,请问将什么换成eos,是指在生成时将tokenizer中的eos_token换成
<|EOT|>,还是在训练时将<|EOT|>换成tokenizer中的eos_token@zwd003 commented on GitHub (Mar 4, 2024):
换成tokenizer中的eos_token
@JustQJ commented on GitHub (Mar 4, 2024):
好的,谢谢