MCPcopy Create free account
hub / github.com/InternLM/InternLM-XComposer / __init__

Method __init__

example_code/utils.py:39–41  ·  view source on GitHub ↗
(self, stops=[], encounters=1)

Source from the content-addressed store, hash-verified

37class StoppingCriteriaSub(StoppingCriteria):
38
39 def __init__(self, stops=[], encounters=1):
40 super().__init__()
41 self.stops = stops
42
43 def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor):
44 for stop in self.stops:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected