You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][AutoDeploy]: All the perf dashboard's distributed models hang when using torch-opt #9847
changed the title [-][Bug][AutoDeploy]: All the perf dashboard's distributed models hang when setting AUTO allreduce strategy[/-][+][Bug][AutoDeploy]: All the perf dashboard's distributed models hang when using torch-opt[/+]on Dec 15, 2025
• The failure occurs also on latest main with nccl
• In my dist commit the rms+allreduce fusion started working. On the commit before it did not match anything. Hence my commit was suspect as the culprit, but it's not.
• In my enlarge AUTO strategy commit I had a bug in the rms norm allreduce fusion so it did not fuse in non-AUTO mode. Hence it passed.
• The change before it fails on shapes due to missing greg's .add calls - which I fixed in the commit above. When I cherry picked greg's fix (b894d40a1a06878c2bc874ebb7c26fcd5420db41) it hung with NCCL (AUTO hangs anyway at that point, missing my fix to AUTO hang)
• So NCCL torch-opt with rms+allreduce fusion was broken even before my fixes.
• This is the last dashboard run that succeeded 20 Nov. 63 rms norm patterns fused
○ ++ TRTLLM_PRECOMPILED_LOCATION=https://urm.nvidia.com/artifactory/sw-tensorrt-generic/llm-artifacts/LLM/main/L0_PostMerge/2392/x86_64-linux-gnu/dlfw/tensorrt_llm-1.2.0rc3-cp312-cp312-linux_x86_64.whl
bisection shows that this commit caused the hang: 92f86a5
comparing the log to the commit before I see the amount of rmsnorm+allreduce fusions increased by 1. that extra fusion seems to be problematic for the torch-opt mode regardless the allreduce strategy
git checkout egeva/repro_hang # this is the culprit commit, along with a fix to use .add instead of .append to the sharding info objects, it also comment out some unused ops which caused an error due to using latest whl. It adds logging IR option too.
TRTLLM_PRECOMPILED_LOCATION=https://urm.nvidia.com/artifactory/sw-tensorrt-generic/llm-artifacts/LLM/main/L0_PostMerge/2428/x86_64-linux-gnu/dlfw/tensorrt_llm-1.2.0rc6-cp312-cp312-linux_x86_64.whl pip install -e ".[devel]"
trtllm-bench --model meta-llama/Llama-3.1-8B throughput --dataset dataset.txt --backend _autodeploy --tp 2 --extra_llm_api_options extra_llm_api_options.yaml --max_batch_size 256 --max_num_tokens 8192 2>&1 | tee log.txt
compile_backend: torch-opt
free_mem_ratio: 0.8
runtime: trtllm
skip_loading_weights: True
transforms:
detect_sharding:
allreduce_strategy: 'NCCL'
sharding_source: ['heuristic'] # replace with ['factory','heuristic'] will cause it to hang
fuse_allreduce_residual_rmsnorm:
enabled: true
Activity
[-][Bug][AutoDeploy]: All the perf dashboard's distributed models hang when setting AUTO allreduce strategy[/-][+][Bug][AutoDeploy]: All the perf dashboard's distributed models hang when using torch-opt[/+]MrGeva commentedon Dec 15, 2025
this is due to torch-opt. looking into it.
trtllm-bench --model meta-llama/Llama-3.1-8B throughput --dataset dataset.txt --backend _autodeploy --tp 2 --extra_llm_api_options extra_llm_api_options.yaml --max_batch_size 256 --max_num_tokens 8192dataset.txt: /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_modelopt/users/egeva/TensorRT-LLM/dataset.txt
MrGeva commentedon Dec 15, 2025
bisecting, narrowed down to:
build 2406 - pass - 078d3a5
build 2409 - failed - 47f650c
now moved to bisecting with building from source because there are no whl's available between the impacted range
MrGeva commentedon Dec 15, 2025
bisected the culprit commit is: [c9771eb] [#9198][feat] Refactor dist ops in AutoDeploy (#9301)
MrGeva commentedon Dec 16, 2025
disabling rms norm allreduce fusion works:
MrGeva commentedon Dec 16, 2025
the story is more complicated:
++ export TRTLLM_PRECOMPILED_COMMIT=96cfdd8a72cea169f5ff2427124b6cde3984a75f
• Next dashboard run hangs and it detected 64 patterns.
○ ++ TRTLLM_PRECOMPILED_LOCATION=https://urm.nvidia.com/artifactory/sw-tensorrt-generic/llm-artifacts/LLM/main/L0_PostMerge/2403/x86_64-linux-gnu/dlfw/tensorrt_llm-1.2.0rc5-cp312-cp312-linux_x86_64.whl
++ export TRTLLM_PRECOMPILED_COMMIT=ae0124ef84e84dac59627094f8a12ad4f06ed89f
./start_bisect.sh 96cfdd8 ae0124e 2>&1 | tee bisect.log
MrGeva commentedon Dec 17, 2025
bad: [ae0124e] [None][infra] Check in most recent lock file from nightly pipeline
git bisect bad ae0124e
status: waiting for good commit(s), bad commit known
good: [96cfdd8] [None][chore] Change trt-server to trtlllm-server in opentelemetry readme (#9173)
git bisect good 96cfdd8
bad: [a761585] [None][infra] Check in most recent lock file from nightly pipeline
git bisect bad a761585
bad: [5d118e0] [None][chore] Revise the description of enable_autotuner. (#9320)
git bisect bad 5d118e0
bad: [99ba723] [None][fix] logits device and shape issues in dynamic draft path (#9079)
git bisect bad 99ba723
good: [f0b68e4] [None][feat] AutoDeploy: Perf improvement for small batch size (#9163)
git bisect good f0b68e4
good: [7c4777a] [TRTLLM-9286][feat] Integration of CuteDSL NVFP4 grouped GEMM (#8880)
git bisect good 7c4777a
bad: [92f86a5] [#9137][feat] Factory sharding as default (#9144)
git bisect bad 92f86a5
good: [9b0f452] [None][feat] Have ability to cancel disagg request if KV cache resource are exhausted (#9155)
git bisect good 9b0f452
first bad commit: [92f86a5] [#9137][feat] Factory sharding as default (#9144)
MrGeva commentedon Dec 17, 2025
bisection shows that this commit caused the hang: 92f86a5
comparing the log to the commit before I see the amount of rmsnorm+allreduce fusions increased by 1. that extra fusion seems to be problematic for the torch-opt mode regardless the allreduce strategy
the commit before the culprit:
20251216_144055_9b0f45298.log
the culprit:
20251216_142350_92f86a50d.log
MrGeva commentedon Dec 17, 2025
easiest reproduction instructions:
MrGeva commentedon Dec 17, 2025
see the IR dumps of ['heuristic'] vs. ['factory','heuristic']
after_fusion_rank0_good.txt
after_fusion_rank0_bad.txt
MrGeva commentedon Dec 17, 2025
WAR is in PR: #10084
suyoggupta commentedon Dec 17, 2025
summary :
MrGeva commentedon Dec 17, 2025
Switched the perf dashboard to use torch-cudagraph to unblock it.
We shall continue to investigate this hang on a lower priority