Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/NVIDIA/TensorRT-LLM
/ mpi_broadcast
Function
mpi_broadcast
tensorrt_llm/_utils.py:601–602 ·
view source on GitHub ↗
(obj, root=0)
Source
from the content-addressed store, hash-verified
599
600
601
def
mpi_broadcast(obj, root=0):
602
return
mpi_comm().bcast(obj, root)
if
global_mpi_size() > 1
else
obj
603
604
605
def
mpi_allgather(obj):
Callers
4
main
Function · 0.90
_run_on_leader
Method · 0.90
_download_hf_model
Method · 0.85
from_dir
Method · 0.85
Calls
2
global_mpi_size
Function · 0.85
mpi_comm
Function · 0.70
Tested by
no test coverage detected