Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Alpha-VLLM/LLaMA2-Accessory
/ forward
Method
forward
Large-DiT-ImageNet/models.py:351–352 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
349
return
F.silu(x1) * x3
350
351
def
forward(self, x):
352
return
self.w2(self._forward_silu_gating(self.w1(x), self.w3(x)))
353
354
355
class
TransformerBlock(nn.Module):
Callers
nothing calls this directly
Calls
1
_forward_silu_gating
Method · 0.95
Tested by
no test coverage detected