Skip to content

Commit a87df2f

Browse files
committed
Merge branch 'fix/overhead' of https://github.com/nanjiangwill/sglang into fix/overhead
2 parents 8699335 + a0f9f19 commit a87df2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/sglang/srt/layers/layernorm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def forward_native(
199199
if residual is not None:
200200
x = x + residual.to(torch.float32)
201201
if post_residual_addition is not None:
202-
x = x + post_residual_addition
202+
x = x + post_residual_addition.to(torch.float32)
203203
if self.fp32_residual:
204204
residual = x.clone()
205205
else:

0 commit comments

Comments
 (0)