Skip to content

Fix memory stats printing#20061

Merged
pengwa merged 5 commits intomainfrom
pengwa/fix_mem_inspector
Mar 26, 2024
Merged

Fix memory stats printing#20061
pengwa merged 5 commits intomainfrom
pengwa/fix_mem_inspector

Conversation

@pengwa
Copy link
Contributor

@pengwa pengwa commented Mar 25, 2024

Fix memory stats printing

The mmeory stats printing is failed when module is in eval mode, doing ORTModule wrap. At that time, runtime inspector for training manager should have training model being true, but got a false (because existing logic get the boolean from module.training). Runtime inspector as part of training manager or inference manager should know it is serving training or not explicitly, so we cannot depend on the stat of module.training during ORTModule initialization.

Motivation and Context

@pengwa pengwa added the training issues related to ONNX Runtime training; typically submitted using template label Mar 25, 2024
wschin
wschin previously approved these changes Mar 26, 2024
@pengwa pengwa merged commit dfa891a into main Mar 26, 2024
@pengwa pengwa deleted the pengwa/fix_mem_inspector branch March 26, 2024 13:25
TedThemistokleous pushed a commit to TedThemistokleous/onnxruntime that referenced this pull request May 7, 2024
### Fix memory stats printing

The mmeory stats printing is failed when module is in eval mode, doing
ORTModule wrap. At that time, runtime inspector for training manager
should have training model being true, but got a false (because existing
logic get the boolean from module.training). Runtime inspector as part
of training manager or inference manager should know it is serving
training or not explicitly, so we cannot depend on the stat of
module.training during ORTModule initialization.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

training issues related to ONNX Runtime training; typically submitted using template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants