Skip to content

Conversation

jerryzh168
Copy link
Contributor

@jerryzh168 jerryzh168 commented Aug 20, 2024

Stack from ghstack (oldest at bottom):

Summary:
With #131912 we now have a "custom" field in node.meta that can be preserved
in

  • copy/deepcopy
  • run_decompositions()
  • serialization
  • re-exporting

So we refactored numeric debugger to use this.

Test Plan:
python test/test_quantization.py TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:
With #131912 we now have a "custom" field in node.meta that can be preserved
in

* copy/deepcopy
* run_decompositions()
* serialization
* re-exporting

So we refactored numeric debugger to use this.

Test Plan:
python test/test_quantization.py TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the release notes: quantization release notes category label Aug 20, 2024
Copy link

pytorch-bot bot commented Aug 20, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit b7ec501 with merge base bce0cab (image):
💚 Looks good so far! There are no failures yet. 💚

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

@jerryzh168 jerryzh168 requested a review from zhxchen17 August 20, 2024 20:23
…eld"

Summary:
With #131912 we now have a "custom" field in node.meta that can be preserved
in

* copy/deepcopy
* run_decompositions()
* serialization
* re-exporting

So we refactored numeric debugger to use this.

Test Plan:
python test/test_quantization.py TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
…eld"

Summary:
With #131912 we now have a "custom" field in node.meta that can be preserved
in

* copy/deepcopy
* run_decompositions()
* serialization
* re-exporting

So we refactored numeric debugger to use this.

Test Plan:
python test/test_quantization.py TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Aug 20, 2024
Summary:
With #131912 we now have a "custom" field in node.meta that can be preserved
in

* copy/deepcopy
* run_decompositions()
* serialization
* re-exporting

So we refactored numeric debugger to use this.

Test Plan:
python test/test_quantization.py TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: b6af5d0
Pull Request resolved: #134040
@jerryzh168 jerryzh168 requested a review from tarun292 August 23, 2024 00:37
@jerryzh168
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 27, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

jerryzh168 added a commit that referenced this pull request Aug 29, 2024
Summary:
This is a follow up of #134040 to fix the remaining
tests that still breaks right now, I think we'd need to fix something in export

Test Plan:
python test/test_quantization -k TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Aug 29, 2024
Summary:
This is a follow up of #134040 to fix the remaining
tests that still breaks right now, I think we'd need to fix something in export

Test Plan:
python test/test_quantization -k TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: a8f15a8
Pull Request resolved: #134776
jerryzh168 added a commit that referenced this pull request Sep 3, 2024
Summary:
This is a follow up of #134040 to fix the remaining
tests that still breaks right now, I think we'd need to fix something in export

Test Plan:
python test/test_quantization -k TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
jerryzh168 added a commit that referenced this pull request Sep 3, 2024
Summary:
This is a follow up of #134040 to fix the remaining
tests that still breaks right now, I think we'd need to fix something in export

Test Plan:
python test/test_quantization -k TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 0a43f91
Pull Request resolved: #134776
for node in graph_module.graph.nodes:
if node.op != "placeholder" and NUMERIC_DEBUG_HANDLE_KEY not in node.meta:
node.meta[NUMERIC_DEBUG_HANDLE_KEY] = unique_id
if node.op in ["output", "placehodler"]:
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: "placeholder"

Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
…h#134040)

Summary:
With pytorch#131912 we now have a "custom" field in node.meta that can be preserved
in

* copy/deepcopy
* run_decompositions()
* serialization
* re-exporting

So we refactored numeric debugger to use this.

Test Plan:
python test/test_quantization.py TestNumericDebugger

Reviewers:

Subscribers:

Tasks:

Tags:
Pull Request resolved: pytorch#134040
Approved by: https://github.com/tarun292
@github-actions github-actions bot deleted the gh/jerryzh168/849/head branch October 5, 2024 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: quantization release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants