Commit
•
5f3744e
1
Parent(s):
9edc8f9
Update modeling_mos_mamba.py
Browse files- modeling_mos_mamba.py +4 -2
modeling_mos_mamba.py
CHANGED
@@ -703,8 +703,10 @@ class MoSMambaPreTrainedModel(PreTrainedModel):
|
|
703 |
module.dt_proj.bias.copy_(inv_dt)
|
704 |
module.dt_proj.bias._no_reinit = True
|
705 |
|
706 |
-
|
707 |
-
|
|
|
|
|
708 |
|
709 |
if isinstance(module, nn.Linear):
|
710 |
if module.bias is not None:
|
|
|
703 |
module.dt_proj.bias.copy_(inv_dt)
|
704 |
module.dt_proj.bias._no_reinit = True
|
705 |
|
706 |
+
if isinstance(module, nn.ModuleList):
|
707 |
+
for x in module:
|
708 |
+
# nn.init.uniform_(x.weight, -0.0001, 0.0001)
|
709 |
+
nn.init.xavier_uniform_(x.weight, gain=0.1)
|
710 |
|
711 |
if isinstance(module, nn.Linear):
|
712 |
if module.bias is not None:
|