Skip to content

Conversation

deepcharm
Copy link
Contributor

For some accelerators (such as HPU) running in a non-compile scenarios, the compiler.enable decorator can cause significant performance drops up to 8-12%.

We can easily avoid the performance hit in non-compile scenarios, by detecting the ongoing compilation and returning immediately.

@sfc-gh-truwase sfc-gh-truwase enabled auto-merge (squash) August 18, 2025 21:44
@sfc-gh-truwase sfc-gh-truwase merged commit 8cf5fc5 into deepspeedai:master Aug 18, 2025
12 checks passed
LYMDLUT pushed a commit to LYMDLUT/DeepSpeed that referenced this pull request Aug 20, 2025
)

For some accelerators (such as HPU) running in a non-compile scenarios,
the `compiler.enable` decorator can cause significant performance drops
up to 8-12%.

We can easily avoid the performance hit in non-compile scenarios, by
detecting the ongoing compilation and returning immediately.

Signed-off-by: Max Kovalenko <[email protected]>
Co-authored-by: Olatunji Ruwase <[email protected]>
Signed-off-by: lym <[email protected]>
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