Skip to content

Add Gemma 4 Orbax checkpoint loading support to Tunix.#1553

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_924575535
Open

Add Gemma 4 Orbax checkpoint loading support to Tunix.#1553
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_924575535

Conversation

@copybara-service

Copy link
Copy Markdown

Add Gemma 4 Orbax checkpoint loading support to Tunix.

  • New params.py loader that normalizes upstream Orbax checkpoint keys
    (both semi-flat and nested formats) to the Tunix NNX parameter layout,
    with multimodal parameter pruning and shape validation.
  • Comprehensive unit tests for key mapping, gating_einsum handling, and
    format parity.
  • Patch model.py call to accept **kwargs for segment_ids compatibility
    with the RL sequence packing pipeline.
  • Register Gemma 4 in automodel.py.

@google-cla

google-cla Bot commented Jun 1, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

- New params.py loader that normalizes upstream Orbax checkpoint keys
  (both semi-flat and nested formats) to the Tunix NNX parameter layout,
  with multimodal parameter pruning and shape validation.
- Comprehensive unit tests for key mapping, gating_einsum handling, and
  format parity.
- Patch model.py __call__ to accept **kwargs for segment_ids compatibility
  with the RL sequence packing pipeline.
- Register Gemma 4 in automodel.py.

PiperOrigin-RevId: 924575535
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