Skip to content

feat: Add TensorRT Multi-Device (multi-GPU) inference support (cherry-pick) - #122

Merged
mc-nv merged 1 commit into
mainfrom
mchornyi/TRI-1431/advance-default-branch
Jun 29, 2026
Merged

feat: Add TensorRT Multi-Device (multi-GPU) inference support (cherry-pick)#122
mc-nv merged 1 commit into
mainfrom
mchornyi/TRI-1431/advance-default-branch

Conversation

@mc-nv

@mc-nv mc-nv commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

What does the PR do?

Cherry-picks 6cdd73d from r26.06 to advance main post-26.05 toward the 26.07dev_user container train (tracks upstream 26.06).

Adds TensorRT multi-device (multi-GPU) inference support, with new docs (docs/build_tp_engines.cpp, docs/create_onnx_multilayer.py, docs/multi_device.md).

Related PRs:

Test plan:

  • L0_infer and TRT-specific tests pass on a multi-GPU host.
  • CI Pipeline ID: TBD

Related Issues:

  • Resolves: TRI-1431

* Add TensorRT Multi-Device (multi-GPU) inference support

Run a single TensorRT engine sharded across multiple GPUs via TensorRT
Multi-Device (NCCL DistCollective + IExecutionContext::setCommunicator, GA in
TensorRT 11). Enabled per-model with a KIND_MODEL instance group plus parameters
enable_multi_device, multi_device_gpus, and multi_device_per_rank_engines;
transparent to clients (same gRPC/HTTP API).

Runtime: ncclCommInitAll, per-rank deserialize + setCommunicator (concurrent),
adaptive P2P/host input replication, fan-out enqueueV3, rank-0 output. Supports
offline-sharded engines and per-rank weight-shard (tensor-parallel) engines.

docs/multi_device.md documents configuration + validation; docs/ includes engine
builders used for testing. Validated on 2x and 8x B200 (NVLink).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Peter Kisfaludi <pkisfaludi@nvidia.com>

* apply pre-commit hook

---------

Signed-off-by: Peter Kisfaludi <pkisfaludi@nvidia.com>
Co-authored-by: Peter Kisfaludi <pkisfaludi@nvidia.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mc-nv
mc-nv merged commit 134a6db into main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants