Instructions to use immanuelpeter/MiniMax-M3-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use immanuelpeter/MiniMax-M3-Vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="immanuelpeter/MiniMax-M3-Vision")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("immanuelpeter/MiniMax-M3-Vision") model = AutoModel.from_pretrained("immanuelpeter/MiniMax-M3-Vision", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Fix example import from HF cache snapshots
Browse files- examples/inference.py +1 -1
examples/inference.py
CHANGED
|
@@ -6,7 +6,7 @@ from PIL import Image
|
|
| 6 |
import torch
|
| 7 |
from transformers import MiniMaxM3VLImageProcessor, MiniMaxM3VLVisionModel
|
| 8 |
|
| 9 |
-
sys.path.insert(0, str(Path(__file__).
|
| 10 |
from projector import load_projector
|
| 11 |
|
| 12 |
|
|
|
|
| 6 |
import torch
|
| 7 |
from transformers import MiniMaxM3VLImageProcessor, MiniMaxM3VLVisionModel
|
| 8 |
|
| 9 |
+
sys.path.insert(0, str(Path(__file__).absolute().parents[1]))
|
| 10 |
from projector import load_projector
|
| 11 |
|
| 12 |
|