预训练拼接不同文本之间是否加入了分隔符
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 176
- PR merge metrics
- No merged PRs in 30d
Description
看代码逻辑:首先遍历现有的批处理(self._inputs),计算每个批处理的剩余空间(space),并检查新数据(input_ids.shape[0])是否能够适应该剩余空间。如果能够适应,代码会更新best_fit和best_fit_space变量,以找到剩余空间最小且能容纳新数据的批处理。
问题:比如一个pack里有多个原始数据。那不同的数据有不同的任务,但是都一块被输入到模型中了,拼接不同文本之间是否加入了分隔符?
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
Trace the packing logic around self._inputs, space, input_ids.shape[0], best_fit, and best_fit_space. Verify how boundaries between original samples are represented in the packed input and check the relevant preprocessing or model-input tests; done means the repository behavior and delimiter handling are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100