Skip to content
New issue

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

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

Already on GitHub? # to your account

Dygraph【benchmark】add max_mem_reserved for benchmark #11284

Merged
merged 5 commits into from
Nov 22, 2023

Conversation

mmglove
Copy link
Contributor

@mmglove mmglove commented Nov 21, 2023

PR 类型 PR types

Others

PR 变化内容类型 PR changes

Others

描述 Description

训练benchmark 使用 API paddle.device.cuda.max_memory_reserved() 收集模型训练时的显存占用,因此本PR 修改 benchmark 打印日志部分,新增 max_mem_reserved max_mem_allocated 指标打印;如下:

[2023/11/20 17:28:15] ppocr INFO: epoch: [5/24], global_step: 120, lr: 0.000044, loss: 0.033199, avg_reader_cost: 0.00022 s, avg_batch_cost: 0.08772 s, avg_samples: 3.0, ips: 34.19967 samples/s, eta: 0:10:28, max_mem_reserved: 13032679680 B, max_mem_allocated: 11247544832 B

@JiaXiao243 JiaXiao243 merged commit a0901d2 into PaddlePaddle:dygraph Nov 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants