Add RL GRPO gemma4-26b tutorial and fix doc conversion links#4580
Open
dasoto wants to merge 1 commit into
Open
Add RL GRPO gemma4-26b tutorial and fix doc conversion links#4580dasoto wants to merge 1 commit into
dasoto wants to merge 1 commit into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
dasoto
force-pushed
the
davidsotomora/gemma4-26b-grpo-tutorial
branch
from
July 23, 2026 19:38
d715bf6 to
1c20e9c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
dasoto
marked this pull request as ready for review
July 23, 2026 19:52
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
dasoto
requested review from
A9isha,
NuojCheng,
RissyRan,
SurbhiJainUSC,
abhinavclemson,
aireenmei,
darisoy,
dipannita08,
gagika,
gobbleturk,
hengtaoguo,
huytransformer,
igorts-git,
jiangjy1982,
khatwanimohit,
richjames0,
shralex,
suexu1025,
vipannalla and
xibinliu
as code owners
July 23, 2026 19:52
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 a Reinforcement Learning (GRPO) tutorial and launch script for gemma4-26b (26B-A4B MoE) on Ironwood (Cloud TPU v7x), following the same format as the existing gemma4-e4b recipe. It also fixes several broken documentation links in the existing RL tutorials and registers the per-model Gemma RL tutorials in the docs table of contents.
What's added
docs/tutorials/posttraining/rl_gemma4_26b.md— step-by-step tutorial to run gemma4-26b GRPO on the OpenMathInstruct-2 dataset on atpu7x-4x4x4(64-chip) slice. Mirrors the gemma4-e4b tutorial structure: prerequisites, HF auth, checkpoint conversion, chat-template setup, workload submission, monitoring, and export back to HF.src/maxtext/trainers/post_train/rl/scripts/run_gemma4_26b_rl.sh— XPK/Pathways launch script for the recipe. Mirrorsrun_gemma4_e4b_rl.shand applies the 26B-specific configuration (modelgemma4-26b, base tokenizergoogle/gemma-4-26B-A4B, MoE rollout expert-parallelism,tpu7x-4x4x4slice, pinned Pathways images, etc.).Docs housekeeping (fixes to existing RL tutorials)
rl_gemma4_26b.mdand the previously-orphanedrl_gemma4_e4b.mdinpost_training_index.md(RL list +toctree).../../build_maxtext.md→../build_maxtext.md).[...](hf-to-maxtext)/[...](maxtext-to-hf)links did not resolve. Replaced them with the working file+anchor form (../../guides/checkpointing_solutions/convert_checkpoint.md#hugging-face-to-maxtextand#maxtext-to-hugging-face), matching the pattern already used indpo.md/lora.md/rl_on_multi_host.md.rl.md,rl_gemma4_e4b.md,rl_gptoss_20b.md, andrl_qwen3_30b.md(scoped to the RL tutorials only).Tests
Please describe how you tested this change, and include any instructions and/or
commands to reproduce.
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.