I encountered an error while running the official example
error: AttributeError: 'LlavaProcessor' object has no attribute 'apply_chat_template'
transformers version:4.44.2
It's a bit strange. I see that LlavaProcessor inherits from ProcessorMixin, and ProcessorMixin has the method apply_chat_template, but LlavaProcessor cannot find this method. I have uploaded an image that contains the code and a screenshot of the error.Could you please help me look into this? I would really appreciate it.
@jackyjin
indeed processors should be able to apply_chat_template
in the version that you specified (v4.42). Can you verify that the notebook you're running uses the latest version, prob it has something to do with using different env/kernels. You might also try to update install transformers once more and restart the kernel. LMK if that helps
@jackyjin indeed processors should be able to
apply_chat_template
in the version that you specified (v4.42). Can you verify that the notebook you're running uses the latest version, prob it has something to do with using different env/kernels. You might also try to update install transformers once more and restart the kernel. LMK if that helps
I tried it in Colab and it worked fine. Thank you! It should be an issue with my environment.