OpenMOSS / OpenMOSS/MOSS

训练代码中的eos_token_id设置疑问

Open
#195 0 comments 0 reactions 0 assignees View on GitHub

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重新设置的目的是什么,我没看懂后面的解释

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.