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

Method doc_to_target

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

Source from the content-addressed store, hash-verified

79 return doc["sentence"]
80
81 def doc_to_target(self, doc):
82 return " {}".format({1: "yes", 0: "no"}[doc["label"]])
83
84 def construct_requests(self, doc, ctx):
85 ll_true, _ = rf.loglikelihood(ctx, " yes")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected