训练代码中的eos_token_id设置疑问
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
老师还,感谢开源工作!有个问题,
finetune_moss.py文件中第178行将tokenizer.eos_token_id重新设置的目的是什么,我没看懂后面的解释

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with finetune_moss.py around line 178 and read the surrounding explanation and tokenizer setup. Trace where tokenizer.eos_token_id is used in the training flow, then document the purpose of resetting it so the original question is answered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100