Skip to content
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

fix test_tipc/train logic #2879

Merged
merged 7 commits into from
Aug 2, 2022

Conversation

veyron95
Copy link
Contributor

PR types

Others

PR changes

Others

Description

fix xlnet for ips count

sys.exit()
#if global_step > 100 and global_step < 110:
# paddle.fluid.core.nvprof_nvtx_pop()
# paddle.fluid.core.nvprof_nvtx_push(str(global_step))
Copy link
Contributor

Choose a reason for hiding this comment

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

删除

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这个 commit 仅作为草稿,跑完110 step 就停下。

reader_cost_avg.record(train_reader_cost)
batch_cost_avg.record(train_batch_cost)
batch_ips_avg.record(train_batch_cost, sample_per_cards)
batch_start = time.time()
Copy link
Contributor

Choose a reason for hiding this comment

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

这两段代码不能复用的原因是?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

比如 line:151 需要 batch_cost_avg 的数据,所以在 line:145 之前也需要有这么一段代码

Copy link
Contributor

@FrostML FrostML Jul 27, 2022

Choose a reason for hiding this comment

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

不过是这段代码同时都在 if... & else.. 里,这段逻辑不能共用么?

Copy link
Contributor

Choose a reason for hiding this comment

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

batch_start 是否也可以放到 batch 最后,按理时间戳会准确一些。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

batch_start = time.time() 已放到 batch 最后

@FrostML FrostML self-assigned this Jul 28, 2022
Copy link
Contributor

@FrostML FrostML left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@FrostML FrostML merged commit 7d0c831 into PaddlePaddle:develop Aug 2, 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