Skip to content

Conversation

@pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #9299 by @mcr229
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/mcr229/12/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/mcr229/12/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/mcr229/12/orig
@diff-train-skip-merge

Pull Request resolved: #9299

there have been some invalid scales/zp sneaking into our serialized quant tensors. This has been annoying because it seemingly passes the export stage. Adding some asserts to help identify the node, the buggy scale/zp value, and the index in to that tensor if applicable
ghstack-source-id: 272845697

Differential Revision: [D70775365](https://our.internmc.facebook.com/intern/diff/D70775365/)
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 20, 2025

🔗 Helpful Links

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

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

❌ 3 New Failures

As of commit 3e59c72 with merge base 445ff34 (image):

NEW FAILURES - The following jobs have failed:

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 Mar 20, 2025
@kirklandsign kirklandsign merged commit 05277dd into main Mar 21, 2025
78 of 82 checks passed
@kirklandsign kirklandsign deleted the gh/mcr229/12/orig branch March 21, 2025 04:33


class OpStaticQDQNode(NodeVisitor):
def check_scales_zeropoints(self, node) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

float("nan"),
float("inf"),
-float("inf"),
1.0000002153053333e-39,
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember there were some additional scale restrictions for doing int requant

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. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants