MCPcopy Create free account
hub / github.com/AMAP-ML/Eevee / forward

Method forward

models/dit.py:142–144  ·  view source on GitHub ↗
(self, q, k, v)

Source from the content-addressed store, hash-verified

140 self.num_heads = num_heads
141
142 def forward(self, q, k, v):
143 x = flash_attention(q=q, k=k, v=v, num_heads=self.num_heads)
144 return x
145
146
147class SelfAttention(nn.Module):

Callers

nothing calls this directly

Calls 1

flash_attentionFunction · 0.85

Tested by

no test coverage detected