Skip to content

[WebNN EP] Support 8-bit MatMulNBits - #29025

Merged
Guenther Schmuelling (guschmue) merged 2 commits into
microsoft:mainfrom
Honry:webnn/matmulnbits-8bit
Jun 15, 2026
Merged

Guenther Schmuelling (guschmue) merged 2 commits into
microsoft:mainfrom
Honry:webnn/matmulnbits-8bit

Conversation

@Honry

Copy link
Copy Markdown
Contributor

Add support for 8-bit quantized weights (bits=8) in the MatMulNBits op builder. Previously only 4-bit was supported. The 8-bit path uses uint8 block size and scales the dequantized values appropriately.

Add support for 8-bit quantized weights (bits=8) in the MatMulNBits op
builder. Previously only 4-bit was supported. The 8-bit path uses uint8
block size and scales the dequantized values appropriately.
@Honry

Copy link
Copy Markdown
Contributor Author

@fdwr Dwayne Robinson (fdwr) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 minor comments, else seems fine to me.

Comment thread onnxruntime/core/providers/webnn/builders/impl/matMulNBits_op_builder.cc Outdated

@fdwr Dwayne Robinson (fdwr) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@guschmue
Guenther Schmuelling (guschmue) merged commit c5aa86e into microsoft:main Jun 15, 2026
85 checks passed
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.

3 participants