Skip to content

Make GCP region configurable for managed ML diagnostics runs in MaxText#4130

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_929618285
Open

Make GCP region configurable for managed ML diagnostics runs in MaxText#4130
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_929618285

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Make GCP region configurable for managed ML diagnostics runs in MaxText
to support multi-region deployments.
managed_mldiagnostics_region defaults to empty string. When empty,
the SDK will auto-detect the region from GCP metadata server.

  • Add strictly typed managed_mldiagnostics_region: str = "" to ManagedMLDiagnostics Pydantic class in types.py.
  • Add managed_mldiagnostics_region: "" to base.yml.
  • Pass configured region directly to machinelearning_run in managed_mldiagnostics.py, falling back to None if empty to trigger SDK auto-detection.

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/maxtext/common/managed_mldiagnostics.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@copybara-service copybara-service Bot force-pushed the test_929618285 branch 4 times, most recently from 7ed9174 to d2ca044 Compare June 12, 2026 12:56
@copybara-service copybara-service Bot changed the title Add managed_mldiagnostics_region to MaxText configuration Make GCP region configurable for managed ML diagnostics runs in MaxText Jun 12, 2026
@copybara-service copybara-service Bot force-pushed the test_929618285 branch 3 times, most recently from 89cd5a2 to c5daaf8 Compare June 13, 2026 04:14
to support multi-region deployments.
`managed_mldiagnostics_region` defaults to empty string. When empty,
the SDK will auto-detect the region from GCP metadata server.

- Add strictly typed `managed_mldiagnostics_region`: str = "" to `ManagedMLDiagnostics` Pydantic class in `types.py`.
- Add `managed_mldiagnostics_region`: "" to `base.yml`.
- Pass configured region directly to `machinelearning_run` in `managed_mldiagnostics.py`, falling back to `None` if empty to trigger SDK auto-detection.

PiperOrigin-RevId: 929618285
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.

1 participant