MCPcopy Create free account
hub / github.com/OpenSparseLLMs/MoM / generate_until

Method generate_until

lm-eval-harness/lm_eval/api/model.py:100–115  ·  view source on GitHub ↗

Generate greedily until a stopping sequence :param requests: list[Instance] A list of Instance objects with property `args` which returns a tuple (context, until). context: str Context string until: [str] The string sequenc

(self, requests)

Source from the content-addressed store, hash-verified

98 # TODO: Add an optional max length
99 @abc.abstractmethod
100 def generate_until(self, requests) -> List[str]:
101 """Generate greedily until a stopping sequence
102
103 :param requests: list[Instance]
104 A list of Instance objects with property `args` which returns a tuple (context, until).
105 context: str
106 Context string
107 until: [str]
108 The string sequences to generate until. These string sequences
109 may each span across multiple tokens, or may be part of one token.
110 :return: list[str]
111 A list of strings continuation
112 continuation: str
113 The generated continuation.
114 """
115 pass
116
117 @classmethod
118 def create_from_arg_string(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected