MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / doc_to_target

Method doc_to_target

test/general/lm_eval/tasks/glue.py:461–462  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

459 )
460
461 def doc_to_target(self, doc):
462 return " {}".format(yesno(doc["label"]))
463
464 def construct_requests(self, doc, ctx):
465 ll_yes, _ = rf.loglikelihood(ctx, " yes")

Callers

nothing calls this directly

Calls 1

yesnoFunction · 0.90

Tested by

no test coverage detected