def _generate(self, prepared_inputs: Dict[str, Any]) -> str:
        """
        Generates text based on prepared inputs. The text is decoded from token IDs generated by the model.
        """
        input_len = prepared_inputs["input_len"]
        inputs = prepared_inputs["inputs"]
        generation = self._model.generate(**inputs, max_new_tokens=100, do_sample=False)
        generation = generation[0][input_len:]
        return self._processor.decode(generation, skip_special_tokens=True)

        Generates text based on prepared inputs. The text is decoded from token IDs generated by the model.
        
llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-huggingface/llama_index/multi_modal_llms/huggingface/base.py