LucaMotz commited on
Commit
c611baa
·
verified ·
1 Parent(s): 34c10ba

Remote processor: ignore extra keyword arguments

Browse files

Transformers 4.40 to 4.52 pass the keys of `processor_config.json`, and 4.49 to 4.52 the chat template, to the remote `MiniCPMVProcessor.__init__`. It now takes `**kwargs` and ignores them, as MiniCPM-V-4's does.

Files changed (1) hide show
  1. processing_minicpmv.py +1 -1
processing_minicpmv.py CHANGED
@@ -46,7 +46,7 @@ class MiniCPMVProcessor(ProcessorMixin):
46
  image_processor_class = "AutoImageProcessor"
47
  tokenizer_class = "AutoTokenizer"
48
 
49
- def __init__(self, image_processor=None, tokenizer=None):
50
  super().__init__(image_processor, tokenizer)
51
  self.version = image_processor.version
52
 
 
46
  image_processor_class = "AutoImageProcessor"
47
  tokenizer_class = "AutoTokenizer"
48
 
49
+ def __init__(self, image_processor=None, tokenizer=None, **kwargs):
50
  super().__init__(image_processor, tokenizer)
51
  self.version = image_processor.version
52