[None] [fix] Disable UCC as WAR to MPI allgather issue before NGC PyTorch 25.12 upgrade (#9127)

Signed-off-by: Kaiyu Xie <26294424+kaiyux@users.noreply.github.com>
This commit is contained in:
Kaiyu Xie 2025-11-14 17:18:04 +08:00 committed by GitHub
parent d43036e3fd
commit e5c1cd41cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,12 +13,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
# Disable UCC to WAR allgather issue before NGC PyTorch 25.12 upgrade.
os.environ["OMPI_MCA_coll_ucc_enable"] = "0"
def _add_trt_llm_dll_directory():
import platform
on_windows = platform.system() == "Windows"
if on_windows:
import os
import sysconfig
from pathlib import Path
os.add_dll_directory(