(self, x, emb)
| 196 | |
| 197 | |
| 198 | def forward(self, x, emb): |
| 199 | emb = self.linear(self.silu(emb)) |
| 200 | shift_msa, scale_msa, gate_msa = emb.chunk(3, dim=1) |
| 201 | x = self.norm(x) * (1 + scale_msa[:, None]) + shift_msa[:, None] |
| 202 | return x, gate_msa |
| 203 | |
| 204 | |
| 205 |