Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dataset loader for MegaCodeTraining112k & Evol-Instruct-Code-80k-…
…v1 (#3605) Added code to load `rombodawg/MegaCodeTraining112k` (key: megacode) and `nickrosh/Evol-Instruct-Code-80k-v1` (key: evol_instruct_code). Also added an optional `fill_min_length` parameter to `InstructionDataset` class. If specified instructions are concatenate until the total string length of prompts and completions exceeds `fill_min_length`. Seed for random order can optionally be specified (default: 42). Example: ``` datasets: - megacode: fill_min_length: 24000 - evol_instruct_code: fill_min_length: 24000 ``` - updated transformers dependency to `==4.31.0`
- Loading branch information
1 parent
0c2fa4c
commit bc5b70d
Showing
2 changed files
with
53 additions
and
18 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