MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / collective_rpc_async

Method collective_rpc_async

tensorrt_llm/executor/ray_executor.py:218–229  ·  view source on GitHub ↗
(
            self,
            method: str,
            args: tuple = (),
            kwargs: Optional[dict] = None,
            unique_reply_rank: Optional[int] = None)

Source from the content-addressed store, hash-verified

216
217 @unwrap_ray_errors()
218 async def collective_rpc_async(
219 self,
220 method: str,
221 args: tuple = (),
222 kwargs: Optional[dict] = None,
223 unique_reply_rank: Optional[int] = None) -> list[Any]:
224 refs = self.collective_rpc(method,
225 args,
226 kwargs,
227 non_block=True,
228 unique_reply_rank=unique_reply_rank)
229 return await asyncio.gather(*refs)
230
231 def submit(self, request: "GenerationRequest") -> "GenerationResult":
232 """

Callers 2

collective_rpcMethod · 0.80

Calls 1

collective_rpcMethod · 0.95

Tested by

no test coverage detected