Skip to content

[example] update gpt benchmark #2219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 29, 2022
Merged

[example] update gpt benchmark #2219

merged 2 commits into from
Dec 29, 2022

Conversation

1SAA
Copy link
Contributor

@1SAA 1SAA commented Dec 28, 2022

No description provided.

search_range_mb=64)
if placememt_policy == 'const':
model.gemini_manager._placement_policy.set_const_memory_boundary(10 * 1024)
model.gemini_manager._placement_policy.set_const_memory_boundary(2 * 1024)
Copy link
Contributor

Choose a reason for hiding this comment

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

set_const_memory_bound的参数能不能弄成一个ratio,你这是这个值很难理解,单位是byte还是MB?

Copy link
Contributor Author

@1SAA 1SAA Dec 29, 2022

Choose a reason for hiding this comment

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

I didn't figure out a better way yet. could we leave this problem alone in this pr?

export USE_SHARD_INIT=False
export BATCH_SIZE=32
# export MODEL_TYPE="gpt2_24b"
export MODEL_TYPE="gpt2_10b"
Copy link
Contributor

Choose a reason for hiding this comment

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

这行代码别动,默认是medium

@feifeibear feifeibear merged commit 3629e61 into hpcaitech:main Dec 29, 2022
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