Skip to content

Add process_prequantized_params to Qwix PTQ provider.#231

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_889094120
Mar 27, 2026
Merged

Add process_prequantized_params to Qwix PTQ provider.#231
copybara-service[bot] merged 1 commit intomainfrom
test_889094120

Conversation

@copybara-service
Copy link
Copy Markdown

Add process_prequantized_params to Qwix PTQ provider.

This change introduces a new function, process_prequantized_params, which allows loading pre-quantized parameters (e.g., from Orbax checkpoints) into a Qwix PTQ model. The function takes a tree of pre-quantized parameters and an abstract PTQ model to reconstruct the necessary WithAux structures, handling sharding and validating the payload format.

New tests are added to cover various scenarios, including sharded Einsum layers and asymmetric quantization.

@copybara-service copybara-service Bot force-pushed the test_889094120 branch 2 times, most recently from b0a5c13 to 2d9357f Compare March 27, 2026 05:09
This change introduces a new function, process_prequantized_params, which allows loading pre-quantized parameters (e.g., from Orbax checkpoints) into a Qwix PTQ model. The function takes a tree of pre-quantized parameters and an abstract PTQ model to reconstruct the necessary `WithAux` structures, handling sharding and validating the payload format.

New tests are added to cover various scenarios, including sharded Einsum layers and asymmetric quantization.

PiperOrigin-RevId: 890230892
@copybara-service copybara-service Bot merged commit c4f31ee into main Mar 27, 2026
@copybara-service copybara-service Bot deleted the test_889094120 branch March 27, 2026 05:17
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