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
2 changes: 1 addition & 1 deletion megatron/core/transformer/moe/shared_experts.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
else:
self.gate_weight = None

if self.config.fp8 and is_te_min_version("2.6.0dev0"):
if self.config.fp8 and self.config.fp8_recipe != 'delayed' and is_te_min_version("2.6.0dev0"):
# For fp8 training, the output of pre_mlp_layernorm is saved by router, and
# the shared expert linear_fc1 also saves the quantized tensor of this output.
# Here we set the linear_fc1 to save the original input tensors to avoid the extra
Expand Down