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

Method doc_to_target

test/general/lm_eval/tasks/arithmetic.py:60–61  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

58 return doc["context"]
59
60 def doc_to_target(self, doc):
61 return doc["completion"]
62
63 def construct_requests(self, doc, ctx):
64 ll, is_prediction = rf.loglikelihood(ctx, doc["completion"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected