Skip to content

Add dataset loader for MegaCodeTraining112k & Evol-Instruct-Code-80k-v1#3605

Merged
shahules786 merged 1 commit into
mainfrom
add_code_instruction_datasets
Jul 25, 2023
Merged

Add dataset loader for MegaCodeTraining112k & Evol-Instruct-Code-80k-v1#3605
shahules786 merged 1 commit into
mainfrom
add_code_instruction_datasets

Conversation

@andreaskoepf

@andreaskoepf andreaskoepf commented Jul 25, 2023

Copy link
Copy Markdown
Collaborator

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

@shahules786 shahules786 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shahules786
shahules786 merged commit bc5b70d into main Jul 25, 2023
@shahules786
shahules786 deleted the add_code_instruction_datasets branch July 25, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants