Skip to content
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

Uintx ops - Slice etc... #1026

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

melvinebenezer
Copy link
Contributor

In continuation to #458 and #988

ToDo

  • Slice Op for uintx
  • padding in pack and unpack
  • Test cases for slice
  • Tensor parallelism using slice

Copy link

pytorch-bot bot commented Oct 7, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1026

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 7, 2024
@melvinebenezer melvinebenezer marked this pull request as draft October 7, 2024 15:25
@@ -55,6 +56,7 @@ class UintxTensor(TorchAOBaseTensor):
def __new__(
cls,
shards: List[torch.Tensor],
original_size: int,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this parameter used for? Just seems like its getting passed around

Copy link
Contributor Author

@melvinebenezer melvinebenezer Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used in the unpack function
def get_plain(self): return unpack(self.get_shards(), original_size=self.original_size, elem_size=self.bit_width, dim = self.pack_dim)

fix _repr_ and scalar assigment in UintxTensor
add basic slice test for uint6
add generic slice tests for uint1-7
@melvinebenezer melvinebenezer marked this pull request as ready for review October 21, 2024 03:15
@melvinebenezer melvinebenezer changed the title [WIP] Uintx ops - Slice etc... Uintx ops - Slice etc... Oct 21, 2024
@melvinebenezer melvinebenezer marked this pull request as draft October 24, 2024 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants