MCPcopy
hub / github.com/PaddlePaddle/PaddleNLP / predict

Method predict

llm/predictor.py:259–263  ·  view source on GitHub ↗
(self, input_texts: str | list[str])

Source from the content-addressed store, hash-verified

257 return decoded_predictions
258
259 def predict(self, input_texts: str | list[str]):
260 tokenized_source = self._preprocess(input_texts)
261 predictions = self._infer(tokenized_source)
262 decoded_predictions = self._postprocess(predictions)
263 return decoded_predictions
264
265
266class DygraphPredictor(BasePredictor):

Callers 4

predictFunction · 0.45
benchmarkFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

_preprocessMethod · 0.95
_inferMethod · 0.95
_postprocessMethod · 0.95

Tested by

no test coverage detected