Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b14df81
Add grouped GMM custom partitioning rules
jberchtold-nvidia May 26, 2026
60a0b50
Add outside shard_map grouped GMM backward test
jberchtold-nvidia May 26, 2026
c3b00f5
Merge remote-tracking branch 'github-upstream/main' into jberchtold/g…
jberchtold-nvidia May 28, 2026
786fa1d
Use 4 GPU mesh for grouped GEMM partitioning test
jberchtold-nvidia May 28, 2026
ff0407d
progress
jberchtold-nvidia Jun 1, 2026
1bd6b54
Add warnings
jberchtold-nvidia Jun 2, 2026
3c30c9b
Remove kernel_fsdp_info
jberchtold-nvidia Jun 2, 2026
273e066
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 2, 2026
fe906fd
Remove unnecessary reshape
jberchtold-nvidia Jun 2, 2026
e76d20a
Remove multi-process grouped GEMM tests
jberchtold-nvidia Jun 2, 2026
1aa1e82
Refactor helpers into sharding.py
jberchtold-nvidia Jun 2, 2026
6fd04b5
Rename distributed grouped GEMM tests
jberchtold-nvidia Jun 2, 2026
1ebffa3
Expert Parallelism: common C API + NCCL EP v0.1 backend
phu0ngng May 22, 2026
0b9bf7e
Expert Parallelism: persistent ncclEpHandle cache with allow_handle_m…
phu0ngng May 23, 2026
ed3d73c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 23, 2026
1923180
Build: NCCL_HOME discovery supports Debian/Ubuntu multiarch lib paths
phu0ngng May 27, 2026
3b8aafb
bump NCCL
phu0ngng May 27, 2026
9b225cb
Expert Parallelism: require token_dtype in NVTEEpGroupConfig and enfo…
phu0ngng May 28, 2026
03e56d2
Expert Parallelism: document ep_comm lifetime, v0.1 single-GPU scope,…
phu0ngng May 28, 2026
4cefdcb
Expert Parallelism: drop version label from initialize scope note
phu0ngng May 28, 2026
d101896
Expert Parallelism: JAX bindings (FFI, custom_vjp, multi-process test…
phu0ngng May 22, 2026
b43710e
JAX EP: tie NCCL comm lifetime to JAX executables via XLA stateful FFI
phu0ngng May 23, 2026
cb44374
JAX EP: expose allow_handle_mem_reloc as opt-in ep_bootstrap parameter
phu0ngng May 23, 2026
2012b0a
jax/ep: decorate EP ops with @compute_on("gpu_stream:collective")
phu0ngng May 28, 2026
c04bebb
ep_bootstrap: add XLA-collective fallback for UID allgather
phu0ngng May 28, 2026
1415580
jax/ep: introduce per-layer EpHandle, drop callsite-frame handle_id c…
phu0ngng May 29, 2026
0eee8b8
[JAX] EP: wire NVTEEpGroupConfig.max_token_dtype through bootstrap
tdophung Jun 3, 2026
10f4b1c
[JAX] MoE: enforce (outer_dp, ep) ordering for TE EP compatibility
tdophung Jun 2, 2026
9194fe3
integrate tex.* calls, remove all ragged-a2a + triton/pure jax step b…
tdophung Jun 3, 2026
776c5ef
[JAX] MoE: bootstrap TE EP eagerly outside jit; assert compatibility …
tdophung Jun 3, 2026
acb610f
[JAX] MoE: thread EpHandle + handle_mem through dispatch / combine
tdophung Jun 3, 2026
458d1c4
[JAX] MoE: pass bf16 as max_token_dtype to test fixture's ep_bootstrap
tdophung Jun 3, 2026
3d6825c
patching the sharding stripped by flattening logits input to topk, w…
tdophung Jun 4, 2026
df61642
Fix MoEBlock tests
jberchtold-nvidia Jun 8, 2026
9006696
Merge branch 'jberchtold/gmm-custom-partition-rules' into teddy/te_ep…
jberchtold-nvidia Jun 8, 2026
2210702
Fixes during maxtext integration
jberchtold-nvidia Jun 9, 2026
c888121
Integrate MoEBlock with grouped quant+gemm custom partitioning
jberchtold-nvidia Jun 15, 2026
766c36a
Use 2D output from grouped quant and support GSPMD partition rules
jberchtold-nvidia Jun 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
[submodule "3rdparty/cutlass"]
path = 3rdparty/cutlass
url = https://github.com/NVIDIA/cutlass.git
[submodule "3rdparty/nccl"]
path = 3rdparty/nccl
url = https://github.com/NVIDIA/nccl.git
branch = v2.30u1
1 change: 1 addition & 0 deletions 3rdparty/nccl
Submodule nccl added at 146496
41 changes: 39 additions & 2 deletions build_tools/jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,50 @@ def setup_jax_extension(

setup_mpi_flags(include_dirs, cxx_flags)

# NCCL EP is on by default. Set NVTE_BUILD_WITH_NCCL_EP=0 to skip it.
build_with_nccl_ep = bool(int(os.getenv("NVTE_BUILD_WITH_NCCL_EP", "1")))
libraries = []
submod_lib_dir = None
submod_nccl_inc = None
if build_with_nccl_ep:
cxx_flags.append("-DNVTE_WITH_NCCL_EP")
# Headers + libs come from the in-tree 3rdparty/nccl submodule build
# (auto-produced by setup.py).
libraries = ["nccl", "nccl_ep"]
# NCCL EP requires SM>=90 (Hopper+).
archs_env = os.getenv("NVTE_CUDA_ARCHS", "")
for a in archs_env.split(";"):
a_num = "".join(c for c in a if c.isdigit())
if a_num and int(a_num) < 90:
raise RuntimeError(
f"NCCL EP requires CUDA arch >= 90 (Hopper or newer); got '{a}' in"
" NVTE_CUDA_ARCHS."
)
submod_root = (common_header_files / ".." / "3rdparty" / "nccl").resolve()
submod_ep_inc = submod_root / "contrib" / "nccl_ep" / "include"
if not (submod_ep_inc / "nccl_ep.h").exists():
raise RuntimeError(
f"NCCL EP header not found at {submod_ep_inc}/nccl_ep.h. "
"Run `git submodule update --init --recursive` to checkout 3rdparty/nccl."
)
include_dirs.append(submod_ep_inc)
submod_lib_dir = submod_root / "build" / "lib"
submod_nccl_inc = submod_root / "build" / "include"

# Define TE/JAX as a Pybind11Extension
from pybind11.setup_helpers import Pybind11Extension

return Pybind11Extension(
ext = Pybind11Extension(
"transformer_engine_jax",
sources=[str(path) for path in sources],
include_dirs=[str(path) for path in include_dirs],
extra_compile_args=cxx_flags,
libraries=["nccl"],
libraries=libraries,
)
if submod_lib_dir is not None:
ext.library_dirs.append(str(submod_lib_dir))
ext.runtime_library_dirs.append(str(submod_lib_dir))
# Prefer submodule's nccl.h when present (matches the C++ side).
if (submod_nccl_inc / "nccl.h").exists():
ext.include_dirs.insert(0, str(submod_nccl_inc))
return ext
Loading