Skip to content

Raise MegaMoE barrier timeout to 300 seconds - #57

Merged
Fridge003 merged 1 commit into
sgl-project:devfrom
weireweire:fix/mega-moe-timeout-300s
Jul 9, 2026
Merged

Fridge003 merged 1 commit into
sgl-project:devfrom
weireweire:fix/mega-moe-timeout-300s

Conversation

@weireweire

Copy link
Copy Markdown

Summary

  • raise the shared grid and NVLink barrier timeout from 60 seconds to 300 seconds
  • tolerate bounded cross-rank launch skew caused by first-use host-side JIT compilation

Root cause

MegaMoE ranks can enter a cross-rank device barrier while peer ranks are still synchronously compiling first-use kernels before launching the corresponding work. The 60-second watchdog can therefore abort a healthy collective before the delayed rank arrives. The subsequent grid-sync failures are cascading errors from the same missing rank.

This restores the 300-second timeout used before the timeout refactor while retaining the watchdog added to grid synchronization.

Impact

Healthy executions are unaffected because their barriers complete before the threshold. A genuine barrier deadlock will take longer to report.

Validation

  • On GB300 with EP8 prefill, EP16 decode, and concurrency 256, diagnostic validation observed about 135 seconds of launch skew before the final rank joined. After allowing the wait beyond 60 seconds, 164 warmup requests completed with zero errors and no grid-sync, NVLink-barrier, or CUDA failures. The observed skew is below the new 300-second threshold.
  • git diff --check

Root cause:
MegaMoE ranks can enter a cross-rank device barrier while peer ranks are still performing one-time host-side JIT. The 60-second timeout aborts an otherwise healthy collective when that launch skew exceeds one minute.

Fix:
Restore the shared grid and NVLink barrier timeout to 300 seconds so all barrier tags tolerate bounded compilation and launch skew.

Validation:
On GB300 with EP8 prefill and EP16 decode, allowing the barrier wait beyond 60 seconds let the delayed rank join after about 135 seconds. The AIPerf warmup then completed 164 requests with zero errors and no grid-sync, NVLink-barrier, or CUDA failures. git diff --check passes.
@weireweire
weireweire marked this pull request as ready for review July 9, 2026 08:01
@Fridge003
Fridge003 merged commit 07ffd88 into sgl-project:dev Jul 9, 2026
Fridge003 pushed a commit that referenced this pull request Jul 9, 2026
Helicoplacoidea pushed a commit to Helicoplacoidea/DeepGEMM that referenced this pull request Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants