Skip to content
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

[CPU] Enable mmap for model loading from cache. #23315

Merged
merged 24 commits into from
Oct 12, 2024

Conversation

nshchego
Copy link
Contributor

@nshchego nshchego commented Mar 7, 2024

Details:

  • Use mmap for model compilation from cache.
  • ...

Tickets:

  • Part of the task 127331

@nshchego nshchego requested review from a team as code owners March 7, 2024 06:46
@nshchego nshchego requested review from ilya-lavrenov and removed request for a team March 7, 2024 06:46
@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: Core OpenVINO Core (aka ngraph) category: IE Tests OpenVINO Test: plugins and common category: CPU OpenVINO CPU plugin category: TEMPLATE OpenVINO Template plugin category: PROXY OpenVINO proxy plugin labels Mar 7, 2024
@nshchego nshchego force-pushed the cpu/compile_mmap branch 3 times, most recently from a606c76 to 3b59467 Compare March 11, 2024 17:42
@nshchego nshchego requested review from a team as code owners March 11, 2024 17:42
@github-actions github-actions bot added category: GPU OpenVINO GPU plugin category: HETERO OpenVINO HETERO plugin labels Mar 11, 2024
@maxnick
Copy link
Contributor

maxnick commented Oct 7, 2024

@nshchego , could you please reply to the comment https://github.com/openvinotoolkit/openvino/pull/23315/files#r1706731713 ?

@nshchego
Copy link
Contributor Author

nshchego commented Oct 9, 2024

@nshchego , could you please reply to the comment https://github.com/openvinotoolkit/openvino/pull/23315/files#r1706731713 ?

Modified

@nshchego nshchego force-pushed the cpu/compile_mmap branch 2 times, most recently from 2665849 to 80f01ae Compare October 10, 2024 12:32
Copy link
Contributor

@maxnick maxnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general LGTM, except the MmapStream usage as a container for ov::MappedMemory and the subsequent dynamic cast. Given the fact that the necessary interfaces are going to be introduced in the near future, this PR may be merged as an intermediate state, which allows to have certain speed up of loading models from cache. However, it should be agreed in which order this PR and #26696 should be merged.

CC @dmitry-gorokhov

@nshchego nshchego requested a review from a team as a code owner October 11, 2024 16:09
@github-actions github-actions bot added the category: PDPD FE OpenVINO PaddlePaddle FrontEnd label Oct 11, 2024
@nshchego nshchego requested a review from a team as a code owner October 11, 2024 20:11
@github-actions github-actions bot removed the category: PDPD FE OpenVINO PaddlePaddle FrontEnd label Oct 11, 2024
@nshchego nshchego enabled auto-merge October 11, 2024 20:55
@nshchego nshchego added this pull request to the merge queue Oct 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 12, 2024
@nshchego nshchego added this pull request to the merge queue Oct 12, 2024
Merged via the queue into openvinotoolkit:master with commit eb98c8e Oct 12, 2024
160 checks passed
@nshchego nshchego deleted the cpu/compile_mmap branch October 12, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Core OpenVINO Core (aka ngraph) category: CPU OpenVINO CPU plugin category: IE Tests OpenVINO Test: plugins and common category: inference OpenVINO Runtime library - Inference category: IR FE OpenVINO IR v10 / v11 FrontEnd no_stale Do not mark as stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.