TPU のハング: サポートケースを登録する

TPU のハングについて Cloud サポートにお問い合わせいただく際は、次の情報をお知らせください。

必須

  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 と 3 行の TpuDiagnosticCoordinator WARNING ダイジェスト(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