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

Method greedy_until

test/general/lm_eval/base.py:93–108  ·  view source on GitHub ↗

Generate greedily until a stopping sequence :param requests: list A list of pairs (context, until) context: str Context string until: [str] The string sequences to generate until. These string sequences may

(self, requests)

Source from the content-addressed store, hash-verified

91 # TODO: Add an optional max length
92 @abstractmethod
93 def greedy_until(self, requests):
94 """Generate greedily until a stopping sequence
95
96 :param requests: list
97 A list of pairs (context, until)
98 context: str
99 Context string
100 until: [str]
101 The string sequences to generate until. These string sequences
102 may each span across multiple tokens, or may be part of one token.
103 :return: list
104 A list of strings continuation
105 continuation: str
106 The generated continuation.
107 """
108 pass
109
110 @classmethod
111 def create_from_arg_string(cls, arg_string, additional_config=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected