Skip to content

megatron_mmlu hangs with context parallelism of 4 #3178

Open

Description

@kevalmorabia97

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions