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

[NPU] Create compiler adapter class #27006

Merged
merged 30 commits into from
Nov 1, 2024

Conversation

pereanub
Copy link
Contributor

@pereanub pereanub commented Oct 11, 2024

Details:

  • Create a new CompilerAdapter interface that hides different implementations of CIP and CID
  • iCompiler remains an interface only for CIP. This keeps CIP (developed in another repository) decoupled from L0 - we still use NetworkMetadata in the plugin flow, which needs to be decided later if is still needed or if it can be removed
  • Graph object is created by compiler_adapter
  • Backend doesn't create/initialize graph any longer
  • Moving common objects for backend and compiler_adapter to utils/zero/
  • Destroy blob on the import path after we load the weights into the NPU memory
  • Create a new property to postpone weights loading until the creation of the first inference request, by default is performed right after the model is compiled - NPU_DEFER_WEIGHTS_LOAD

A short description of the new format:
Screenshot 2024-10-30 151129

Tickets:

@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Oct 11, 2024
@pereanub pereanub force-pushed the compiler_adapter branch 5 times, most recently from a89b5bc to 1c9b633 Compare October 14, 2024 09:17
@github-actions github-actions bot added the category: build OpenVINO cmake script / infra label Oct 14, 2024
@pereanub pereanub changed the title Create compiler adapter class [NPU] Create compiler adapter class Oct 14, 2024
@pereanub pereanub force-pushed the compiler_adapter branch 9 times, most recently from 50af560 to 6d7865a Compare October 16, 2024 15:13
@pereanub pereanub force-pushed the compiler_adapter branch 11 times, most recently from 1c68744 to 438921e Compare October 24, 2024 14:32
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
…om compiler adapter

Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
… is not set

Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
@pereanub pereanub added this pull request to the merge queue Nov 1, 2024
Merged via the queue into openvinotoolkit:master with commit caa1e6a Nov 1, 2024
140 checks passed
@pereanub pereanub deleted the compiler_adapter branch November 1, 2024 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra category: docs OpenVINO documentation category: NPU OpenVINO NPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants