Skip to content
Open
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,11 @@ void allreduce_fusion_kernel_launcher(AllReduceFusionParams const& params)

bool use_fp32_acc()
{
// we use fp16 acc type by default due to keep align with nccl
// FP32 accumulation is the default: native-dtype accumulation measurably hurts
// accuracy on models with large residual-stream outliers.
// Opt out with ALL_REDUCE_FUSION_KERNEL_ACC_FP32=0 to restore the legacy behavior.
static char* fp32_acc = std::getenv("ALL_REDUCE_FUSION_KERNEL_ACC_FP32");
return fp32_acc != nullptr;
return fp32_acc == nullptr || fp32_acc[0] != '0';
}

void allreduce_fusion_op(AllReduceFusionParams const& params)
Expand Down
Loading