-
Couldn't load subscription status.
- Fork 2.8k
Add file descriptor support for weightless model loading #32572
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
base: master
Are you sure you want to change the base?
Conversation
|
NPUW part looks good |
|
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&)>; |
There was a problem hiding this comment.
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
| } | ||
| } | ||
|
|
||
| void set_from_fd(int fd) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code should be reuse the path version also opens and created file descriptor.
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]>
Changes:
Details:
Tickets: