Skip to content

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

Merged
preetha-intel merged 1 commit intointel:ovep-developfrom
intbf:release_model_proto_before_compile
Apr 29, 2025
Merged

Release model proto after we have the serialized string to reduce peak memory consumption#672
preetha-intel merged 1 commit intointel:ovep-developfrom
intbf:release_model_proto_before_compile

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
…k memory consumption

Signed-off-by: bfilipek <bartlomiej.filipek@intel.com>
@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
ankitm3k pushed a commit that referenced this pull request Jul 2, 2025
…k memory consumption (#672)

Signed-off-by: bfilipek <bartlomiej.filipek@intel.com>
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