Skip to content

Conversation

@akodanka
Copy link

Changes:

  • Add ov::FdGetterType and ov::hint::fd_getter property
  • Extend load_mmap_object() with fd-based overload (Linux only)
  • Integrate fd_getter through NPUW deserialization flow
  • Windows implementation throws unsupported exception

Details:

  • item1
  • ...

Tickets:

  • ticket-id

@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: Core OpenVINO Core (aka ngraph) category: CPP API OpenVINO CPP API bindings category: NPU OpenVINO NPU plugin category: NPUW NPUW plugin labels Oct 27, 2025
@sys-openvino-ci sys-openvino-ci added the ExternalIntelPR External contributor from Intel label Oct 27, 2025
@akodanka akodanka marked this pull request as ready for review October 27, 2025 17:36
@akodanka akodanka requested review from a team as code owners October 27, 2025 17:36
@smirnov-alexey
Copy link
Contributor

NPUW part looks good

@smirnov-alexey
Copy link
Contributor

build_jenkins

* This is useful for scenarios where file access needs to be controlled externally.
* @ingroup ov_runtime_cpp_prop_api
*/
using FdGetterType = std::function<int(const std::string&)>;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not add as public property as this some internal NPU handling

Copy link
Contributor

Choose a reason for hiding this comment

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

It could be dev_api nested trait, if needed elsewhere.

Copy link
Author

@akodanka akodanka Nov 11, 2025

Choose a reason for hiding this comment

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

I have added a new commit(ffb6519) which moves the property under npuw_private_properties.hpp.
But, one challenge here is that the type definition FdGetterType won't be visible to the caller.

I verified that it works when the type is defined and used by the caller :
using FdGetterType = std::function<int(const std::string&)>;

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @praasz @akodanka we have use case to run the model on OV CPU as well, so better we can keep it as the public property. @anikulk could add more info if needed.

@akodanka akodanka force-pushed the fd_getter branch 2 times, most recently from 7d8abfb to 414d179 Compare October 30, 2025 04:46
@dmatveev dmatveev added this to the 2026.0 milestone Oct 31, 2025
@github-actions github-actions bot removed category: inference OpenVINO Runtime library - Inference category: CPP API OpenVINO CPP API bindings labels Nov 11, 2025
* Function that takes a file path string and returns a file descriptor as int.
* This is useful for scenarios where file access needs to be controlled externally.
*/
using FdGetterType = std::function<int(const std::string&)>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move it below under npuw namespace


namespace npuw {
/**
* @brief This key identifies callback function to get file descriptor for a given file path.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please align the comment with other npuw properties' comments below

Copy link
Contributor

Choose a reason for hiding this comment

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

Also you can mention that this property is used during weightless import only

@akodanka akodanka requested review from a team as code owners November 21, 2025 14:53
@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: GPU OpenVINO GPU plugin labels Nov 21, 2025
@github-actions github-actions bot added the category: CPP API OpenVINO CPP API bindings label Nov 21, 2025
Changes:
- Add ov::FdGetterType and ov::hint::fd_getter property
- Extend load_mmap_object() with fd-based overload (Linux only)
- Integrate fd_getter through NPUW deserialization flow
- Windows implementation throws unsupported exception

Signed-off-by: Anoob Anto Kodankandath <[email protected]>
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: CPP API OpenVINO CPP API bindings category: GPU OpenVINO GPU plugin category: inference OpenVINO Runtime library - Inference category: NPU OpenVINO NPU plugin category: NPUW NPUW plugin ExternalIntelPR External contributor from Intel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants