Add GEPA prompt optimization tutorial and clean up Qwen3 configs#3642
Merged
copybara-service[bot] merged 1 commit intomainfrom Apr 22, 2026
Merged
Add GEPA prompt optimization tutorial and clean up Qwen3 configs#3642copybara-service[bot] merged 1 commit intomainfrom
copybara-service[bot] merged 1 commit intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
shralex
approved these changes
Apr 10, 2026
fcddfc5 to
e27c88b
Compare
e27c88b to
0dba38c
Compare
shralex
reviewed
Apr 17, 2026
shralex
approved these changes
Apr 17, 2026
d18ab79 to
5092209
Compare
shralex
reviewed
Apr 18, 2026
360cbc2 to
36d7beb
Compare
3e88788 to
0be7b1b
Compare
SurbhiJainUSC
approved these changes
Apr 21, 2026
63901ff to
9b6f8c2
Compare
c9677b8 to
633eca2
Compare
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 introduces a new tutorial notebook demonstrating how to use GEPA (Generic Evaluation and Prompt Adaptation) to optimize system prompts for MaxText models. It also includes minor configuration cleanups for Qwen3 models in the checkpoint conversion utility.
The specific changes include:
src/maxtext/examples/maxtext_with_gepa.ipynb):uv.qwen3-4bcheckpoint.src/maxtext/checkpoint_conversion/utils/hf_model_configs.py):use_sliding_windowparameter from the Qwen3 configurations, as it is no longer supported.Tests
The changes primarily consist of an example notebook. The notebook contains reproducible steps to run end-to-end tests on a TPU VM, which covers:
Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.