gke-ai-troubleshooting-tpu-mxla-hang
Skill by google
Diagnoses GKE Cloud TPU multi-slice training hangs using Megascale HANG_DETECTED logs, MXLA Hang Analyzer events, and 1-minute multi-slice latency metrics. Built for engineers running JAX training jobs on TPUs.
Install gke-ai-troubleshooting-tpu-mxla-hang
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gke-ai-troubleshooting-tpu-mxla-hang ~/.claude/skills/gke-ai-troubleshooting-tpu-mxla-hangRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install gke-ai-troubleshooting-tpu-mxla-hang in Claude Code
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/gke-ai-troubleshooting-tpu-mxla-hang ~/.gemini/antigravity-cli/skills/gke-ai-troubleshooting-tpu-mxla-hangAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gke-ai-troubleshooting-tpu-mxla-hang in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill diagnoses Cloud TPU multi-slice training hangs on Google Kubernetes Engine. It queries Megascale HANG_DETECTED logs, lists hang monitored events from the ML Diagnostics Megascale XLA (MXLA) Hang Analyzer, and correlates them with 1-minute Cloud Monitoring multi-slice latency metrics and GKE node topology labels. Each finding is routed to a category, such as compiler or HLO divergence, host data input stalls, hardware or network faults, or an analyzer result that is not detected or unknown.
It is written for engineers running JAX training jobs on GKE TPUs who see jobs freeze without progressing steps or stall in collective operations. The skill is read-only: it runs diagnostic commands and gives any fix for the user to apply. It does not cover gradual throughput drops or pod preemption, which the description assigns to other skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Log check for HANG_DETECTEDQueries GKE container logs in Cloud Logging for HANG_DETECTED messages in a time window.
- Hang monitored eventsLists and describes MXLA Hang Analyzer reports using gcloud alpha mldiagnostics monitored-events.
- Multi-slice metric correlationRuns read-only PromQL queries on 1-minute multi-slice latency metrics for the incident window.
- Hang category routingRoutes each finding to a path for compiler divergence, data input stalls, hardware faults, or unknown causes.
What you need
- Google Cloud SDK with the alpha component
- kubectl
- A Google Cloud project with billing enabled and the required APIs turned on
- JAX workloads on TPUs
- LibTPU 0.40.0 or later
- GKE version 1.36.0-gke.4681000 or later
Try asking
- Check my TPU multi-slice job for HANG_DETECTED logs in the last hour
- Show the MXLA Hang Analyzer report for this ML run
- Correlate my training hang with multi-slice latency metrics
Good to know
- Read-only: the skill never drains, deletes, or re-creates nodes.
- Google Cloud ML Diagnostics supports JAX on TPUs only.
- The Megascale XLA hang analyzer requires LibTPU 0.40.0 or later.
- Does not cover gradual throughput drops or pod preemption restarts.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/gke-ai-troubleshooting-tpu-mxla-hang/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md15 KB -
references/attribution.md2 KB -
references/path-a-compiler-hlo-divergence.md964 B -
references/path-b-program-queueing-input-stall.md1 KB -
references/path-c-hardware-network-faults.md3 KB
Show all 7 files
-
references/path-d-no-detected-or-unknown.md2 KB -
references/path-e-healthy-telemetry.md272 B
Alternatives to gke-ai-troubleshooting-tpu-mxla-hang
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
gke-ai-troubleshooting-tpu-mxla-hang: common questions
What does this skill check for?
It checks multi-slice TPU training jobs that freeze, emit HANG_DETECTED, or stall in collective operations. It uses Megascale logs, MXLA Hang Analyzer events, and 1-minute multi-slice metrics.
Does it change my GKE cluster?
No. The source says to run read-only diagnostic commands only and to give any fix to the user to apply.
Which frameworks does it support?
The source says Google Cloud ML Diagnostics supports only JAX on TPUs. Other frameworks such as PyTorch are not listed by the gcloud alpha mldiagnostics commands.
How do I install gke-ai-troubleshooting-tpu-mxla-hang?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gke-ai-troubleshooting-tpu-mxla-hang free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is gke-ai-troubleshooting-tpu-mxla-hang safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gke-ai-troubleshooting-tpu-mxla-hang?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
