File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,8 @@ def __init__(
178178 window_size = None ,
179179 num_memory_kv : int = 0 ,
180180 enable_attn_softclamp = False ,
181- attn_softclamp_value = 50.
181+ attn_softclamp_value = 50. ,
182+ init_gate_bias = - 2.
182183 ):
183184 super ().__init__ ()
184185 """
@@ -224,7 +225,7 @@ def __init__(
224225 if gate_output :
225226 gate_linear = nn .Linear (dim , dim_inner )
226227 nn .init .zeros_ (gate_linear .weight )
227- nn .init .constant_ (gate_linear .bias , 1. )
228+ nn .init .constant_ (gate_linear .bias , init_gate_bias )
228229
229230 self .to_gates = gate_linear
230231
Original file line number Diff line number Diff line change 11[project ]
22name = " alphafold3-pytorch"
3- version = " 0.1.114 "
3+ version = " 0.1.115 "
44description = " Alphafold 3 - Pytorch"
55authors = [
66 {
name =
" Phil Wang" ,
email =
" [email protected] " }
You can’t perform that action at this time.
0 commit comments