TPU ค้าง: ยื่นเรื่องเคสขอรับความช่วยเหลือ

เมื่อติดต่อทีมสนับสนุนของ Cloud เกี่ยวกับ TPU ที่ค้าง โปรดระบุข้อมูลต่อไปนี้

ต้องระบุ

  1. อาร์ติแฟกต์การวินิจฉัยจากโฮสต์ทุกรายการ:
    tpu_stall_summary_*.pb,
    tpu_compiler_metadata_*.pb,
    tpu_core_dump_*.bin (หากคุณเปิดใช้--xla_tpu_diagnostic_collect_core_dumps=true) และ
    เอาต์พุตของ python -m libtpu.diagnostics ./diag/ (libtpu ≥ 0.0.48)
  2. ประเภทและโทโพโลยี TPU (เช่น v5litepod-16, v4-32)
  3. เวอร์ชันเฟรมเวิร์กและ libtpu:

    python -c "import jax; print(jax.__version__)"
    pip show libtpu | grep Version
    

มีประโยชน์

  1. stderr ของภาระงานจากช่วงที่เกิดการหยุดทำงาน รวมถึง PendingEventLogger และไดเจสต์ TpuDiagnosticCoordinator WARNING 3 บรรทัด (TPU stall snapshot (...), TPU stall artifact: ..., Next: ...)
  2. ใช้ LIBTPU_INIT_ARGS สำหรับงาน เมื่อจำลองการหยุดทำงานเพื่อส่งให้ทีมสนับสนุน เราขอแนะนำให้ทำดังนี้

    export LIBTPU_INIT_ARGS="--xla_tpu_impure_diagnostic_artifacts_dir=gs://MY_BUCKET/tpu-diagnostics/ --xla_tpu_debug_sflag_wait_timeout_ms=600000 --xla_tpu_diagnostic_cooldown_duration=5m"
    
  3. สคริปต์การฝึกหรือตัวจำลองขั้นต่ำ

  4. ข้อมูลเวลา - เหตุการณ์เกิดขึ้นเมื่อใด อยู่ในขั้นตอนการฝึกใด และเกิดซ้ำหรือไม่

เทมเพลต

Title: TPU hang on [TPU type]

Environment:
  TPU: v5litepod-16
  JAX: 0.11.1
  libtpu: 0.0.51

What happened:
  Training hung at step 15,000 after ~2 hours. No error in stderr.

Stall detection log lines:
  [paste the PendingEventLogger and TpuDiagnosticCoordinator lines]

Attached: tpu_stall_summary_*.pb, tpu_compiler_metadata_*.pb