Skip to content

Refactor and optimize the LHS fused quantized matmul kernel. - #352

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_963038497
Aug 13, 2026
Merged

Refactor and optimize the LHS fused quantized matmul kernel.#352
copybara-service[bot] merged 1 commit into
mainfrom
test_963038497

Conversation

@copybara-service

Copy link
Copy Markdown

Refactor and optimize the LHS fused quantized matmul kernel.

This change updates the LHS fused quantized matmul kernel to support 1D sub-channel quantization and subtiling. It splits the kernel into specialized single-K and multiple-K execution paths to improve performance. Additionally, the scale tensor layout is simplified from 4D to 2D, the quantization helper is updated to support axis-wise quantization using jnp.rint, and support for custom quantization functions is introduced.

@copybara-service
copybara-service Bot force-pushed the test_963038497 branch 2 times, most recently from 58ed420 to 93e1907 Compare August 13, 2026 18:46
This change updates the LHS fused quantized matmul kernel to support 1D sub-channel quantization and subtiling. It splits the kernel into specialized single-K and multiple-K execution paths to improve performance. Additionally, the scale tensor layout is simplified from 4D to 2D, the quantization helper is updated to support axis-wise quantization using jnp.rint, and support for custom quantization functions is introduced.

PiperOrigin-RevId: 964208286
@copybara-service
copybara-service Bot merged commit aa623ac into main Aug 13, 2026
@copybara-service
copybara-service Bot deleted the test_963038497 branch August 13, 2026 18:47
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.

1 participant