Safetensors
minicpmv4_7

Remove `auto_map` from image and video processors

#1

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.

rkazants changed pull request status to merged

Sign up or log in to comment