Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Multi-GPU interactive mode hangs during model initialization on some machines

Open
#72 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python

Research direction

Start with generate.py and trace the interactive torchrun path through the dist.barrier() preceding WanModel.from_pretrained(). Compare logs and initialization behavior between the working and hanging machine setups, using the reported 4-rank command and NCCL settings. Done means identifying a reproducible cause and documenting or fixing the hang so model initialization completes.

Written by the indexing model from the issue text.

Description

Running Matrix-Game 3.0 interactive mode with torchrun on 4x A100 SXM 80GB.
Stock generate.py with --interactive works on some machines but silently hangs
during model initialization on others.

Setup:

  • torch 2.10.0, FA2, CUDA 12.8, Python 3.12
  • torchrun --nproc_per_node=4 with --ulysses_size 4, --use_int8, --t5_cpu
  • Docker image based on nvidia/cuda:12.8.0-devel-ubuntu22.04

What happens:

  • NCCL init succeeds on all ranks
  • T5 encoder loads successfully on all ranks
  • All 4 ranks log "Initializing Model (DiT)..."
  • Then hangs forever: 0% CPU, 0% GPU VRAM (633MB CUDA context only)
  • No error, no timeout, no crash

What we've tried:

  • NCCL_P2P_DISABLE=1
  • NCCL_DEBUG=INFO (init shows COMPLETE, no errors)
  • device_id in init_process_group()
  • 2 GPUs instead of 4
  • Different volume sizes (75GB, 200GB)

Key observation:

  • Works on some RunPod machines (e.g. vqnzttsdu44t, c250s631h6rc)
  • Hangs on others (e.g. cmg18urp1kg5, hleuzkw9vyyn)
  • Same Docker image, same code, same config

The hang appears to be inside WanModel.from_pretrained() or the
dist.barrier() that precedes it. Has anyone else seen this?

Dominant language
Python
Stars
2.3k
Forks
254
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SkyworkAI/Matrix-Game

All issues in SkyworkAI/Matrix-Game

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.