feat(test): add modular E2E TPU testing scripts for GPTOSS-20B#4556
Draft
RexBearIU wants to merge 1 commit into
Draft
feat(test): add modular E2E TPU testing scripts for GPTOSS-20B#4556RexBearIU wants to merge 1 commit into
RexBearIU wants to merge 1 commit into
Conversation
RexBearIU
requested review from
A9isha,
Lumosis,
NuojCheng,
RissyRan,
SurbhiJainUSC,
abhinavclemson,
aireenmei,
bvandermoon,
darisoy,
dipannita08,
gagika,
gobbleturk,
gpolovets1,
hengtaoguo,
huytransformer,
igorts-git,
jacoguzo,
jiangjy1982,
jrplatin,
khatwanimohit,
mailvijayasingh,
mitalisi,
patemotter,
richjames0,
shralex,
suexu1025,
vipannalla and
xibinliu
as code owners
July 21, 2026 16:25
RexBearIU
force-pushed
the
gptoss-20b-e2e
branch
from
July 21, 2026 17:03
c709f09 to
569151c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
RexBearIU
force-pushed
the
gptoss-20b-e2e
branch
6 times, most recently
from
July 21, 2026 18:16
cbe2520 to
04d55d2
Compare
RexBearIU
marked this pull request as draft
July 21, 2026 20:29
RexBearIU
force-pushed
the
gptoss-20b-e2e
branch
from
July 22, 2026 01:25
3f4f9c1 to
c1b607c
Compare
4 tasks
RexBearIU
force-pushed
the
gptoss-20b-e2e
branch
3 times, most recently
from
July 22, 2026 02:22
7da9937 to
b1b5b0b
Compare
RexBearIU
force-pushed
the
gptoss-20b-e2e
branch
from
July 22, 2026 02:28
b1b5b0b to
2414d0b
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 implements modular end-to-end (E2E) TPU testing pipeline scripts for the GPTOSS-20B model, matching the exact modular pattern used by Gemma3-4B in
tests/end_to_end/tpu/gemma3/4b.This change is made to establish clean, modular end-to-end regression validation for GPTOSS-20B training, post-training, reinforcement learning, and conversion pipelines.
The PR introduces the following modular testing scripts:
test_gpt_oss_to_mt.sh: Converts Hugging Face weights to scanned and unscanned Orbax checkpoints, manages dependency setup (consolidated to run once), and executes forward-pass logit verification with robust KL divergence tolerance (--max_kl_div=0.01), matching Gemma3 test patterns.test_gpt_oss.sh: Refactored baseline pre-training script on synthetic datasets with dynamic device and hardware configurations.test_gpt_oss_sft.sh: Validates the Supervised Fine-Tuning (SFT) pipeline on conversational datasets, with verification decoding.test_gpt_oss_rl.sh: Validates Reinforcement Learning (RL) using GRPO, matching MoE vLLM parameters.test_gpt_oss_to_hf.sh: Converts the MaxText-compatible checkpoint back to Hugging Face format (running as the final pipeline step).All scripts support seamless running in TPU environments to facilitate automated verification and testing.
Important
Dependency / Blocking: This PR is blocked by and depends on #4560. The checkpoint conversion and forward pass logit checkers in this PR depend on the
--pure-nnxformatting introduced in #4560 to load and verify pure-NNX checkpoints correctly.Tests
Every script has been meticulously checked and verified on actual TPU VM architectures:
0.36(well within standard limits)0.0018(fully passes the robust--max_kl_div=0.01threshold)100.0%10/10Checklist
Before submitting this PR, please make sure (put X in square brackets):
gemini-reviewlabel.