Skip to content

llm pretrain#256

Merged
ftgreat merged 145 commits into
masterfrom
gpm_dev
Mar 21, 2023
Merged

llm pretrain#256
ftgreat merged 145 commits into
masterfrom
gpm_dev

Conversation

@ftgreat

@ftgreat ftgreat commented Mar 10, 2023

Copy link
Copy Markdown
Collaborator

name: Pull Request
title: '[PR]'
assignees: 'BAAI-OpenPlatform,ftgreat'


Description

Please describe here what the PR does.

Checklist

  • bug fixed
  • new feature provided
  • documentation updated
  • tests added

shunxing1234 and others added 30 commits January 4, 2023 14:47
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@github.com>
Signed-off-by: ftgreat <ftgreat@163.com>
trainer = EnvTrainer(env_args)

'''
trainer = Trainer(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove the unused codes

src = []
tgt = []

if enable_debug:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove debug code?

sys.exit(0)

## TODO
### 需要根据配置情况填写路径

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

translation

model = GPT2Model.init_from_json(config_file=config_file)
print('*'*20, "model", model)
trainer.pre_train(model)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

translation

### merged_text_document_valid_indexmap_41313229ns_1024sl_2023s_doc_idx.npy

### gpm
data_prefix = '/share/project/ldwang/data/indexed_dataset/gpm/merged_text_document'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

data path

trainer.pre_train(model)

# TODO
data_path = '/share/project/ldwang/data/pile'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the data path

trainer.pre_train(model)

# TODO
### 需要根据数据集情况填写

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

translation

ftgreat and others added 21 commits March 13, 2023 17:19
Signed-off-by: ftgreat <ftgreat@163.com>
remove eos in gpt predictor
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
mv gpt2_new_1w to gpt2_new_100k
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
Signed-off-by: ftgreat <ftgreat@163.com>
up weighted_datasets demo
Signed-off-by: ftgreat <ftgreat@163.com>
add build_weighted_datasets.py
Signed-off-by: ftgreat <ftgreat@163.com>
fix data_loader sampler for ds&mpu
@ftgreat ftgreat merged commit 590d178 into master Mar 21, 2023
@ftgreat ftgreat mentioned this pull request Mar 21, 2023
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.

4 participants