MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / forward

Method forward

tests/unit/test_modernbert_embed.py:26–28  ·  view source on GitHub ↗
(self, input_ids, attention_mask, return_dict=True)

Source from the content-addressed store, hash-verified

24 config = types.SimpleNamespace(hidden_size=8)
25
26 def forward(self, input_ids, attention_mask, return_dict=True):
27 batch = input_ids.size(0)
28 return types.SimpleNamespace(last_hidden_state=torch.zeros((batch, 1, 8)))
29
30 return DummyModel()
31

Callers 4

setupMethod · 0.45
_warmupMethod · 0.45
_benchmarkMethod · 0.45
_test_output_qualityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected