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

Method __init__

models/dit.py:138–140  ·  view source on GitHub ↗
(self, num_heads)

Source from the content-addressed store, hash-verified

136
137class AttentionModule(nn.Module):
138 def __init__(self, num_heads):
139 super().__init__()
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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected