perf(memory): integrate new Static GPU Memory Planning#303
Open
Zhao-Shi-jie wants to merge 4 commits into
Open
perf(memory): integrate new Static GPU Memory Planning#303Zhao-Shi-jie wants to merge 4 commits into
Zhao-Shi-jie wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
-新增静态显存规划算法;
不同显存规划算法计算得到不同的峰值显存需求,并且中间张量的最低显存需求小于原lazy_allocator策略的显存需求(下图为使用lazy_allocator策略的测试信息,图中“non weight tensor memory: 3195136”是非权重部分张量占用的大小,减去“Total IO footprint(belong non weight tensor): 180224 bytes”就是中间张量的显存占用)

-该算法基于lazy_allocator 简化得到memory_allocator,这是新的显存规划算法使用的allocator。
-TEST: