Skip to content

Orbax auto/dag01 save local - #203

Closed
camiloCienet wants to merge 4 commits into
masterfrom
orbax-auto/dag01-save-local
Closed

Orbax auto/dag01 save local#203
camiloCienet wants to merge 4 commits into
masterfrom
orbax-auto/dag01-save-local

Conversation

@camiloCienet

@camiloCienet camiloCienet commented Aug 13, 2025

Copy link
Copy Markdown

Description

This change adds a new DAG which test and verifies the Orbax Emergency Checkpointer and the Multi-tier Checkpointing saving functionality. This DAG automate the installation of the mtc driver.,but requires an existing cluster.

Tests

Airflow/Composer

  • GCP Composer name: erniechang-test (under GCP project: cloud-ml-auto-solutions)
  • GCP Composer version: 2.13.1

Bucket with HNS (Hierarchical Name Space)

  • Bucket Name: gs://mtc-automation-bucket

Checklist

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

  • I have performed a self-review of my code.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run one-shot tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed.

@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 16 times, most recently from 31f2833 to f2675c1 Compare August 18, 2025 01:22
@xibinliu
xibinliu force-pushed the orbax-auto/dag01-save-local branch from f2675c1 to 7f42073 Compare August 18, 2025 01:35
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 7 times, most recently from ef50d9d to d0fefd6 Compare August 19, 2025 06:48
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 3 times, most recently from 90d8b46 to 8d82f17 Compare August 25, 2025 06:46
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread dags/orbax/util/validation_util.py
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/checkpoint_util.py Outdated
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/validation_util.py
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 3 times, most recently from 76b0753 to 4197b32 Compare August 25, 2025 08:52
Comment thread dags/orbax/util/checkpoint_util.py Outdated
Comment thread dags/orbax/util/checkpoint_util.py Outdated
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 6 times, most recently from e08a623 to 338a7a7 Compare August 26, 2025 08:30
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/util/validation_util.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 2 times, most recently from bc105d6 to f935d74 Compare August 27, 2025 09:47
Comment thread dags/orbax/util/checkpoint_util.py
Comment thread dags/orbax/util/checkpoint_util.py Outdated
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch from f935d74 to 523aa82 Compare August 28, 2025 03:26
Comment thread dags/orbax/maxtext_mtc_emergency_save_local.py Outdated
Comment thread xlml/utils/xpk.py Outdated
camiloCienet and others added 3 commits August 28, 2025 03:44
Fix: Refactor cpc dict into a CheckpointConfiguration class, that holds relevant info about cpc metadata.

Fix: Change name of DAG to be mtc and emc. mainly because both of these test are being tested.

Fix: Fix some try and catch exceptions that seems to be unnecessary.

Fix: Refactor whole Cpc delete task into two task initiate_cpc and wait_to_delete. wait_to_delete task is a sensor task that will check every 10 s if the delition already happened.

Fix: Two Dags testing mtc and emc (with replicator=true and replicator=false)

Fix: Change loggin.py library to logging_mtc.py names conflict.

Fix: Use abhinav-mtc xpk branch instead of main branch since xpk version > 0.4.1 crash airflow pod. b/437817546

Fix: Correct name of DAG to emtc (Emergency multitier Checkpointer).

Fix: Change name_id of the test to be related to Orbax. Create new tag with Orbax. Remove --restart-on-user-code-failure flag since is already outdated in both main and develop branch

Fix: Backup interval to longer. Only testing local saves. GCS testing is in DAG002

mend
@camiloCienet
camiloCienet force-pushed the orbax-auto/dag01-save-local branch 4 times, most recently from d932978 to 2126ca4 Compare August 28, 2025 07:14
Comment thread dags/orbax/util/validation_util.py Outdated
Fix: Change name logging_mtc.py to validate_util.py. Since validate_util as the filename make more sense, we are validating the logs.

Fix: checkpoint_steps --> to Optional. Since this value exist but is not use in this test.

Fix: Change name mx-sv --> max-sv-loc. Helps with clarity in bucket checkpoints.

Fixes for code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants