Safetensors
minicpmv4_7
yatarkan commited on
Commit
bf74175
·
verified ·
1 Parent(s): fde0780

Remove `auto_map` from image and video processors

Browse files

Model repo does not contain custom code files `image_processing_minicpmv4_7.py and `video_processing_minicpmv4_7.py`.
Exporting the model with `AutoProcessor.from_pretrained(..., trust_remote_code=True)` results in error "OSError: model_snapshot_path does not appear to have a file named image_processing_minicpmv4_7.py."
Removing `auto_map` resolves this and allows to save model with `trust_remote_code` enabled.

Also, original `openbmb/MiniCPM-V-4.7-1B` and `MiniCPM-V-4.7-35B-A3B` models don't have this `auto_map` field, moreover their `processor_config.json` contains just empty JSON object `{ }`. Maybe tiny random model should be align with them.

1 file changed -8
processor_config.json-8