(self, x, c)
| 468 | ) |
| 469 | |
| 470 | def forward(self, x, c): |
| 471 | shift, scale = self.adaLN_modulation(c).chunk(2, dim=1) |
| 472 | x = modulate(self.norm_final(x), shift, scale) |
| 473 | x = self.linear(x) |
| 474 | return x |
| 475 | |
| 476 | |
| 477 | class DiT_Llama(nn.Module): |
nothing calls this directly
no test coverage detected