Skip to content

Add pretokenizer utility#3654

Merged
shahules786 merged 3 commits into
mainfrom
add_pretokenizer
Aug 15, 2023
Merged

Add pretokenizer utility#3654
shahules786 merged 3 commits into
mainfrom
add_pretokenizer

Conversation

@andreaskoepf

@andreaskoepf andreaskoepf commented Aug 15, 2023

Copy link
Copy Markdown
Collaborator

The pretokenizer utility (pretokenizer/pretokenize.py) allows to tokenize datamixes in advance for use with the epfLLM/Megatron-LLM/ trainer.

The datamix configuration can be defined in a yaml file similarly to the classic training configurations of trainer_sft.py. For loading the datasets the functions from model_training are used (therefore the model_training module needs to be installed).

@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 f182486 into main Aug 15, 2023
@shahules786
shahules786 deleted the add_pretokenizer branch August 15, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants