Skip to content

Release model proto after we have the serialized string to reduce peak memory consumption #672

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

Conversation

intbf
Copy link

@intbf intbf commented Apr 22, 2025

Once we have the serialized string, we can remove the proto object from memory

Description

Call the reset, as in the "else" statement

Motivation and Context

Reduces the peak memory consumption by roughly 1x model size
https://jira.devtools.intel.com/browse/VGD-26545

@preetha-intel
Copy link

LGTM

@preetha-intel preetha-intel self-requested a review April 24, 2025 09:02
@preetha-intel
Copy link

preetha-intel commented Apr 24, 2025

@intbf Kindly fix the merge conflicts

@intbf intbf force-pushed the release_model_proto_before_compile branch 2 times, most recently from 9ef552b to 07f29fe Compare April 25, 2025 09:50
@intbf intbf force-pushed the release_model_proto_before_compile branch from 07f29fe to 05296fb Compare April 25, 2025 09:55
@preetha-intel preetha-intel merged commit a077c79 into intel:ovep-develop Apr 29, 2025
8 of 14 checks passed
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