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

Add compile_fn parameter for Trainer #20269

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

Conversation

mieshkiwrk
Copy link

@mieshkiwrk mieshkiwrk commented Sep 10, 2024

Add support for compile_fn for Trainer for example to compile model after applying strategy

Example usage: needed to compile after applying DDP strategy to get pre/post forward also compiled

Fixes #20242


📚 Documentation preview 📚: https://pytorch-lightning--20269.org.readthedocs.build/en/20269/

@github-actions github-actions bot added the pl Generic label for PyTorch Lightning package label Sep 10, 2024
@mieshkiwrk
Copy link
Author

Both benchmarks checks failed due to timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pl Generic label for PyTorch Lightning package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add something like use_compile parameter for Trainer
1 participant