Model reference · open weights

sn-xlm-roberta-snli-mnli-anli-xnli

Embeddings symanto Embeddings 1 build Licence not stated 833 dl/mo

sn-xlm-roberta-snli-mnli-anli-xnli is an open-weight embedding model from symanto. sn-xlm-roberta-base-snli-mnli-anli-xnli (FP32) weighs 556 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • sn-xlm-roberta-snli-mnli-anli-xnli is a Siamese network model developed by symanto for zero-shot and few-shot text classification.
  • It is based on xlm-roberta-base and maps sentences to a 768-dimensional vector space.
  • The model has 278M parameters, a context length of 514 tokens, and supports languages including Arabic, Bulgarian, German, Greek, English, Spanish, French, and Russian.

Summary of the symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli model card, 2026-10-01

What it is

Released bysymanto
Released2022-03-02
Parameters278M
VRAM556 MB for the weights

What it runs on

Memory and cards for sn-xlm-roberta-base-snli-mnli-anli-xnli (FP32)

556 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What symanto says about sn-xlm-roberta-snli-mnli-anli-xnli

Read the model card

A Siamese network model trained for zero-shot and few-shot text classification.

The base model is xlm-roberta-base. It was trained on SNLI, MNLI, ANLI and XNLI.

This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space.

Usage (Sentence-Transformers)

Using this model becomes easy when you have sentence-transformers installed:

pip install -U sentence-transformers

Then you can use the model like this:

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer('{MODEL_NAME}')
embeddings = model.encode(sentences)
print(embeddings)

Usage (HuggingFace Transformers)

Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.

from transformers import AutoTokenizer, AutoModel
import torch

#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0] #First element of model_output contains all token embeddings
    input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
    return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)

# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
model = AutoModel.from_pretrained('{MODEL_NAME}')

# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    model_output = model(**encoded_input)

# Perform pooling. In this case, mean pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])

print("Sentence embeddings:")
print(sentence_embeddings)

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms