Instructions to use Hansda/minicpm-v4_6-captcha-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Hansda/minicpm-v4_6-captcha-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM-V-4.6") model = PeftModel.from_pretrained(base_model, "Hansda/minicpm-v4_6-captcha-lora") - Notebooks
- Google Colab
- Kaggle
| { | |
| "image_processor": { | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "downsample_mode": "16x", | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "MiniCPMV4_6ImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_slice_nums": 9, | |
| "patch_size": 14, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "scale_resolution": 448, | |
| "slice_mode": true, | |
| "use_image_id": true | |
| }, | |
| "processor_class": "MiniCPMV4_6Processor", | |
| "video_processor": { | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_sample_frames": true, | |
| "downsample_mode": "16x", | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_num_frames": 128, | |
| "max_slice_nums": 9, | |
| "patch_size": 14, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "return_metadata": false, | |
| "scale_resolution": 448, | |
| "slice_mode": true, | |
| "stack_frames": 1, | |
| "use_image_id": true, | |
| "video_processor_type": "MiniCPMV4_6VideoProcessor" | |
| } | |
| } | |