Instructions to use nativ-community/MiniCPM-OCR-1.0-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nativ-community/MiniCPM-OCR-1.0-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download nativ-community/MiniCPM-OCR-1.0-4bit --local-dir MiniCPM-OCR-1.0-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download processor_config.json from nativ-community/MiniCPM-OCR-1.0-4bit: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/nativ-community/MiniCPM-OCR-1.0-4bit/resolve/main/processor_config.json
- Command line
-
hf download hf://nativ-community/MiniCPM-OCR-1.0-4bit/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/nativ-community/MiniCPM-OCR-1.0-4bit/resolve/main/processor_config.json
1.05 kB
| { | |
| "processor_class": "MiniCPMOcrProcessor", | |
| "image_processor": { | |
| "max_slice_nums": 9, | |
| "patch_size": 14, | |
| "scale_resolution": 448, | |
| "slice_mode": true, | |
| "use_image_id": true, | |
| "downsample_mode": "4x", | |
| "pack_image_by_patch": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "disable_small_image_upsize": false, | |
| "adaptive_small_image_upsize": false, | |
| "adaptive_upsize_font_px": 12.0, | |
| "adaptive_upsize_dense_per_kpx": 2.0, | |
| "adaptive_upsize_tiny_pixels": 6272, | |
| "adaptive_upsize_tiny_target_resolution": 84, | |
| "adaptive_tile_upsize": false | |
| }, | |
| "video_processor": { | |
| "max_slice_nums": 9, | |
| "patch_size": 14, | |
| "scale_resolution": 448, | |
| "slice_mode": true, | |
| "use_image_id": true, | |
| "downsample_mode": "4x", | |
| "pack_image_by_patch": true, | |
| "max_num_frames": 128, | |
| "stack_frames": 1, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ] | |
| } | |
| } | |