Saltar al contenido
Skillpedia
Deploy y nube (DevOps)22 mil · #10271

gke-ai-troubleshooting-tpu-performance-degradation

Qué hace

Esta skill ayuda a un agente de IA a encontrar la causa cuando el entrenamiento en TPU se vuelve más lento o los tiempos de paso se disparan en GKE. Es para ingenieros de ML que ven caer el rendimiento de su entrenamiento.

Cuándo usarla

  • ✓Cuando el ciclo de trabajo de la TPU cae un 15 por ciento o más durante una ejecución de entrenamiento en GKE.
  • ✓Cuando los tiempos de paso del entrenamiento se alargan de repente en un trabajo TPU de GKE.
  • ✓Cuando necesitas saber si el hardware, la limitación de red o tu propia carga de trabajo causan la ralentización.

Link de la skill

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-performance-degradation/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-performance-degradation/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi entrenamiento en TPU en GKE se ha vuelto bastante más lento esta semana. ¿Puedes averiguar por qué?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente revisa los eventos de monitorización de ML Diagnostics y las métricas del sistema de 1 minuto, y después las compara con las etiquetas de topología de los nodos para separar los límites de hardware y de red de los problemas de la carga de trabajo.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Troubleshoot GKE TPU performance degradation with ML Diagnostics Workload Monitoring

Diagnose and mitigate Cloud TPU training throughput drops and step-time regressions (15%+ drop in TPU duty cycle) on Google Kubernetes Engine (GKE) by correlating ML Diagnostics Workload Monitoring MonitoredEvent analyzer reports with 1-minute Cloud Monitoring system metrics and GKE node topology labels.


Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-performance-degradation)" and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-performance-degradation) to User-Agent headers.

Prerequisites

  • Tools: Install the Google Cloud SDK (gcloud with alpha component for gcloud alpha mldiagnostics) and kubectl.
  • Cloud Billing & Project Configuration: Verify an active billing account is linked (gcloud billing projects describe {project_id}), authenticate (gcloud auth login), set the target project (gcloud config set project {project_id}), and ensure container.googleapis.com, monitoring.googleapis.com, and hypercomputecluster.googleapis.com are enabled.
  • Supported workloads and GKE versions: Google Cloud ML Diagnostics only supports JAX on TPUs (see ML Diagnostics platform). Workload Monitoring is enabled by default, supports the jobset and job GKE job types, and is compatible with GKE versions 1.36.0-gke.4681000 and later, as stated in Configure GKE for ML Diagnostics. If a workload uses another framework (such as PyTorch) or another custom resource type, gcloud alpha mldiagnostics won't list ML runs or monitored events for it. On-demand profiling (Step 4 Path A) additionally requires the cluster setup described in that document.
  • Required IAM Roles:
    • Cluster Director Editor (roles/hypercomputecluster.editor), the role listed in the "IAM permissions" section of ML Diagnostics platform, for the ML Diagnostics CLI and API calls in this skill (ML runs, monitored events, and on-demand profiler sessions)
    • Monitoring Viewer (roles/monitoring.viewer) for the PromQL queries in Step 2
    • Kubernetes Engine Viewer (roles/container.viewer) for the kubectl get nodes query in Step 3
    • For remediation ([High Risk] steps): Kubernetes Engine Cluster Admin (roles/container.clusterAdmin)
  • Reference Documentation:
    • ML Diagnostics platform (Sections: "IAM permissions")
    • Configure GKE for ML Diagnostics (Sections: "Set up with gcloud CLI, Google Cloud console, or Terraform", "Manual installation", "Connection-operator")
    • Workload monitoring with ML Diagnostics (Sections: "Workload Monitoring and analyzers", "HBM Capacity Analyzer", "Host Memory Utilization Analyzer", "CPU Utilization Analyzer", "Access Workload Monitoring information through the API", "List all monitored events", "System Metrics")
    • Get started with the ML Diagnostics CLI (Sections: "List machine learning runs", "Monitored-events commands", "List profiler targets", "Capture on-demand profiler sessions")
    • Scale container resource requests and limits (Sections: "Identify workloads without resource requests or limits")
    • Auto-repair nodes (Sections: "Repair criteria", "Verify node auto-repair is enabled for a Standard node pool", "Enable auto-repair for an existing Standard node pool", "Node auto repair in TPU slice nodes")
    • [Deploy T
Preguntas frecuentes

¿Qué tamaño de caída se analiza?

Está pensada para caídas del 15 por ciento o más en el ciclo de trabajo de la TPU.

¿Necesita ML Diagnostics?

La skill se apoya en los informes de Workload Monitoring de ML Diagnostics, así que esa función es necesaria para el análisis completo.

¿Sirve también para entrenar en GPU?

No. La skill es para entrenamiento en Cloud TPU sobre GKE.

Detalles

Descripción original del autor

Diagnose GKE Cloud TPU training throughput drops and step-time regressions (15%+ TPU duty-cycle drop) using ML Diagnostics Workload Monitoring (`gcloud alpha mldiagnostics monitored-events` / `hypercomputecluster.googleapis.com/v1alpha`) and 1-minute Cloud Monitoring system metrics (`kubernetes.io/node/accelerator/*`). Distinguishes hardware and network fabric throttling from workload resource bottlenecks (HBM capacity, host memory, or host CPU saturation). Use when TPU training throughput or duty cycle drops without crashing pods, when `PERFORMANCE_DEGRADATION` monitored events fire, or when

repo: google/skills

Popularidad

Estrellas en GitHub
22 mil
Posición en el ranking
#10271
Licencia
Apache-2.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas