-
Notifications
You must be signed in to change notification settings - Fork 280
Fix slice and padding for TensorCoreTiledLayout #2015
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
Conversation
…quantization Summary: Previously some of the code paths are not exercised, so the bug was not discovered but there are some bug related to slice operation and padding, basically scale and zero_point are not padded before, this results in errors when it is required. Test Plan: python test/dtypes/test_affine_quantized.py -k test_slice Reviewers: Subscribers: Tasks: Tags:
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2015
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit bd34790 with merge base 0231a68 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
9158d3c
to
6c7671a
Compare
@@ -297,14 +297,31 @@ def __torch_dispatch__(cls, func, types, args, kwargs): | |||
if func is aten.slice.Tensor: |
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.
can we update this class to use the @dispatch pattern
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.
sure, can I do this in a separate PR?
@@ -192,31 +192,26 @@ def __torch_dispatch__(cls, func, types, args, kwargs): | |||
|
|||
if func is aten.slice.Tensor: | |||
self, dim, start, end, step = fill_defaults(args, 5, [0, None, None, 1]) |
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.
same for this
@@ -335,31 +350,25 @@ def __torch_dispatch__(cls, func, types, args, kwargs): | |||
|
|||
if func is aten.slice.Tensor: |
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.
also same for this
* Fix slice and padding for TensorCoreTiledLayout for int4 weight only quantization Summary: Previously some of the code paths are not exercised, so the bug was not discovered but there are some bug related to slice operation and padding, basically scale and zero_point are not padded before, this results in errors when it is required. Test Plan: python test/dtypes/test_affine_quantized.py -k test_slice Reviewers: Subscribers: Tasks: Tags: * skip if no cuda * update callsites for post_process * add back missing post process * adding missing arg for floatx
Summary:
Previously some of the code paths are not exercised, so the bug was not discovered
but there are some bug related to slice operation and padding, basically scale and zero_point are not padded before, this results in errors when it is required.
Test Plan:
python test/dtypes/test_affine_quantized.py -k test_slice
Reviewers:
Subscribers:
Tasks:
Tags: