-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Torch-Tensorrt Integration with LightningModule #20808
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
base: master
Are you sure you want to change the base?
Conversation
…ensorrt # Conflicts: # src/lightning/pytorch/core/module.py
Hi @Borda , friendly ping for a code review~ btw, I'm wondering if anyone could help me with the unittests during the ci, since there's compatibility problem when testing with the oldest torch 2.1.2 and torch-tensorrt. I'd love to help with solving this problem if there's any suggestion. |
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.
@GdoongMathew, overall looks good, could you pls check the failing tests?
# Conflicts: # requirements/pytorch/test.txt
Hi @Borda, thanks for reviewing this PR!! I've managed to fix some of the tests by "not" installing In particular, since |
# Conflicts: # src/lightning/pytorch/core/module.py # src/lightning/pytorch/utilities/testing/_runif.py
I just saw that there's a utility script from https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/adjust-torch-versions.py, which would figure out the mapping between But I think extending the mapping only allow the lightning to install |
d1eec19
to
af70c86
Compare
Somehow |
What does this PR do?
Fixes #11438
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--20808.org.readthedocs.build/en/20808/