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

[SW-196453] Move finish_measurements to DTOR #181

Conversation

Tiefen-boop
Copy link

Delete finish_measurements delegation
Call finish_measurements in DTOR of HabanaModelRunner

Delete finish_measurements delegation
Call finish_measurements in DTOR of HabanaModelRunner
@Tiefen-boop
Copy link
Author

Tiefen-boop commented Aug 13, 2024

This currently fails python test_vllm.py only at shutdown (test passes but shutdown fails):
image

I still created this PR so we can discuss this change.
Is the call is at a correct spot in the DTOR?
Do you have any idea why it would crash like that?

@@ -1503,4 +1503,5 @@ def shutdown_inc(self):
print('inc shutdown')

def __del__(self):
self.finish_measurements()
Copy link
Author

Choose a reason for hiding this comment

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

@MrGeva
I see the in HabanaModelRunner the finalize_clibration (== self.finish_measurements) is called at shutdown_inc (above method)
Why then did we need to move finish_measurements to the DTOR?

@kzawora-intel kzawora-intel added the habana Issues or PRs submitted by Habana Labs label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
habana Issues or PRs submitted by Habana Labs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants