transformers-4.50 or higher
#75
by
mqpham
- opened
model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-4-multimodal-instruct", trust_remote_code=True)
breaks with this error
AttributeError: 'Phi4MMModel' object has no attribute 'prepare_inputs_for_generation'
it's normal as prepare_inputs_for_generation from GenerationMixin and PreTrainedModel
will NOT inherit from GenerationMixin
.
Suggestion: add GenerationMixin to Phi4MMModel
same