maxtext-goodput
Skill2.5k starsChanged 4 days agoApache-2.0View on GitHub
Run and monitor MaxText training jobs with ML Goodput Measurement (`ml-goodput-measurement`). Use when enabling Goodput and Badput recording or monitoring in MaxText, configuring cumulative or rolling-window Goodput flags, or inspecting Goodput outputs in training logs, Google Cloud Logs Explorer, Metrics Explorer, and Google Cloud Monitoring Dashboards.
Trending
Less talk lately.about the whole repository
Who's talking about AI-Hypercomputer/maxtext
- ROCm/jax-titan“General Adapters”GitHub · Nov 19, 2026 · 1 reactions
- google/tunix“Let the dist_rl rollout node load MaxText checkpoints without weight sync”GitHub · Nov 19, 2026 · 1 reactions
- google/tunix“Stacked on #2979 (`uwlei/rl-4600-final-tunix` @ `54f488d8`); **retarget base branch to `atwigg/mlperf` once …”GitHub · Oct 21, 2026 · 1 reactions
- google/tunix“[MLPerf RL 397B]Supersedes #2884, #2948, #2913, and #2940 onto `atwigg/mlperf`.”GitHub · Oct 21, 2026 · 1 reactions
- AI-Hypercomputer/tpu-recipes“Add recipe for training Maxtext Qwen3.5-35B-A3B with v6e-256 #recipebot”GitHub · Oct 20, 2026 · 1 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Nov 19, 2026General Adapters — ROCm/jax-titan1 reaction · 2 comments
- Nov 19, 2026Let the dist_rl rollout node load MaxText checkpoints without weight sync — google/tunix1 reaction · 1 comment
- Oct 21, 2026Stacked on #2979 (`uwlei/rl-4600-final-tunix` @ `54f488d8`); **retarget base branch to `atwigg/mlperf` once #2979 merges**. — google/tunix1 reaction · 2 comments
- Oct 21, 2026[MLPerf RL 397B]Supersedes #2884, #2948, #2913, and #2940 onto `atwigg/mlperf`. — google/tunix1 reaction · 2 comments
- Oct 20, 2026Add recipe for training Maxtext Qwen3.5-35B-A3B with v6e-256 #recipebot — AI-Hypercomputer/tpu-recipes1 reaction
45 more on GitHub
- Oct 15, 2026orchestrator: compact routed_experts wire packing with uint10/uint8 encoding and unrouted-token stripping — google/tunix1 reaction · 1 comment
- Oct 6, 2026feat(maxtext): bump commit pin for RBF overflow logging — google/tunix1 reaction · 1 comment
- Sep 30, 2026Add ROLLOUT_FP8 / TRAINER_FP8 switches for FP8 MoE in all recipe launchers — google/tunix1 reaction · 1 comment
- Sep 30, 2026feat(recipes): add FP8_MOE environment variable directly to mlperf recipes — google/tunix1 reaction · 1 comment
- Sep 19, 2026Migrate Llama 3.1 8B on Trillium (v6e-8) to Cluster Toolkit — AI-Hypercomputer/tpu-recipes1 reaction
- Oct 25, 2025Feature Enhancement: Add Advanced Post-Training and Fine-Tuning Capabilities to Simply — google-deepmind/simply1 reaction
- Dec 2, 2026With `weight_sync_config.mode: none` (evaluation), a MaxText vLLM rollout had no way to load real weights because config resolution required Raiden weight sync. Add checkpoint loading support for both unscanned and scanned MaxText checkpoints on the stock `dist_rl` rollout node, plus opt-in Pathways — google/tunix0 reactions · 1 comment
- Oct 30, 2026[AutoPGLE] Let the host run ahead and enqueue work — jax-ml/jax0 reactions
- Oct 20, 2026Migrate MaxText E2E checkpoint conversion (to-mt and to-hf) to CPU cluster — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Oct 19, 2026Layer streaming: measure saving the attention projections instead of recomputing the whole layer — MakazhanAlpamys/Soup0 reactions · 3 comments
- Oct 16, 2026Migrate MaxText E2E checkpoint conversion (to-mt and to-hf) to CPU cluster — CIeNET-International/ml-auto-solutions-30 reactions · 1 comment
- Oct 14, 2026update maxtext pin — google/tunix0 reactions · 1 comment
- Oct 13, 2026recipes: opt-in Raiden trainer knobs for the pathways-worker and trainer client — google/tunix0 reactions · 2 comments
- Oct 12, 2026Documentation Link Check Failed - 2026-10-12 — gitrajav/maxtext0 reactions
- Oct 10, 2026recipes: add USE_BATCHED_RPA_LONG_CTX_KERNEL switch (default true) -> attention=vllm_batched_rpa_long_ctx — google/tunix0 reactions · 2 comments
- Oct 8, 2026feat(multipod): Add DAG `maxtext_distillation` with Cluster Toolkit — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Oct 7, 2026feat(multipod): Add DAG `maxtext_distillation` with Cluster Toolkit — CIeNET-International/ml-auto-solutions-30 reactions · 1 comment
- Oct 7, 2026 feat(multipod): add `maxtext_distillation` DAG with Cluster Toolkit — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Oct 5, 2026Documentation Link Check Failed - 2026-10-05 — gitrajav/maxtext0 reactions
- Oct 3, 2026[Add] MaxText (AI-Hypercomputer/maxtext) — PyTorchKR/landscape0 reactions
- Oct 3, 20263. MaxText: run one small pinned configuration after lower-level checks — egesamuray/jax-rocm-systems-lab0 reactions
- Sep 28, 2026Documentation Link Check Failed - 2026-09-28 — gitrajav/maxtext0 reactions
- Sep 21, 2026Documentation Link Check Failed - 2026-09-21 — gitrajav/maxtext0 reactions
- Sep 21, 2026feat(multipod): Add test_scope param to `maxtext_e2e_tests` — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Sep 21, 2026feat(multipod): Add test_scope param to `maxtext_e2e_tests` — CIeNET-International/ml-auto-solutions-30 reactions · 5 comments
- Sep 19, 2026[RL] Sever autodiff graph with jnp.where on masked/padded tokens in G… — google/tunix0 reactions
- Sep 17, 2026# Description — matrawybarte-lgtm/gpc0 reactions
- Sep 15, 2026fix(checkpointing, infra): orchestrator save interval, save-sync serialization, memory requests, and fail-fast — google/tunix0 reactions
- Sep 14, 2026Documentation Link Check Failed - 2026-09-14 — gitrajav/maxtext0 reactions
- Sep 7, 2026Documentation Link Check Failed - 2026-09-07 — gitrajav/maxtext0 reactions
- Aug 31, 2026Documentation Link Check Failed - 2026-08-31 — gitrajav/maxtext0 reactions
- Aug 24, 2026feat: support multimodal models and eager loading in checkpoint conversion — GoogleCloudPlatform/accelerated-platforms0 reactions
- Aug 24, 2026Documentation Link Check Failed - 2026-08-24 — gitrajav/maxtext0 reactions
- Aug 22, 2026feat: RLVllmSampler weight sync via Raiden, bound in-process in the EngineCore worker — vllm-project/tpu-inference0 reactions · 1 comment
- Aug 18, 2026Update MaxText E2E TPU DAG checkpoint paths for reduced step count — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Aug 17, 2026Documentation Link Check Failed - 2026-08-17 — gitrajav/maxtext0 reactions
- Aug 10, 2026Documentation Link Check Failed - 2026-08-10 — gitrajav/maxtext0 reactions
- Jul 20, 2026Update maxtext_moe_tpu_e2e DAG: hf access token & refactor — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Jul 17, 2026[Maxtext] [Tunix] New Weight Sync for Post-train, maxtext -> maxtext — google/tunix0 reactions
- Jul 16, 2026feat: Restrict DAG `maxtext_e2e_tests` to GitHub schedule events — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Jul 16, 2026feat: Restrict DAG `maxtext_e2e_tests` to GitHub schedule events — CIeNET-International/ml-auto-solutions-30 reactions · 2 comments
- Jun 9, 2026add qwen3.5 35b to xlml tests — GoogleCloudPlatform/ml-auto-solutions0 reactions
- May 21, 2026Remove collect_stack_trace config from checkpointing test — GoogleCloudPlatform/ml-auto-solutions0 reactions
- Feb 24, 2026Experiment: cast pallas xent dW to bf16 (keep fp32 accum) and validate speed + numerics — marin-community/marin0 reactions · 2 comments
- Feb 20, 2026Add Qwen3-Next tests to MaxText_MoE DAG — GoogleCloudPlatform/ml-auto-solutions0 reactions
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- maxtext-pr-uploadSkill
- maxtext-remat-estimatorSkill
- model-bringup-m3Skill
- model-bringupSkill
- update-changelogSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Unique
run_nameper run: Always use a fresh run_name (or goodput_job_name) for each new experiment so goodput_<run_name> does not mix … - Very specific: line 78
Follow the MaxText Pre-Training on TPUs tutorial (llama3-8b) and append the Goodput flags:
- Distinctive: line 113
Verify that the background uploaders started, published metrics, and flushed on exit:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MaxText Goodput Measurement
Reference docs:
ml-goodput-measurementREADME- MaxText Goodput Monitoring Guide
- Implementation:
src/maxtext/common/goodput.pyandsrc/maxtext/configs/base.yml
1. Overview & Metrics
- Goodput is the percentage of a training job's wall-clock time spent on productive training steps.
- Badput is the remaining wall-clock time spent on non-training overhead (initialization, compilation, synchronous data loading, blocking checkpoint saves/restores, disruptions, and custom events).
In MaxText, Goodput measurement runs on the lead host (jax.process_index() == 0) in two parts:
- Record (
enable_goodput_recording=true):GoodputRecorderwrites start/end timestamps for job, step, and overhead events to Google Cloud Logging undergoodput_<run_name>. - Monitor (
monitor_goodput=true):GoodputMonitorruns background uploaders that read Cloud Logging viaGoodputCalculatorand export cumulative and rolling-window metrics to TensorBoard and Google Cloud Monitoring (GCM).
Why Use Goodput Library Instead of a Vanilla Timer?
- Survives crashes & preemptions: Persists timestamps to Cloud Logging to measure cluster recovery downtime (
INFRASTRUCTURE_RECOVERY_FROM_DISRUPTION) and retroactively reclassify steps lost after a rollback (WASTED_PROGRESS_FROM_DISRUPTION). - Separates blocking vs. async I/O: Counts only synchronous stalls (
DATA_LOADING_SYNC,UNPRODUCTIVE_CHECKPOINT_SAVE_TIMEvia Orbax Cloud Logger) without penalizing overlapped prefetching or background checkpointing. - Isolates compilation & step anomalies: Automatically separates first-step JAX/XLA compilation (
PROGRAM_STARTUP) from steady-state steps and tracksworkload/step_time_deviation. - Full wall-clock attribution & rolling windows: Reconciles 100% of job lifetime into standardized
BadputTypebuckets across both cumulative and sliding windows (1h, 1d, 3d, 5d). - Zero training-loop overhead: Logs asynchronously from host 0 only and computes/exports metrics out-of-process to TensorBoard and Google Cloud Monitoring.
Google Cloud Monitoring (GCM) Metrics
Full details: Access Metrics on Google Cloud Monitoring.
| Metric | GCM Metric (compute.googleapis.com/...) | PromQL Name (compute_googleapis_com:...) | Description |
| Cumulative Goodput | workload/goodput_time | workload_goodput_time | Cumulative productive training time (s), labeled by goodput_source. |
| Cumulative Badput | workload/badput_time | workload_badput_time | Cumulative overhead time (s), labeled by badput_source. |
| Rolling Window Goodput | workload/interval_goodput | workload_interval_goodput | $\frac{Productive time (s)}{each rolling window (window_size)(s)}$, labeled by goodput_source. |
| Rolling Window Badput | workload/interval_badput | workload_interval_badput | $\frac{Overhead time (s)}{each rolling window (window_size)(s)}$, labeled by badput_source. |
| Total Elapsed Time | workload/total_elapsed_time | workload_total_elapsed_time | Total wall-clock elapsed time since job start (s). |
| Max Productive Steps | workload/max_productive_steps | workload_max_productive_steps | Highest completed productive step count. |
| Disruption Count | workload/disruptions | workload_disruptions | Cumulative count of job disruptions. |
| Step Time Deviation | workload/step_time_deviation | workload_step_time_deviation | Step duration deviation from ideal step time (s). |
| Ideal Step Time | workload/performance | workload_performance | Configured or computed ideal step time (s). |
| Stepping Slice Efficiency | workload/stepping_slice_efficiency | workload_stepping_slice_efficiency | Active stepping slices vs. allocated slices (Pathways elastic workloads). |
| Available Slice Efficiency | workload/available_slice_efficiency | workload_available_slice_efficiency | Available healthy slices vs. allocated slices (Pathways elastic workloads). |
Badput Breakdown Categories (BadputType)
Full details: Retrieve Badput Breakdown.
TPU_INITIALIZATION: Device discovery, slice initialization, and driver/buffer setup.TRAINING_PREP: Checkpoint manager creation, mesh/model initialization, and optimizer setup.PROGRAM_STARTUP: JAX tracing, XLA compilation, and runtime startup.DATA_LOADING_SYNC: Blocking batch fetch time (DATA_LOADING_ASYNCtracks overlapped non-blocking loading without penalizing Goodput).UNPRODUCTIVE_CHECKPOINT_SAVE_TIME/UNPRODUCTIVE_CHECKPOINT_RESTORE_TIME: Blocking checkpoint save/restore time (requiresenable_checkpoint_cloud_logger=truewith Orbax).WASTED_PROGRESS_FROM_DISRUPTION/INFRASTRUCTURE_RECOVERY_FROM_DISRUPTION: Productive steps lost since the last checkpoint and infrastructure recovery time after a disruption.CUSTOM_BADPUT_EVENTS/OTHER: Blocking non-training events (e.g., eval, SDC checks) and uncategorized overhead.
2. Run Pre-Training with Goodput Enabled
Prerequisites
- Unique
run_nameper run: Always use a freshrun_name(orgoodput_job_name) for each new experiment sogoodput_<run_name>does not mix logs from earlier runs into cumulative Goodput. - Cloud Logging access scope: Nodes need Cloud Logging read/write access (
https://www.googleapis.com/auth/cloud-platform).
Sample Script
Follow the MaxText Pre-Training on TPUs tutorial (llama3-8b) and append the Goodput flags:
python3 -m maxtext.trainers.pre_train.train \
model_name=llama3-8b \
run_name=${YOUR_JOB_NAME?} \
base_output_directory=${BASE_OUTPUT_DIRECTORY?} \
dataset_type=synthetic \
steps=20 \
enable_goodput_recording=true \
monitor_goodput=true \
enable_rolling_window_goodput=true \
enable_checkpoint_cloud_logger=true \
checkpoint_period=5Key Flags (src/maxtext/configs/base.yml)
| Flag | Default | Description |
enable_goodput_recording | false | Record job, step, and overhead timestamps to Cloud Logging (goodput_<run_name>). |
monitor_goodput | false | Start background GoodputMonitor uploader on host 0 (TensorBoard + GCM). |
enable_rolling_window_goodput | true | Upload rolling-window Goodput/Badput to GCM when monitor_goodput=true. |
rolling_windows_seconds | [3600, 86400, 259200, 432000] | Rolling window sizes in seconds (1h, 1d, 3d, 5d). |
enable_checkpoint_cloud_logger | false | Enable Orbax structured Cloud Logger for checkpointing Badput breakdown. |
goodput_upload_interval_seconds | 30 | Upload interval (s) for cumulative and rolling-window metrics. |
enable_pathways_goodput | false | Set to true when running on Pathways. |
3. Where to Find the Output
A. Training Log
Verify that the background uploaders started, published metrics, and flushed on exit:
- Startup:
Started Cumulative Goodput upload to Tensorboard & GCM in the background!andStarted Rolling Window Goodput upload to Tensorboard & GCM in the background! - Periodic upload:
gcp_metrics.py ... 'Sent Goodput metrics to GCM Monitoring.' - Shutdown:
Flushed final metrics and safe exited from rolling window Goodput monitoring.andFlushed final metrics and safe exited from cumulative Goodput monitoring.
B. Google Cloud Logs Explorer
Open Logging > Logs Explorer (https://console.cloud.google.com/logs/query) and query goodput_<RUN_NAME>:
logName=("projects/<PROJECT_ID>/logs/goodput_<RUN_NAME>")
timestamp >= "2026-09-25T17:00:00-07:00"
AND timestamp <= "2026-09-25T19:00:00-07:00"Each entry's jsonPayload contains the recorded event timestamps (job_start_time, tpu_init_start_time, training_prep_start_time, data_loading_start_time, step_start_time, step_count, job_end_time).
C. Google Cloud Metrics Explorer
Open Monitoring > Metrics Explorer (https://console.cloud.google.com/monitoring/metrics-explorer), switch to PromQL, and filter by workload_id="<RUN_NAME>":
label_replace(compute_googleapis_com:workload_goodput_time{workload_id="<RUN_NAME>"}, "m", "goodput_time", "", "")
or label_replace(compute_googleapis_com:workload_badput_time{workload_id="<RUN_NAME>"}, "m", "badput_time", "", "")
or label_replace(compute_googleapis_com:workload_total_elapsed_time{workload_id="<RUN_NAME>"}, "m", "total_elapsed_time", "", "")
or label_replace(compute_googleapis_com:workload_max_productive_steps{workload_id="<RUN_NAME>"}, "m", "max_productive_steps", "", "")
or label_replace(compute_googleapis_com:workload_disruptions{workload_id="<RUN_NAME>"}, "m", "disruptions", "", "")
or label_replace(compute_googleapis_com:workload_step_time_deviation{workload_id="<RUN_NAME>"}, "m", "step_time_deviation", "", "")
or label_replace(compute_googleapis_com:workload_performance{workload_id="<RUN_NAME>"}, "m", "performance", "", "")
or label_replace(compute_googleapis_com:workload_interval_goodput{workload_id="<RUN_NAME>"}, "m", "interval_goodput", "", "")
or label_replace(compute_googleapis_com:workload_interval_badput{workload_id="<RUN_NAME>"}, "m", "interval_badput", "", "")D. Google Cloud Monitoring Dashboard
- In Monitoring > Dashboards (
https://console.cloud.google.com/monitoring/dashboards), importml_goodput_measurement/dashboards/goodput_dashboard.json. - Filter the dashboard by
workload_id: <RUN_NAME>over the run's time range to view Cumulative and Rolling Window Goodput/Badput breakdown charts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

