Skip to content

[MD-TRT] enforce WORLD parent and gate native subgroup tests for now - #4772

Draft
apbose wants to merge 6 commits into
abose/pr4380_basefrom
abose/followup_subgroup4680
Draft

apbose wants to merge 6 commits into
abose/pr4380_basefrom
abose/followup_subgroup4680

Conversation

@apbose

@apbose apbose commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Native collective layers from #4380 store global rank IDs, so this layer of the stack requires WORLD as the engine parent. Python validates the selected group and passes its actual c10d registry name to C++; loaded engines require explicit setup through distributed_context(dist.group.WORLD, model).

A rejected context entry now preserves the existing communicator and engine registry, with a regression checking repeated rejection followed by valid WORLD setup. Single-rank tests initialize WORLD's lazy NCCL communicator before exercising the required runtime binding check.

Feature detection stays in _features.py, with no environment override. native_trt_collective_subgroups enables individual subgroup coverage for standard TensorRT >= 11.4. The separate native_trt_collective_mesh capability remains disabled until a released build with the Myelin subgroup communicator fix (TensorRT MR !51865) has been validated. The individual TP/CP cases run independently; the combined case requires full compilation into one engine. This gates tests, not production conversion.

Distributed CI uses linux.g5.12xlarge.nvidia.gpu (four A10Gs) for both standard TensorRT and TensorRT-RTX. RTX subgroup capability remains disabled pending qualification.

Validation of this update: 47 CPU context/contract tests with real PyTorch 2.15 CPU and TensorRT construction/imports stubbed; six feature-detection cases; native-marker serialization helper checks; Black/isort and diff checks. Runtime-file Ruff checks pass; the large existing NCCL test file has 12 pre-existing Ruff diagnostics, down from 13, with no new diagnostics. Earlier B300 diagnostics validated the rejected-entry guard and NCCL warm-up. GPU tests and full wheel/CI builds were not rerun for this update; the PR remains a draft.

Stack: based on abose/pr4380_base; #4829 adds subgroup-parent support.

@meta-cla meta-cla Bot added the cla signed label Oct 1, 2026
@github-actions github-actions Bot added component: tests Issues re: Tests component: conversion Issues re: Conversion stage component: core Issues re: The core compiler component: converters Issues re: Specific op converters component: api [Python] Issues re: Python API component: runtime component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths labels Oct 1, 2026
@apbose apbose changed the title distributed: enforce WORLD parent and gate native subgroup tests [MD-TRT] enforce WORLD parent and gate native subgroup tests for now Oct 1, 2026
@apbose
apbose changed the base branch from main to abose/followup_subgroup4680_base October 1, 2026 22:21
@apbose apbose closed this Oct 1, 2026
@apbose apbose reopened this Oct 1, 2026
@apbose
apbose changed the base branch from abose/followup_subgroup4680_base to abose/pr4380_base October 1, 2026 22:38
Use linux.g5.12xlarge.nvidia.gpu for both standard TensorRT and TensorRT-RTX distributed CI, removing the redundant RTX runner override. The existing pytest mesh class spawns four ranks and remains gated by native subgroup-routing support.

Validation: CI manifest doctor, both distributed matrix variants, generated command dry-runs, and git diff --check.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed component: api [Python] Issues re: Python API component: conversion Issues re: Conversion stage component: converters Issues re: Specific op converters component: core Issues re: The core compiler component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths component: runtime component: tests Issues re: Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant