mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
parent
5fba3f99c0
commit
3e2769a3c9
@ -845,7 +845,7 @@ class DbrxPreTrainedModel(PreTrainedModel):
|
||||
if module.padding_idx is not None:
|
||||
module.weight.data[module.padding_idx].zero_()
|
||||
elif isinstance(module, nn.LayerNorm):
|
||||
module.weight.data.normal_(mean=0.0, std=std)
|
||||
module.weight.data.fill_(1.0)
|
||||
if module.bias is not None:
|
||||
module.bias.data.zero_()
|
||||
elif isinstance(module, DbrxExpertGLU):
|
||||
|
Loading…
Reference in New Issue
Block a user