Instructions to use tiny-random/mistral-multimodal-embed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiny-random/mistral-multimodal-embed with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="tiny-random/mistral-multimodal-embed", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tiny-random/mistral-multimodal-embed", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download .meta/model.log from tiny-random/mistral-multimodal-embed: direct link, hf CLI and curl.
- Browser
- Download file 3.01 kB
-
https://huggingface.co/tiny-random/mistral-multimodal-embed/resolve/main/.meta/model.log
- Command line
-
hf download hf://tiny-random/mistral-multimodal-embed/.meta/model.log
-
curl -L -o model.log https://huggingface.co/tiny-random/mistral-multimodal-embed/resolve/main/.meta/model.log
3.01 kB
| MistralContrastiveModel( | |
| (text_model): MistralContrastiveTextModel( | |
| (embed_tokens): Embedding(131072, 64) | |
| (layers): ModuleList( | |
| (0-3): 4 x TransformerBlock( | |
| (input_layernorm): RMSNorm() | |
| (self_attn): Attention( | |
| (q_proj): Linear(in_features=64, out_features=64, bias=False) | |
| (k_proj): Linear(in_features=64, out_features=64, bias=False) | |
| (v_proj): Linear(in_features=64, out_features=64, bias=False) | |
| (o_proj): Linear(in_features=64, out_features=64, bias=False) | |
| ) | |
| (post_attention_layernorm): RMSNorm() | |
| (mlp): SwiGLUMLP( | |
| (gate_proj): Linear(in_features=64, out_features=256, bias=False) | |
| (up_proj): Linear(in_features=64, out_features=256, bias=False) | |
| (down_proj): Linear(in_features=256, out_features=64, bias=False) | |
| ) | |
| ) | |
| ) | |
| (norm): RMSNorm() | |
| (text_projection): Linear(in_features=64, out_features=1024, bias=False) | |
| ) | |
| (vision_model): MistralContrastiveVisionModel( | |
| (patch_conv): Conv2d(3, 64, kernel_size=(14, 14), stride=(14, 14), bias=False) | |
| (ln_pre): RMSNorm() | |
| (layers): ModuleList( | |
| (0-3): 4 x TransformerBlock( | |
| (input_layernorm): RMSNorm() | |
| (self_attn): Attention( | |
| (q_proj): Linear(in_features=64, out_features=64, bias=False) | |
| (k_proj): Linear(in_features=64, out_features=64, bias=False) | |
| (v_proj): Linear(in_features=64, out_features=64, bias=False) | |
| (o_proj): Linear(in_features=64, out_features=64, bias=False) | |
| ) | |
| (post_attention_layernorm): RMSNorm() | |
| (mlp): SwiGLUMLP( | |
| (gate_proj): Linear(in_features=64, out_features=256, bias=False) | |
| (up_proj): Linear(in_features=64, out_features=256, bias=False) | |
| (down_proj): Linear(in_features=256, out_features=64, bias=False) | |
| ) | |
| ) | |
| ) | |
| (pre_mm_projector_norm): RMSNorm() | |
| (patch_merger): PatchMerger( | |
| (merging_layer): Linear(in_features=256, out_features=64, bias=False) | |
| ) | |
| (contrastive_pre_norm): RMSNorm() | |
| (visual_projection): Linear(in_features=64, out_features=1024, bias=False) | |
| ) | |
| (temporal_encoder): TemporalTokenEncoder( | |
| (blocks): ModuleList( | |
| (0-3): 4 x TemporalAttentionBlock( | |
| (norm1): LayerNorm((64,), eps=1e-05, elementwise_affine=True, bias=True) | |
| (q_proj): Linear(in_features=64, out_features=64, bias=True) | |
| (k_proj): Linear(in_features=64, out_features=64, bias=True) | |
| (v_proj): Linear(in_features=64, out_features=64, bias=True) | |
| (out_proj): Linear(in_features=64, out_features=64, bias=True) | |
| (norm2): LayerNorm((64,), eps=1e-05, elementwise_affine=True, bias=True) | |
| (mlp): Sequential( | |
| (c_fc): Linear(in_features=64, out_features=256, bias=True) | |
| (gelu): GELU(approximate='none') | |
| (c_proj): Linear(in_features=256, out_features=64, bias=True) | |
| ) | |
| ) | |
| ) | |
| (norm): LayerNorm((64,), eps=1e-05, elementwise_affine=True, bias=True) | |
| ) | |
| ) |