Skip to content

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Feb 16, 2023

Summary:

This PR adds a set of unintrepreted data types on PyTorch which can be used to implement experimental functionality out of core (think fp8, int4, int16 quant, etc).

Note: this is a copy-pasta of #89990 with a bug fix for clang9, easier to just to put up another PR since I'm not sure how comandeering works with Meta-only changes.

@bypass-github-export-checks

Test Plan:

python test/test_quantization.py -k TestBits

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

@vkuzo vkuzo requested a review from jerryzh168 as a code owner February 16, 2023 18:56
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 16, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit cd20e12:
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added the release notes: quantization release notes category label Feb 16, 2023
@vkuzo vkuzo force-pushed the bitstensor_0 branch 2 times, most recently from de86298 to c27c21e Compare February 16, 2023 21:02
// are not sure about the correct value for type promotion.
static constexpr ScalarType _promoteTypesLookup[static_cast<int>(
ScalarType::NumOptions)][static_cast<int>(ScalarType::NumOptions)] = {
// clang-format off
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: this is now needed to prevent clang from messing up the table formatting

@vkuzo vkuzo requested review from Chillee, angelayi and ezyang February 16, 2023 21:07
Copy link
Contributor

@angelayi angelayi left a comment

Choose a reason for hiding this comment

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

lgtm! Note that you'll have to make internal changes too.

@vkuzo
Copy link
Contributor Author

vkuzo commented Feb 16, 2023

lgtm! Note that you'll have to make internal changes too.

yep, just waiting for green CI here before I do that, to minimize work

@facebook-github-bot
Copy link
Contributor

@vkuzo has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:

This PR adds a set of unintrepreted data types on PyTorch which can be
used to implement experimental functionality out of core (think fp8,
int4, int16 quant, etc).

Note: this is a copy-pasta of #89990
with a bug fix for clang9, easier to just to put up another PR since I'm not
sure how comandeering works with Meta-only changes.

Test Plan:

```
python test/test_quantization.py -k TestBits
```

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot
Copy link
Contributor

@vkuzo has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge -f 'Landed internally'

(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

atalman added a commit to atalman/pytorch that referenced this pull request Feb 23, 2023
@atalman
Copy link
Contributor

atalman commented Feb 23, 2023

@pytorchmergebot revert -m "breaks libtorch windows builds see: #95406" -c wierd

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 23, 2023

❌ 🤖 pytorchbot command failed:

@pytorchbot revert: error: argument -c/--classification: invalid choice: 'wierd' (choose from 'nosignal', 'ignoredsignal', 'landrace', 'weird', 'ghfirst')

usage: @pytorchbot revert -m MESSAGE -c
                          {nosignal,ignoredsignal,landrace,weird,ghfirst}

Try @pytorchbot --help for more info.

@atalman
Copy link
Contributor

atalman commented Feb 23, 2023

@pytorchbot revert -m "breaks libtorch windows nightly builds see: #95406" -c nosignal

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@vkuzo your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Feb 23, 2023
This reverts commit 9dbfca7.

Reverted #94992 on behalf of https://github.com/atalman due to breaks libtorch windows nightly builds see: #95406
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 25, 2023
This reverts commit 9dbfca7.

Reverted pytorch/pytorch#94992 on behalf of https://github.com/atalman due to breaks libtorch windows nightly builds see: pytorch/pytorch#95406
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Feb 25, 2023
This reverts commit 9dbfca7.

Reverted pytorch/pytorch#94992 on behalf of https://github.com/atalman due to breaks libtorch windows nightly builds see: pytorch/pytorch#95406
vkuzo added a commit that referenced this pull request Mar 2, 2023
Summary:

This is a retry of #94992 which
was reverted due to CI issues.

This PR adds a set of unintrepreted data types on PyTorch which can be
used to implement experimental functionality out of core (think fp8,
int4, int16 quant, etc).

Test Plan:

```
python test/test_quantization.py -k TestBits
```

Reviewers:

Subscribers:

Tasks:

Tags:
pytorchmergebot pushed a commit that referenced this pull request Mar 4, 2023
Summary:

This is a retry of #94992 which was reverted due to CI issues.

This PR adds a set of unintrepreted data types on PyTorch which can be used to implement experimental functionality out of core (think fp8, int4, int16 quant, etc).

@bypass-github-export-checks

Test Plan:

```
python test/test_quantization.py -k TestBits
```

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

Pull Request resolved: #95860
Approved by: https://github.com/atalman
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
This reverts commit 9dbfca7.

Reverted pytorch/pytorch#94992 on behalf of https://github.com/atalman due to breaks libtorch windows nightly builds see: pytorch/pytorch#95406
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 5, 2023
Summary:

This is a retry of pytorch/pytorch#94992 which was reverted due to CI issues.

This PR adds a set of unintrepreted data types on PyTorch which can be used to implement experimental functionality out of core (think fp8, int4, int16 quant, etc).

@bypass-github-export-checks

Test Plan:

```
python test/test_quantization.py -k TestBits
```

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

Pull Request resolved: pytorch/pytorch#95860
Approved by: https://github.com/atalman
ydwu4 added a commit to ydwu4/pytorch that referenced this pull request Mar 13, 2023
Summary:

This is a retry of pytorch#94992 which was reverted due to CI issues.

This PR adds a set of unintrepreted data types on PyTorch which can be used to implement experimental functionality out of core (think fp8, int4, int16 quant, etc).

@bypass-github-export-checks

Test Plan:

```
python test/test_quantization.py -k TestBits
```

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

Pull Request resolved: pytorch#95860
Approved by: https://github.com/atalman
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
jhavukainen pushed a commit to kulinseth/pytorch that referenced this pull request Mar 15, 2024
Summary:

This PR adds a set of unintrepreted data types on PyTorch which can be used to implement experimental functionality out of core (think fp8, int4, int16 quant, etc).

Note: this is a copy-pasta of pytorch#89990 with a bug fix for clang9, easier to just to put up another PR since I'm not sure how comandeering works with Meta-only changes.

@bypass-github-export-checks

Test Plan:

```
python test/test_quantization.py -k TestBits
```

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

Pull Request resolved: pytorch#94992
Approved by: https://github.com/angelayi
jhavukainen pushed a commit to kulinseth/pytorch that referenced this pull request Mar 15, 2024
This reverts commit 9dbfca7.

Reverted pytorch#94992 on behalf of https://github.com/atalman due to breaks libtorch windows nightly builds see: pytorch#95406
@github-actions github-actions bot deleted the bitstensor_0 branch August 20, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants