TypeError: LlavaNextProcessor.__init__() got an unexpected keyword argument 'image_token'
hey guys,
can you please help me? i work in notebook in Databricks.
I keep getting this error and trying to resolve it since couple hours.
has anyone encountered similar issue?
Thanks
Jacek
TypeError: LlavaNextProcessor.init() got an unexpected keyword argument 'image_token'
File , line 4
1 from transformers import AutoProcessor, LlavaNextForConditionalGeneration
3 # Force download processor
----> 4 processor = AutoProcessor.from_pretrained("llava-hf/llava-v1.6-vicuna-7b-hf", force_download=True)
6 # Force download model
7 model = LlavaNextForConditionalGeneration.from_pretrained(
8 "llava-hf/llava-v1.6-vicuna-7b-hf",
9 force_download=True,
10 device_map="auto",
11 torch_dtype=torch.float16
12 )
File /databricks/python/lib/python3.11/site-packages/transformers/processing_utils.py:393, in ProcessorMixin.from_args_and_dict(cls, args, processor_dict, **kwargs)
390 if "auto_map" in processor_dict:
391 del processor_dict["auto_map"]
--> 393 processor = cls(*args, **processor_dict)
395 # Update processor with kwargs if needed
396 for key in set(kwargs.keys()):
Hey! You need to update transformers version to at least v4.43