1
0
mirror of https://github.com/hpcaitech/ColossalAI.git synced 2025-05-04 14:38:10 +00:00

[shardformer] ChatGLM support layernorm sharding

This commit is contained in:
klhhhhh 2023-07-17 19:47:57 +08:00 committed by Hongxin Liu
parent 00f6ef159d
commit f155ae89c4

View File

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