Add gemma3-4b E2E test scripts for pre-training and post-training#3939
Open
SurbhiJainUSC wants to merge 1 commit into
Open
Add gemma3-4b E2E test scripts for pre-training and post-training#3939SurbhiJainUSC wants to merge 1 commit into
SurbhiJainUSC wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
hengtaoguo
approved these changes
May 19, 2026
|
|
||
| # Non-Googlers please remember to point `BASE_OUTPUT_DIRECTORY` to the GCS paths where you have the scanned and unscanned checkpoints stored | ||
| BASE_OUTPUT_DIRECTORY=gs://runner-maxtext-logs/${MODEL_NAME} | ||
| UNSCANNED_CKPT_PATH=${BASE_OUTPUT_DIRECTORY}/to_maxtext/unscanned/${run_id}/0/items |
Collaborator
There was a problem hiding this comment.
I noticed in this script it didn't have to_maxtext run. Is this intended?
| scan_layers=false \ | ||
| hardware=cpu skip_jax_distributed_system=True \ | ||
| checkpoint_storage_use_zarr3=False checkpoint_storage_use_ocdbt=False \ | ||
| --eager_load_method='transformers' |
Collaborator
There was a problem hiding this comment.
This is correct, thanks for adding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds E2E scripts for pre-training and post-training, including bi-directional checkpoint conversion for Gemma3-4b.
Tests
Pre-Training:
SFT:
RL:
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.