visheratin / mexma-siglip

huggingface.co
Total runs: 11
24-hour runs: 0
7-day runs: 4
30-day runs: 4
Model's Last Updated: March 03 2025
zero-shot-image-classification

Introduction of mexma-siglip

Model Details of mexma-siglip

Model Summary

MEXMA-SigLIP is a model that combines the MEXMA multilingual text encoder and an image encoder from the SigLIP model. This allows us to get a high-performance CLIP model for 80 languages. MEXMA-SigLIP sets state-of-the-art on the Crossmodal-3600 dataset across commercial use-friendly models.

How to use
from transformers import AutoModel, AutoTokenizer, AutoImageProcessor
from PIL import Image
import requests
import torch

model = AutoModel.from_pretrained("visheratin/mexma-siglip", torch_dtype=torch.bfloat16, trust_remote_code=True, optimized=True).to("cuda")
tokenizer = AutoTokenizer.from_pretrained("visheratin/mexma-siglip")
processor = AutoImageProcessor.from_pretrained("visheratin/mexma-siglip")

img = Image.open(requests.get("https://static.independent.co.uk/s3fs-public/thumbnails/image/2014/03/25/12/eiffel.jpg", stream=True).raw)
img = processor(images=img, return_tensors="pt")["pixel_values"]
img = img.to(torch.bfloat16).to("cuda")
with torch.inference_mode():
    text = tokenizer(["кошка", "a dog", "एफिल टॉवर"], return_tensors="pt", padding=True).to("cuda")
    image_logits, text_logits = model.get_logits(text["input_ids"], text["attention_mask"], img)
    probs = image_logits.softmax(dim=-1)
    print(probs)
Acknowledgements

I thank ML Collective and Lambda for providing compute resources to train the model.

Runs of visheratin mexma-siglip on huggingface.co

11
Total runs
0
24-hour runs
0
3-day runs
4
7-day runs
4
30-day runs

More Information About mexma-siglip huggingface.co Model

More mexma-siglip license Visit here:

https://choosealicense.com/licenses/mit

mexma-siglip huggingface.co

mexma-siglip huggingface.co is an AI model on huggingface.co that provides mexma-siglip's model effect (), which can be used instantly with this visheratin mexma-siglip model. huggingface.co supports a free trial of the mexma-siglip model, and also provides paid use of the mexma-siglip. Support call mexma-siglip model through api, including Node.js, Python, http.

visheratin mexma-siglip online free

mexma-siglip huggingface.co is an online trial and call api platform, which integrates mexma-siglip's modeling effects, including api services, and provides a free online trial of mexma-siglip, you can try mexma-siglip online for free by clicking the link below.

visheratin mexma-siglip online free url in huggingface.co:

https://huggingface.co/visheratin/mexma-siglip

mexma-siglip install

mexma-siglip is an open source model from GitHub that offers a free installation service, and any user can find mexma-siglip on GitHub to install. At the same time, huggingface.co provides the effect of mexma-siglip install, users can directly use mexma-siglip installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mexma-siglip install url in huggingface.co:

https://huggingface.co/visheratin/mexma-siglip

Url of mexma-siglip

mexma-siglip huggingface.co Url

Provider of mexma-siglip huggingface.co

visheratin
ORGANIZATIONS

Other API from visheratin

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 19 2023