-
Notifications
You must be signed in to change notification settings - Fork 369
fix: torchtrtc precision setting logic #3883
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: main
Are you sure you want to change the base?
fix: torchtrtc precision setting logic #3883
Conversation
… a precision is specified in torchtrtc
|
Hi @yeetypete! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Thanks for the PR, it seems fine, we will test locally since there are some issues in CI. Is there some limitation in the Dynamo / Exported Program workflow that makes it hard to use for DLA? If so this is something we would like to fix so that users can port off TorchScript since the overall PyTorch ecosystem is moving in that direction. |
|
@narendasan thanks for the quick response.
Currently we haven't tried using Dynamo / Exported Program workflow since we are interested in a Pythonless deployment with ahead-of-time compilation. However, I did notice that the AOT-Inductor pythonless deployment is in beta. It seems like currently you need to use Python to perform the export. This isn't a huge obstacle but it would be great to know if it is possible to perform this export step without Python just using libtorch and tensorrt c++ APIs. Maybe this could be something |
|
AFAIK there isnt a way to |
|
In the end we were able to do model conversion with Python via a docker container so C++ only |
Description
Ensures that
torchtrtcprecision settings do not always contain a defaultfp32precision when the precision is explicitly passed as an argument. This is particularly important when compiling a model to run on the DLA which does not allowfp32precision. Currently this must not have been possible to do with thetorchtrtccli.Bug example:
This should only report
Float16enabled precision.Type of change
Please delete options that are not relevant and/or add your own.
Checklist: