BitNet icon indicating copy to clipboard operation
BitNet copied to clipboard

[BUG] NoneType in sequential module in bit_ffn

Open jayUyang opened this issue 11 months ago • 1 comments

self.ff sequential modules could have None, which is not callable, if post_act_ln is False.

[suggenstion]

    ff_layers = [project_in]
    if post_act_ln:
        ff_layers.append(nn.LayerNorm(inner_dim))
    ff_layers.append(nn.Dropout(dropout))
    ff_layers.append(BitLinear(inner_dim, dim_out, bias=not no_bias, *args, **kwargs))
    self.ff=nn.Sequential(*ff_layers)

jayUyang avatar Mar 10 '24 12:03 jayUyang

Stale issue message

github-actions[bot] avatar May 09 '24 12:05 github-actions[bot]