You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The internals of the feature are already present in ptq.py in the torch_tensorrt.py directory. We need to expose this support via calibrator keyword argument in FX API
Extensions Required to Core API implementations
N/A
Data Structures
N/A
Details specific for TorchScript Support
N/A
Details specific for FX support
See above.
Implementation Phases
Prototype - S
Implement a keyword argument and pass it to internal FX compile API. Implement a python example test in FX similar to how it is present in tests/py/ptq for TS backend
MVP (<1.4.0>) - S
Implement a keyword argument and pass it to internal FX compile API. Implement a python example test in FX similar to how it is present in tests/py/ptq for TS backend
Both prototype and MVP would be the same as this feature is not too involved. Most of the calibrator work for TS can be reused.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
PTQ Calibration in FX
Goal(s)
Support PTQ in FX. Both DataLoader Calibrator and Cache Calibrator options in Torchscript should be supported via FX as well.
Usecases
Proposed APIs / UX
The usage is similar to how users use PTQ with torchscript backend. There should be no difference.
Example Workflow
Limitations
No known limitations at this time
Internal Implementation
Design
The internals of the feature are already present in ptq.py in the
torch_tensorrt.pydirectory. We need to expose this support via calibrator keyword argument in FX APIExtensions Required to Core API implementations
N/A
Data Structures
N/A
Details specific for TorchScript Support
N/A
Details specific for FX support
See above.
Implementation Phases
Prototype - S
Implement a keyword argument and pass it to internal FX compile API. Implement a python example test in FX similar to how it is present in tests/py/ptq for TS backend
MVP
(<1.4.0>)- SImplement a keyword argument and pass it to internal FX compile API. Implement a python example test in FX similar to how it is present in tests/py/ptq for TS backend
Both prototype and MVP would be the same as this feature is not too involved. Most of the calibrator work for TS can be reused.
All reactions