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
Link the card to its export and parity check in vision-tower-bench
Browse files
README.md
CHANGED
|
@@ -45,13 +45,13 @@ See [`examples/inference.py`](examples/inference.py) for image feature extractio
|
|
| 45 |
|
| 46 |
## Validation
|
| 47 |
|
| 48 |
-
The [parity
|
| 49 |
compares all 515 Tower tensors and eight Projector tensors with the pinned parent
|
| 50 |
checkpoint using `torch.equal`.
|
| 51 |
|
| 52 |
## Reproduction
|
| 53 |
|
| 54 |
-
The [export script](https://github.com/immanuel-peter/vision-tower-bench/blob/main/
|
| 55 |
reads `vision_tower.vision_model.*` from shard 59 of `MiniMaxAI/MiniMax-M3`.
|
| 56 |
It remaps `encoder.layers` to `layers` and `embeddings.patch_embedding` to `embeddings.proj`,
|
| 57 |
then writes 515 Tower tensors. The Projector comes from `multi_modal_projector.*` and `patch_merge_mlp.*`
|
|
|
|
| 45 |
|
| 46 |
## Validation
|
| 47 |
|
| 48 |
+
The [parity check](https://github.com/immanuel-peter/vision-tower-bench/blob/main/vtb/parity/minimax_m3.py)
|
| 49 |
compares all 515 Tower tensors and eight Projector tensors with the pinned parent
|
| 50 |
checkpoint using `torch.equal`.
|
| 51 |
|
| 52 |
## Reproduction
|
| 53 |
|
| 54 |
+
The [export script](https://github.com/immanuel-peter/vision-tower-bench/blob/main/vtb/adapters/minimax_m3.py)
|
| 55 |
reads `vision_tower.vision_model.*` from shard 59 of `MiniMaxAI/MiniMax-M3`.
|
| 56 |
It remaps `encoder.layers` to `layers` and `embeddings.patch_embedding` to `embeddings.proj`,
|
| 57 |
then writes 515 Tower tensors. The Projector comes from `multi_modal_projector.*` and `patch_merge_mlp.*`
|