generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing the token_ids as instruction_template in DataCollatorFo…
…rCompletionOnlyLM (#749) * Update utils.py * correctly assign instruction_template in DataCollatorForCompletionOnlyLM * correctly use instruction_token_ids in DataCollatorForCompletionOnlyLM * DataCollatorForCompletionOnlyLM: fix instruction_template / response_template type check: handle cases where instruction_template is None * make precommit * Test DataCollatorForCompletionOnlyLM with pre-tokenized instruction_template
- Loading branch information
Showing
2 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters