megatron_mmlu hangs with context parallelism of 4

オープン
#3,178 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

The hang is in the MMLU evaluation path in modelopt/torch/utils/plugins/megatron_mmlu.py, exercised by test_megatron_generate_and_mmlu[cp] in tests/gpu_megatron/torch/utils/plugins/test_utils_megatron.py. Start by running that test with context_parallel_size=4 and checking which rank stalls and where the TE 'unbatched P2P op' warnings originate. Done means the MMLU run completes all 90 batches at CP=4 without the queue timeout.

索引モデルが issue の本文から書いたものです。

説明

megatron_mmlu (modelopt/torch/utils/plugins/megatron_mmlu.py, exercised by test_megatron_generate_and_mmlu[cp]) hangs with context parallelism of 4 ranks.

Repro

  • Container nvcr.io/nvidia/nemo:26.10 on 4x GB300, Megatron-Bridge 24b6adc89f5.
  • pytest --run-manual tests/gpu_megatron/torch/utils/plugins/test_utils_megatron.py::test_megatron_generate_and_mmlu[cp] with context_parallel_size=4 (get_mcore_qwen3_600m).

Symptom

  • MMLU stays at 0/90 batches until the 600 s test timeout (_queue.Empty).
  • TE logs "unbatched P2P op ... ProcessGroup size 4" warnings.
  • CP=2 (DP=2 x CP=2) finishes in ~23 s; TP, PP and DP at 4 ranks pass.

Status
Not diagnosed. It may be an upstream TE/Megatron ring-attention P2P issue or a gap in ModelOpt's MMLU/generate path. The test caps CP at 2 in #3177; CI has no 4-GPU runners, so nothing exercises CP=4.

主要言語
Python
スター
5.5k
フォーク
800
平均マージ
3日 8時間
マージ済み PR(30日)
285

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/Model-Optimizer のほかの issue

NVIDIA/Model-Optimizer の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。