MCPcopy
hub / github.com/EleutherAI/lm-evaluation-harness / format

Method format

lm_eval/utils.py:38–40  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

36 """Formatter that strips 'lm_eval.' prefix from logger names for cleaner output."""
37
38 def format(self, record):
39 record.short_name = record.name.removeprefix("lm_eval.")
40 return super().format(record)
41
42
43def is_torch_available() -> bool:

Callers 15

mainFunction · 0.80
mainFunction · 0.80
doc_to_textFunction · 0.80
doc_to_textFunction · 0.80
doc_to_textFunction · 0.80
_process_docFunction · 0.80
doc_to_textFunction · 0.80
fix_a_slash_bFunction · 0.80
p0_nnFunction · 0.80
p1_nnFunction · 0.80
p2_nnFunction · 0.80
p3_nnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected