Skip to content

Add option to use reciprocal for quantization instead of division.#196

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_857219715
Jan 16, 2026
Merged

Add option to use reciprocal for quantization instead of division.#196
copybara-service[bot] merged 1 commit intomainfrom
test_857219715

Conversation

@copybara-service
Copy link
Copy Markdown

Add option to use reciprocal for quantization instead of division.

Introduce USE_RECIPROCAL_FOR_QUANTIZATION to allow using multiplication by the inverse scale instead of division during quantization. This can potentially be more efficient in some cases, mirroring AQT's approach, but might incur precision loss.

@copybara-service copybara-service Bot force-pushed the test_857219715 branch 2 times, most recently from 38c781b to 4bb8de7 Compare January 16, 2026 22:35
Introduce USE_RECIPROCAL_FOR_QUANTIZATION to allow using multiplication by the inverse scale instead of division during quantization. This can potentially be more efficient in some cases, mirroring AQT's approach, but might incur precision loss.

PiperOrigin-RevId: 857312046
@copybara-service copybara-service Bot merged commit 80e0d9c into main Jan 16, 2026
@copybara-service copybara-service Bot deleted the test_857219715 branch January 16, 2026 22:49
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