Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyTorch] Proxy class for low-precision tensor (#1127)
* Add base class for tensor proxies Signed-off-by: Tim Moon <[email protected]> * Move tensor detaching logic to tensor proxy base class Signed-off-by: Tim Moon <[email protected]> * Use Python wrappers to PyTorch extensions Signed-off-by: Tim Moon <[email protected]> * Include transpose caching logic in proxy encode function Signed-off-by: Tim Moon <[email protected]> * Debug dimension mismatch with amax history Signed-off-by: Tim Moon <[email protected]> * Move dequantize logic to proxy_decode func Signed-off-by: Tim Moon <[email protected]> * Rename to "QuantizedTensor" Signed-off-by: Tim Moon <[email protected]> * Rename "proxy_detach" to "detach" Signed-off-by: Tim Moon <[email protected]> * Include transpose cache in detach and clone funcs Signed-off-by: Tim Moon <[email protected]> * Fix linter warnings Signed-off-by: Tim Moon <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update FP8 workspaces with QuantizedTensor functions Signed-off-by: Tim Moon <[email protected]> * Move logic for FP8 transpose cache in FP8 workspaces to base class Signed-off-by: Tim Moon <[email protected]> * Remove cast-transpose logic from linear op Signed-off-by: Tim Moon <[email protected]> * Remove unnecessary args for Float8Tensor when using FP8 attr dict Signed-off-by: Tim Moon <[email protected]> * Remove __torch_function__ to QuantizedTensor Signed-off-by: Tim Moon <[email protected]> * Fix linter warnings Signed-off-by: Tim Moon <[email protected]> * Update tests/pytorch/test_float8tensor.py Signed-off-by: Tim Moon <[email protected]> * Debug FP8 transpose test Signed-off-by: Tim Moon <[email protected]> * Debug cast functions Signed-off-by: Tim Moon <[email protected]> --------- Signed-off-by: Tim Moon <[email protected]> Signed-off-by: Tim Moon <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kirthi Shankar Sivamani <[email protected]>
- Loading branch information