Skip to content

Robust parameter identification for Qwix. - #281

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_917671214
May 25, 2026
Merged

Robust parameter identification for Qwix.#281
copybara-service[bot] merged 1 commit into
mainfrom
test_917671214

Conversation

@copybara-service

Copy link
Copy Markdown

Robust parameter identification for Qwix.

This CL enhances the parameter identification logic in find_param to better handle WithAux objects and auxiliary types in NNX and Linen modules.

Key changes:

  • Refined find_param to handle WithAux input and correctly map its inner array to parameter names.
  • Conditionally extract .value for nnx.Param nodes to ensure robust parameter discovery.
  • Improved JAX tracer graph walking to handle auxiliary wrappers across scan boundaries.
  • Added support for jax.sharding.PartitionSpec in update_sharding and update_boxed.
  • Added unit tests in flax_util_test.py to verify these enhancements.

@copybara-service
copybara-service Bot force-pushed the test_917671214 branch 4 times, most recently from 16628ad to 4ca162b Compare May 25, 2026 06:47
This CL enhances the parameter identification logic in find_param to better handle WithAux objects and auxiliary types in NNX and Linen modules.

Key changes:
- Refined find_param to handle WithAux input and correctly map its inner array to parameter names.
- Conditionally extract .value for nnx.Param nodes to ensure robust parameter discovery.
- Improved JAX tracer graph walking to handle auxiliary wrappers across scan boundaries.
- Added support for jax.sharding.PartitionSpec in update_sharding and update_boxed.
- Added unit tests in flax_util_test.py to verify these enhancements.

PiperOrigin-RevId: 920802267
@copybara-service
copybara-service Bot merged commit 6a33d87 into main May 25, 2026
@copybara-service
copybara-service Bot deleted the test_917671214 branch May 25, 2026 06:56
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