Skip to content

Fix XNNPACK Example for MV3 #147

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

Closed
wants to merge 5 commits into from
Closed

Conversation

mcr229
Copy link
Contributor

@mcr229 mcr229 commented Aug 25, 2023

Summary:
xnnpack requires dequant nodes to be duplicated such that len(dq.users) == 1. We run this pass on our internal XNNPACK tests

From Jerry: This will be a config that is used within the XNNPACKQuantizer. This will be added later, for the sake of enabling this in the example, we add the duplicatedequantnodepass to our edge compile config

Additionally, graph_validation is failing for MV3, so we have to disable_validation for now. cccclai is looking into it

Reviewed By: digantdesai

Differential Revision: D48703639

mcr229 and others added 5 commits August 25, 2023 16:55
Differential Revision: D48667679

fbshipit-source-id: 961dda60a88209f85e95276ce26cbc6d8ccc3a4b
Differential Revision: D48667676

fbshipit-source-id: 9998b49f97971029545a4d3698de501e2edade56
Differential Revision: D48667680

fbshipit-source-id: 2b69e340dbadd1cd0215e4b128e3952c0fe94f45
Differential Revision: D48667678

fbshipit-source-id: 97e0dcfb04c3185fb3da3356e15ea1bb5ae9c041
Summary:
xnnpack requires dequant nodes to be duplicated such that len(dq.users) == 1. We run this pass on our internal XNNPACK tests

From Jerry: This will be a config that is used within the XNNPACKQuantizer. This will be added later, for the sake of enabling this in the example, we add the duplicatedequantnodepass to our edge compile config

Additionally, graph_validation is failing for MV3, so we have to disable_validation for now. cccclai is looking into it

Reviewed By: digantdesai

Differential Revision: D48703639

fbshipit-source-id: 6bdca0480ea90782fc6a857095ec773d5ded1071
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 25, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48703639

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 9ede813.

Gasoonjia pushed a commit that referenced this pull request Jul 30, 2024
* tiktoken integration, part 1

* update tests

* dtype tests
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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants