MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / forward

Method forward

Large-DiT-ImageNet/models.py:470–474  ·  view source on GitHub ↗
(self, x, c)

Source from the content-addressed store, hash-verified

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
477class DiT_Llama(nn.Module):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.70

Tested by

no test coverage detected