Skip to content

[Qwix] Conditionally store unquantized inputs in residuals to avoid memory bloat. - #361

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_977925928
Sep 9, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_977925928

Conversation

@copybara-service

Copy link
Copy Markdown

[Qwix] Conditionally store unquantized inputs in residuals to avoid memory bloat.

Avoid unconditionally saving lhs_in and rhs_in into the residuals tuple in
dot_general_qt_fwd. Instead, only retain unquantized operands when required by
backward contraction (e.g., use_original_residuals=True or tiled/microscaling
fallback) or by active gradient clipping.

@copybara-service
copybara-service Bot force-pushed the test_977925928 branch 2 times, most recently from adfeed1 to 17b16f9 Compare September 9, 2026 17:02
…emory bloat.

Avoid unconditionally saving `lhs_in` and `rhs_in` into the `residuals` tuple in
`dot_general_qt_fwd`. Instead, only retain unquantized operands when required by
backward contraction (e.g., `use_original_residuals=True` or tiled/microscaling
fallback) or by active gradient clipping.

PiperOrigin-RevId: 978634942
@copybara-service
copybara-service Bot merged commit 228fdd6 into main Sep 9, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_977925928 branch September 9, 2026 17:53
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