[shardformer] ChatGLM support layernorm sharding

pull/4445/head
klhhhhh 2023-07-17 19:47:57 +08:00 committed by Hongxin Liu
parent 00f6ef159d
commit f155ae89c4
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ class SelfAttention(torch.nn.Module):
) )
======= =======
self.dense = nn.Linear(self.projection_size, self.dense = nn.Linear(self.projection_size,
self.hidden_size, config.hidden_size,
bias=config.add_bias_linear, bias=config.add_bias_linear,
device=device, device=device,
**_config_to_kwargs(config)) **_config_to_kwargs(config))