Instructions to use Mantis-VL/intern_vl_25_max32_16384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mantis-VL/intern_vl_25_max32_16384 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Mantis-VL/intern_vl_25_max32_16384", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Mantis-VL/intern_vl_25_max32_16384", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from Mantis-VL/intern_vl_25_max32_16384: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/Mantis-VL/intern_vl_25_max32_16384/resolve/main/processor_config.json
- Command line
-
hf download hf://Mantis-VL/intern_vl_25_max32_16384/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/Mantis-VL/intern_vl_25_max32_16384/resolve/main/processor_config.json
452 Bytes
| { | |
| "IMAGENET_MEAN": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "IMAGENET_STD": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "IMG_CONTEXT_TOKEN": "<IMG_CONTEXT>", | |
| "IMG_END_TOKEN": "</img>", | |
| "IMG_START_TOKEN": "<img>", | |
| "enable_cross_attention": true, | |
| "input_size": 448, | |
| "max_frame_num_patches": 1, | |
| "max_num_patches": 12, | |
| "num_image_token": 256, | |
| "processor_class": "InternVLChatProcessor", | |
| "use_thumbnail": true, | |
| "video_num_segments": 32 | |
| } | |