-
Notifications
You must be signed in to change notification settings - Fork 67
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
base: habana_main
Are you sure you want to change the base?
Conversation
bbf9258
to
02a4a21
Compare
02a4a21
to
10bf5ee
Compare
10bf5ee
to
48d02da
Compare
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.
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, |
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.
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. |
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.
Maybe
# skip cuda graph creation for fast test. | |
# skip graph creation for fast test. |
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. |
Currently when setting
PT_HPU_LAZY_MODE=0
most tests would run only in eager mode. This fix changes this behavior.