MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / count_bytes

Method count_bytes

lm-eval-harness/lm_eval/api/task.py:1476–1477  ·  view source on GitHub ↗
(cls, doc)

Source from the content-addressed store, hash-verified

1474
1475 @classmethod
1476 def count_bytes(cls, doc) -> int:
1477 return len(doc.encode("utf-8"))
1478
1479 @classmethod
1480 def count_words(cls, doc) -> int:

Callers 1

process_resultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected