call post_init() in MiniCPMV to restore transformers compatibility
#3
by LintyDev - opened
- modeling_minicpmv.py +1 -0
modeling_minicpmv.py
CHANGED
|
@@ -30,6 +30,7 @@ class MiniCPMV(MiniCPMVPreTrainedModel):
|
|
| 30 |
self.processor = None
|
| 31 |
|
| 32 |
self.terminators = ['<|im_end|>', '<|endoftext|>']
|
|
|
|
| 33 |
|
| 34 |
def init_vision_module(self):
|
| 35 |
# same as HuggingFaceM4/siglip-so400m-14-980-flash-attn2-navit add tgt_sizes
|
|
|
|
| 30 |
self.processor = None
|
| 31 |
|
| 32 |
self.terminators = ['<|im_end|>', '<|endoftext|>']
|
| 33 |
+
self.post_init()
|
| 34 |
|
| 35 |
def init_vision_module(self):
|
| 36 |
# same as HuggingFaceM4/siglip-so400m-14-980-flash-attn2-navit add tgt_sizes
|