-
Notifications
You must be signed in to change notification settings - Fork 120
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
fix win #924
fix win #924
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
👍
def __del__(self): | ||
if hasattr(self, "request"): | ||
del self.request | ||
if hasattr(self, "model"): | ||
del self.model |
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.
Is this required or just to be safe?
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.
I added for experiment to check that process exit issues will be resolved if we remove model and request in destructor. checking that attribute exists added for safety (if somebody already remove them before)
def __del__(self): | ||
if hasattr(self, "request"): | ||
del self.request | ||
if hasattr(self, "_original_model"): | ||
del self._original_model | ||
if hasattr(self, "model"): | ||
del self.model |
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.
Same question
I still getting segmentation fault (probably caused double free memory corruption in my experiments with resolving tmp dir destruction, so I moved changes required for compression into separated PR to unblock people that waiting this issue resolution #925 |
What does this PR do?
Fixes # openvinotoolkit/openvino#26844
force deleting openvino model and garbage collector during model export to prevent locking files in tmp dir due to mmap.
Additionally fixed installation from source on windows (in setup.py, subprocess.run raises FileNotFound error if can not find git) and refactoring weights compression part moving model size calculation during export and read model only if weights compression should be applied (based on model size or explicitly specified configuration, prevents OOM and invalid IR errors if nncf not installed)
Before submitting