MCPcopy Index your code
hub / github.com/kyegomez/OpenMythos / test_encode_long_text

Function test_encode_long_text

tests/test_tokenizer.py:54–58  ·  view source on GitHub ↗
(tokenizer)

Source from the content-addressed store, hash-verified

52
53
54def test_encode_long_text(tokenizer):
55 text = "OpenMythos is a recurrent depth transformer. " * 100
56 ids = tokenizer.encode(text)
57 print(f"Long text ({len(text)} chars) → {len(ids)} tokens")
58 assert len(ids) > 100
59
60
61def test_custom_model_id():

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected