TypeError: LlavaNextProcessor.__init__() got an unexpected keyword argument 'image_token'

#22
by BenjaminTT - opened

Traceback (most recent call last):
File "/home/tam/001_AI_project/002_CV/001_Image_Captioning/001_Blip/caption_generator.py", line 107, in
llava, processor = get_model()
^^^^^^^^^^^
File "/home/tam/001_AI_project/002_CV/001_Image_Captioning/001_Blip/caption_generator.py", line 75, in get_model
processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tam/anaconda3/envs/triton/lib/python3.11/site-packages/transformers/processing_utils.py", line 468, in from_pretrained
return cls.from_args_and_dict(args, processor_dict, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tam/anaconda3/envs/triton/lib/python3.11/site-packages/transformers/processing_utils.py", line 393, in from_args_and_dict
processor = cls(*args, **processor_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LlavaNextProcessor.init() got an unexpected keyword argument 'image_token'

previous version is working, I encountered this issue only for the new processor config that was pushed 43 minutes ago

Llava Hugging Face org

Hey, the new processor config is deleted and everything should be working as before

RaushanTurganbay changed discussion status to closed

Sign up or log in to comment