Skip to content

Add GPT-OSS-20b E2E test scripts - #4805

Merged
copybara-service[bot] merged 1 commit into
mainfrom
emma/gpt-oss-e2e
Aug 10, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
emma/gpt-oss-e2e

Conversation

@chiajunglien

Copy link
Copy Markdown
Collaborator

Description

This PR introduces end-to-end (E2E) testing and validation pipelines for the GPT-OSS-20b model in MaxText.

Tests (Testing on v5p-128 cluster)

Pre-Training:

export RUN_ID=$(date +%Y-%m-%d-%H-%M)
bash tests/end_to_end/tpu/gpt-oss/20b/test_gpt_oss_to_mt.sh $RUN_ID
bash tests/end_to_end/tpu/gpt-oss/20b/test_gpt_oss.sh $RUN_ID

SFT:

export RUN_ID=$(date +%Y-%m-%d-%H-%M)
bash tests/end_to_end/tpu/gpt-oss/20b/test_gpt_oss_to_mt.sh $RUN_ID
bash tests/end_to_end/tpu/gpt-oss/20b/test_gpt_oss_sft.sh $RUN_ID

RL:

export RUN_ID=$(date +%Y-%m-%d-%H-%M)
bash tests/end_to_end/tpu/gpt-oss/20b/test_gpt_oss_to_mt.sh $RUN_ID
bash tests/end_to_end/tpu/gpt-oss/20b/test_gpt_oss_rl.sh $RUN_ID

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modularizes the GPT-OSS-20b end-to-end testing pipeline by splitting the original script into separate, targeted scripts for checkpoint conversion, pre-training/inference, RL, SFT, and Hugging Face conversion. The review feedback identifies critical issues: escaped single quotes around the dot_product attention argument will cause configuration mismatches, and defaulting run_id to a timestamp in downstream scripts will cause failures since they rely on pre-existing checkpoints. Additionally, some script comments describing a three-step flow need to be updated to accurately reflect the actual single-step execution.

…S-20b

Introduces E2E test configurations and scripts for GPT-OSS-20b model,
covering both pre-training and post-training validation pipelines.
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@copybara-service
copybara-service Bot merged commit bf50bb9 into main Aug 10, 2026
72 of 74 checks passed
@copybara-service
copybara-service Bot deleted the emma/gpt-oss-e2e branch August 10, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants