legacy: allow build-time override of watchdog timeout constants#678
Open
dmvevents wants to merge 1 commit into
Open
legacy: allow build-time override of watchdog timeout constants#678dmvevents wants to merge 1 commit into
dmvevents wants to merge 1 commit into
Conversation
Wrap LEGACY_NUM_CPU_TIMEOUT_SECS / LEGACY_NUM_TIMEOUT_CYCLES in #ifndef so integrators can raise them via compile flags without patching sources. Motivation: on first run, frameworks that JIT-compile their expert GEMMs (e.g. SGLang's DeepGEMM warmup, 10-20 min cold) hold some ranks inside dispatch while peers finish compiling. The hardcoded 100 s watchdog then kills the run with 'DeepEP error: timeout (dispatch CPU)' even though no communication fault exists. Measured on 2x p5en.48xlarge (H200, EFA): raising the constant to 1800 s rides out the warmup and the same workload completes; defaults are unchanged for everyone else. Signed-off-by: Anton Alexander <dmvevents@gmail.com>
dmvevents
marked this pull request as ready for review
July 20, 2026 14:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wraps
LEGACY_NUM_CPU_TIMEOUT_SECS/LEGACY_NUM_TIMEOUT_CYCLESin#ifndefso integrators can raise the watchdog at build time (e.g.-DLEGACY_NUM_CPU_TIMEOUT_SECS=1800) without patching sources. Defaults unchanged.Motivation
On first run, frameworks that JIT-compile their expert GEMMs hold some ranks inside dispatch while peers finish compiling. Concretely: SGLang's DeepGEMM warmup (10–20 min cold, per its own log banner) exceeds the hardcoded 100 s watchdog, which then kills the run with
DeepEP error: timeout (dispatch CPU)although no communication fault exists.Measured on 2× p5en.48xlarge (H200, 16 EFA NICs, EP16, Qwen3-30B-A3B-FP8, SGLang 0.5.5.post3): with the constant raised to 1800 s the identical workload completes and serves; write-up with numbers: https://dmvevents.github.io/deepep-efa-guidance/sections/08-v1-nvshmem-backend.html
Notes
deep_ep.Buffer) path where the constant lives; happy to extend the same guard to the EPv2 tree if wanted.#ifndefis the minimal non-breaking step.