Skip to content

lazy compile disable - #3947

Merged
SunMarc merged 3 commits into
mainfrom
fix-decorator
Feb 27, 2026
Merged

lazy compile disable#3947
SunMarc merged 3 commits into
mainfrom
fix-decorator

Conversation

@SunMarc

@SunMarc SunMarc commented Feb 27, 2026

Copy link
Copy Markdown
Member

What does this PR do?

This PR adds a lazy version of torch.compiler.disable that avoids importing torch._dynamo at decoration time. This way it takes 4s less to import accelerate.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@SunMarc
SunMarc merged commit 7ed69be into main Feb 27, 2026
22 of 29 checks passed
@SunMarc
SunMarc deleted the fix-decorator branch February 27, 2026 17:20
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