Repository navigation
Conversation
b7a48d3 to
a58fb66
Compare
|
/te-ci JAX L1 |
timmoon10
left a comment
There was a problem hiding this comment.
How about we change the default to NVTE_NORM_FWD_USE_CUDNN=1 (and similar for backward)? We can change:
TransformerEngine/transformer_engine/common/normalization/common.cpp
Lines 504 to 507 in 214e2a4
Into:
bool& _cudnn_norm_fwd_flag() {
static bool flag = transformer_engine::getenv<bool>("NVTE_NORM_FWD_USE_CUDNN", true);
return flag;
} This way JAX users can still disable cuDNN with NVTE_NORM_FWD_USE_CUDNN=0.
@timmoon10, I think the question here is whether we want to turn CuDNN backend on by default. We know that cuDNN backend works faster for MLPerf cases, but we have not conducted a systematic benchmark for all the size configs and dtypes we have in the tuned kernel. |
Signed-off-by: Phuong Nguyen <phuonguyen@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: Phuong Nguyen <phuonguyen@nvidia.com>
Signed-off-by: Phuong Nguyen <phuonguyen@nvidia.com>
a95d915 to
aa903b6
Compare
for more information, see https://pre-commit.ci
|
/te-ci L1 |
| // Enable norm with cuDNN instead of TE kernels | ||
| nvte_enable_cudnn_norm_fwd(true); |
There was a problem hiding this comment.
Is there a reason we are forcing the cuDNN backend? It seems like something that should be controlled with NVTE_NORM_FWD_USE_CUDNN. If cuDNN has better perf, it would be better to change the default to NVTE_NORM_FWD_USE_CUDNN=1 rather than hard-coding it only for JAX.
|
Close as the change is no longer necessary. |
Description
Please include a brief summary of the changes, relevant motivation and context.
Fixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: