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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

353 )
354
355 def doc_to_target(self, doc):
356 # 0 = entailment
357 # 1 = not_entailment
358 return " {}".format({0: "True", 1: "False"}[doc["label"]])
359
360 def construct_requests(self, doc, ctx):
361 ll_true, _ = rf.loglikelihood(ctx, " True")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected