MCPcopy Create free account
hub / github.com/AnswerDotAI/ModernBERT / __init__

Method __init__

src/bert_layers/layers.py:623–626  ·  view source on GitHub ↗
(self, config: FlexBertConfig)

Source from the content-addressed store, hash-verified

621 """
622
623 def __init__(self, config: FlexBertConfig):
624 super().__init__()
625 self.layers = nn.ModuleList([get_bert_layer(config, layer_id=i) for i in range(config.num_hidden_layers)])
626 self.num_attention_heads = config.num_attention_heads
627
628 def forward(
629 self,

Callers

nothing calls this directly

Calls 2

get_bert_layerFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected