Skip to content

[example] add benchmark.sh for gpt #2226

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 3 commits into from
Dec 29, 2022
Merged

Conversation

feifeibear
Copy link
Contributor

No description provided.

@@ -309,6 +309,8 @@ def main():
if n >= WARMUP_STEPS:
tflops_list.append(step_tflops)

logger.info(f"max memory {torch.cuda.memory_allocated() / 1024**2} MB", ranks=[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this line?

Copy link
Contributor Author

@feifeibear feifeibear Dec 29, 2022

Choose a reason for hiding this comment

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

I changed it to max_ memory_allocated

@feifeibear feifeibear merged commit 49c601d 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