Repository navigation
Relax TE Op Fuser Env Var Assert NVTE_CUTEDSL_FUSED_GROUPED_MLP - #7499
Conversation
Signed-off-by: Zhongbo Zhu <zhongboz@nvidia.com>
|
This PR has been automatically converted to draft because all PRs must start as drafts. When you are ready for review, click Ready for Review to begin the review process. This will:
See the contribution guide for more details. |
| return False | ||
| # TE can execute GroupedLinear -> activation -> GroupedLinear without a fused kernel. | ||
| # Leave CuTeDSL enablement and layout checks to TE's fusion matcher so disabling | ||
| # NVTE_CUTEDSL_FUSED_GROUPED_MLP does not disable the basic op-fuser path. |
There was a problem hiding this comment.
does this need to be TE version checked for back compat?
There was a problem hiding this comment.
TE always has the mechanism to fallback to unfused when certain fusion is not available. For legacy scripts with this env var turned on, they won't need any change, it's just that future TE won't read this env var anymore so it's NO-OP. For future scripts, they don't need to set this env var either because it will be automatically on.
|
/ok to test 17e943a |
|
Adding determinism-exempt since this PR literally just removes an env var gate |
| monkeypatch.setattr(experts_module, "te", fake_te) | ||
| monkeypatch.setattr(experts_module, "HAVE_TE", True) | ||
| monkeypatch.setattr(experts_module, "is_te_min_version", lambda _: True) | ||
| monkeypatch.delenv("NVTE_CUTEDSL_FUSED_GROUPED_MLP", raising=False) |
There was a problem hiding this comment.
this env is gonna be removed in both Mcore checks & TE, so this test doesn't make sense anymore
|
/ok to test 28dde28 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/37844221164 |
What does this PR do?
TE should remove these env vars first: NVIDIA/TransformerEngine#3584
Issue tracking
For PRs from open-source community contributors:
Linked issue:
Contribution process
Pre-checks
jit_fuser/torch.compile, CUDA extension, TE or external-library dispatch, or a scatter/index accumulation), I have added or updated its bit-exact determinism test and registered it intests/unit_tests/determinism/kernels/manifest.py(guide)Code review
Feel free to message or comment @NVIDIA/mcore-oncall to help accelerate your merge into main. The less complex your PR is, the faster it will be approved and merged!
All PRs start as draft. If you open a non-draft PR, it will be automatically converted to draft.
Step 1: Mark PR as "Ready for Review"
.github/CODEOWNERS.Final Review might get declined if these requirements are not fulfilled.
Step 2: Final Review
For PRs that change
megatron/core, once all expert reviewers have approved, theFinal Reviewlabel is applied automatically and final reviewers are assigned.For PRs outside
megatron/core, this step is skipped.Step 3: Approved
Once all required reviewers have approved, the
Approvedlabel is applied automatically.Merge
Any member of mcore-engineers will be able to merge your PR.