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

Allow tests to run in t.compile #724

Open
wants to merge 3 commits into
base: habana_main
Choose a base branch
from

Conversation

Kacper-Pietkun
Copy link

Currently when setting PT_HPU_LAZY_MODE=0 most tests would run only in eager mode. This fix changes this behavior.

@Kacper-Pietkun Kacper-Pietkun force-pushed the dev/kpietkun/tests_compile branch from 02a4a21 to 10bf5ee Compare January 29, 2025 09:59
@Kacper-Pietkun Kacper-Pietkun force-pushed the dev/kpietkun/tests_compile branch from 10bf5ee to 48d02da Compare January 29, 2025 10:47
Copy link

@anko-intel anko-intel left a comment

Choose a reason for hiding this comment

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

Overall LGTM. I have some doubts if all these tests should run in both modes

@@ -139,7 +139,7 @@ def start_engine():

return AsyncLLMEngine.from_engine_args(
AsyncEngineArgs(model="facebook/opt-125m",
enforce_eager=True,
enforce_eager=False,

Choose a reason for hiding this comment

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

Do we eliminate this way some eager tests ? or is it used only in prepared for torch compile?


# skip cuda graph creation for fast test.
"enforce_eager": True,
# skip cuda graph creation for fast test.

Choose a reason for hiding this comment

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

Maybe

Suggested change
# skip cuda graph creation for fast test.
# skip graph creation for fast test.

@Kacper-Pietkun
Copy link
Author

Before merging a change, it is required to check which tests truly need model compilation (use torch.compile underneath). It is unnecessary to modify tests that do not do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants