feat: MaxText Checkpoint Validation Agent Shape and Mock Tensor sub DAGs - #1318
Open
olufiyin19 wants to merge 3 commits into
Open
olufiyin19 wants to merge 3 commits into
olufiyin19 wants to merge 3 commits into
Conversation
olufiyin19
requested review from
RissyRan,
alfredyu-cienet,
andrewyct,
hyeygit,
jiangjy1982,
richardsliu,
severus-ho,
xibinliu and
yixinshi
as code owners
July 16, 2026 23:45
olufiyin19
force-pushed
the
checkpoint-validation-agent-shape-and-mock-tensor-dags
branch
from
July 17, 2026 17:57
946a87c to
2368ba8
Compare
olufiyin19
requested review from
bhavya01,
crankshaw-google,
gobbleturk,
ortibazar,
parambole,
polydier1,
shralex and
vipannalla
as code owners
July 17, 2026 17:57
Rohan-Bierneni
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for this change!
The code looks good but please make sure to align with any changes/updates made in the maxtext pr. Lets first merge the maxtext pr, then have a quick e2e test run before merging this pr.
…alse positive successes
olufiyin19
force-pushed
the
checkpoint-validation-agent-shape-and-mock-tensor-dags
branch
4 times, most recently
from
August 14, 2026 22:59
556ef41 to
ffa7047
Compare
olufiyin19
force-pushed
the
checkpoint-validation-agent-shape-and-mock-tensor-dags
branch
from
August 14, 2026 23:27
ffa7047 to
630af5d
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 the Airflow DAG infrastructure for the first two phases of the Automated Checkpoint Validation Pipeline. It establishes a master orchestrator that chains validation tasks sequentially, ensuring we "fast fail" on structural issues before spinning up expensive compute resources for tensor math.
Changes included in this PR:
maxtext_validation_master_dag.py: Added a master orchestrator DAG that sequentially triggers our validation Sub-DAGs.
dag_verify_checkpoint_shape.py: Added Sub-DAG A (Checkpoint Inspection). This performs a fast, low-compute structural check to ensure checkpoint tensor shapes and layer counts match the expected model configuration.
dag_verify_mock_tensor.py: Added Sub-DAG B (Mock Tensor Validation). This performs a dry-run forward pass using randomized mock tensors to verify memory allocation and syntax without verifying logit mathematics.
lib/utils.py: Added get_maxtext_validation_config() helper to abstract boilerplate TPU Kubernetes configuration. It dynamically builds the bash execution environment, injects maxtext_commit_hash overrides via Airflow Jinja templating, and creates the TpuGkeTest object so the Sub-DAGs remain clean.
Tests
Tests Performed:
I deployed these DAGs to a remote Airflow instance via Cloud VM and triggered the maxtext_validation_master_dag using a custom JSON DEFAULT_PARAMS payload (testing the qwen3-8b architecture).
Verified that the Master DAG correctly passed the runtime configuration down to the Sub-DAGs using TriggerDagRunOperator.
Verified that Sub-DAG A correctly pulled the checkpoint shapes and executed.
Verified that the Master DAG correctly halted until Sub-DAG A completed, and then successfully triggered Sub-DAG B.
Instruction and/or command lines to reproduce your tests:
Deploy the DAG files to your Composer environment's GCS bucket using bash scripts/upload-tests.sh
Open the GCP Console, navigate to the tpu-prod-env-multipod project, and go to "Managed Airflow".
Open the Airflow Webserver for the maxtext-validation-agent-dev environment.
Search for maxtext_validation_master_dag, click on it, and select "Trigger DAG w/ config".
Provide a test JSON payload and trigger. You can monitor the sub-tasks via the "Triggered DAG" hyperlinks in the execution details. (See attached screenshots).
List links for your tests (use go/shortn-gen for any internal link): ...
Checklist
Before submitting this PR, please make sure (put X in square brackets):