def METHOD_NAME(self, _request: Dict, headers: Dict) -> InferRequest:
    request = Request(**_request)
    input_token_ids, input_lengths = self._tokenize_input(request)
    output_lens = np.array(
        [[i.output_len] for i in request.inputs], dtype=np.uint32
    )
    infer_inputs = [
        InferInput(
            name="input_ids",
            shape=input_token_ids.shape,
            datatype="UINT32",
            data=input_token_ids,
        ),
        InferInput(
            name="input_lengths",
            shape=input_lengths.shape,
            datatype="UINT32",
            data=input_lengths,
        ),
        InferInput(
            name="request_output_len",
            shape=output_lens.shape,
            datatype="UINT32",
            data=output_lens,
        ),
    ]
    return InferRequest(
        self.name, infer_inputs=infer_inputs, request_id=str(uuid4())
    )