Skip to content

Commit 177ba7b

Browse files
authored
[None] [fix] Disable UCC as WAR to MPI allgather issue before NGC PyTorch 25.12 upgrade (#9126)
Signed-off-by: Kaiyu Xie <[email protected]>
1 parent 48a27c7 commit 177ba7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tensorrt_llm/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
import os
17+
18+
# Disable UCC to WAR allgather issue before NGC PyTorch 25.12 upgrade.
19+
os.environ["OMPI_MCA_coll_ucc_enable"] = "0"
20+
1621

1722
def _add_trt_llm_dll_directory():
1823
import platform
1924
on_windows = platform.system() == "Windows"
2025
if on_windows:
21-
import os
2226
import sysconfig
2327
from pathlib import Path
2428
os.add_dll_directory(

0 commit comments

Comments
 (0)