Instructions to use immanuelpeter/MiniMax-M3.1-Flash-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use immanuelpeter/MiniMax-M3.1-Flash-Vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="immanuelpeter/MiniMax-M3.1-Flash-Vision")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("immanuelpeter/MiniMax-M3.1-Flash-Vision") model = AutoModel.from_pretrained("immanuelpeter/MiniMax-M3.1-Flash-Vision", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Use the native MiniMaxM3VLImageProcessor
Browse files- preprocessor_config.json +2 -6
preprocessor_config.json
CHANGED
|
@@ -1,10 +1,5 @@
|
|
| 1 |
{
|
| 2 |
"processor_class": "AutoImageProcessor",
|
| 3 |
-
"auto_map": {
|
| 4 |
-
"AutoImageProcessor": "image_processor.MiniMaxM3VLImageProcessor",
|
| 5 |
-
"AutoProcessor": "processing_minimax.MiniMaxVLProcessor",
|
| 6 |
-
"AutoVideoProcessor": "video_processor.MiniMaxM3VLVideoProcessor"
|
| 7 |
-
},
|
| 8 |
"process_image_mode": "dynamic_res",
|
| 9 |
"image_mean": [
|
| 10 |
0.48145466,
|
|
@@ -28,5 +23,6 @@
|
|
| 28 |
"spatial_merge_size": 2,
|
| 29 |
"temporal_patch_size": 2
|
| 30 |
},
|
| 31 |
-
"add_start_end_special_tokens": true
|
|
|
|
| 32 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"processor_class": "AutoImageProcessor",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"process_image_mode": "dynamic_res",
|
| 4 |
"image_mean": [
|
| 5 |
0.48145466,
|
|
|
|
| 23 |
"spatial_merge_size": 2,
|
| 24 |
"temporal_patch_size": 2
|
| 25 |
},
|
| 26 |
+
"add_start_end_special_tokens": true,
|
| 27 |
+
"image_processor_type": "MiniMaxM3VLImageProcessor"
|
| 28 |
}
|