MCPcopy Create free account
hub / github.com/kyegomez/BitNet / test_bitnet_transformer_for_various_input_shapes

Function test_bitnet_transformer_for_various_input_shapes

tests/tests.py:228–231  ·  view source on GitHub ↗
(bitnet_model, batch_size, seq_len)

Source from the content-addressed store, hash-verified

226 ],
227)
228def test_bitnet_transformer_for_various_input_shapes(bitnet_model, batch_size, seq_len):
229 tokens = torch.randint(0, 20000, (batch_size, seq_len))
230 logits = bitnet_model(tokens)
231 assert logits.shape == (batch_size, 20000)
232
233
234def test_rotary_embedding(bitnet_model, random_tensor):

Callers

nothing calls this directly

Calls 1

bitnet_modelFunction · 0.85

Tested by

no test coverage detected