Skip to content
Merged
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
1 change: 0 additions & 1 deletion python/sglang/srt/layers/attention/mamba/mamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ def __init__(
input_is_parallel=True,
quant_config=quant_config,
prefix=f"{prefix}.out_proj",
reduce_results=False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

By removing reduce_results=False, the RowParallelLinear layer will use its default behavior of reduce_results=True. This is the correct fix, as it enables the all-reduce operation needed to combine the partial outputs from each tensor parallel rank. Without this, the output would be incomplete and incorrect when TP > 1, which explains the garbage output mentioned in the pull request description.

)

self.norm = Mixer2RMSNormGated(
Expand Down
Loading