def METHOD_NAME(self, inputs):
    """
    Run the task model from the outputs of the `_tokenize` function.
    """
    all_ids = []
    all_scores = []
    for batch in inputs["batches"]:
        input_ids = paddle.to_tensor(batch)
        ids, scores = self._model.generate(
            input_ids=input_ids,
            max_length=self._max_length,
            min_length=self._min_length,
            decode_strategy=self._decode_strategy,
            temperature=self._temperature,
            top_k=self._top_k,
            top_p=self._top_p,
            num_beams=self._num_beams,
            length_penalty=self._length_penalty,
            repetition_penalty=self._repetition_penalty,
            use_fast=self._use_faster,
        )
        all_ids.extend(ids.numpy().tolist())
        all_scores.extend(scores.numpy().tolist())
    inputs["ids"] = all_ids
    inputs["scores"] = all_scores
    return inputs