(self, x)
| 162 | self.down_proj = Linear(expand_dim, dim) |
| 163 | |
| 164 | def forward(self, x): |
| 165 | gate, up = self.gateup_proj(x).chunk(2, dim=-1) |
| 166 | return self.down_proj(up * F.silu(gate)) |
| 167 | |
| 168 | class GQA(nn.Module): |
| 169 | def __init__(self, |
nothing calls this directly
no outgoing calls
no test coverage detected