[Fix] Falcon-H1: count the Mamba mixer's output once under tensor parallelism (#41433)

This commit is contained in:
Cheng Wan
2026-09-27 16:52:31 -07:00
committed by GitHub
parent 31329c222c
commit 19eb56fa57
2 changed files with 74 additions and 0 deletions
+3
View File
@@ -187,6 +187,9 @@ class FalconH1HybridAttentionDecoderLayer(nn.Module):
rms_norm_eps=config.rms_norm_eps,
activation=config.hidden_act,
use_rms_norm=config.mamba_rms_norm,
# Like the attention's o_proj: prepare_mlp completes the sum of the
# two mixers' partial outputs.
reduce_results=False,
prefix=f"{prefix}.mixer",
)