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

[TorchToLinalg] add support for quantized group conv #3341

Merged
merged 4 commits into from
Jun 3, 2024

Conversation

zjgarvey
Copy link
Collaborator

@zjgarvey zjgarvey commented May 14, 2024

This addresses 7 of the model failures I'm seeing in the test suite. See Shark-Turbine issue #566.

Need the op linalg.conv_2d_ngchw_gfchw_q to be added upstream before merging this. See llvm-project PR #92136 .

A small additional expansion to operand quantization is included in this patch to address a model failure that occurs when unblocking the quantized group convolutions in one of these onnx models.

@zjgarvey
Copy link
Collaborator Author

When the upstream patch lands, I'll rebase, and add some tests.

Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

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

LGTM

@vivekkhandelwal1 vivekkhandelwal1 merged commit 8995c90 into llvm:main Jun 3, 2024
3 checks passed
sjarus pushed a commit to sjarus/torch-mlir that referenced this pull request Jun 6, 2024
This addresses 7 of the model failures I'm seeing in the test suite. See
[Shark-Turbine issue
llvm#566](nod-ai/SHARK-ModelDev#566).

Need the op ```linalg.conv_2d_ngchw_gfchw_q``` to be added upstream
before merging this. See [llvm-project PR #92136
](llvm/llvm-project#92136).

A small additional expansion to operand quantization is included in this
patch to address a model failure that occurs when unblocking the
quantized group convolutions in one of these onnx models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants