Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

symanto
/
sn-xlm-roberta-base-snli-mnli-anli-xnli

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
xlm-roberta
feature-extraction
zero-shot-classification
text-embeddings-inference
Model card Files Files and versions
xet
Community
5

Instructions to use symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli")
    
    sentences = [
        "هذا شخص سعيد",
        "هذا كلب سعيد",
        "هذا شخص سعيد جدا",
        "اليوم هو يوم مشمس"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli")
    model = AutoModelForMultimodalLM.from_pretrained("symanto/sn-xlm-roberta-base-snli-mnli-anli-xnli")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
sn-xlm-roberta-base-snli-mnli-anli-xnli
2.24 GB
Ctrl+K
Ctrl+K
  • 6 contributors
History: 7 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
8fa2d46 verified over 1 year ago
  • 1_Pooling
    Initial commit. over 4 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model over 1 year ago
  • LICENSE
    22.3 kB
    Add license file over 3 years ago
  • README.md
    2.73 kB
    Mean pooling not max pooling (#1) almost 4 years ago
  • config.json
    677 Bytes
    Initial commit. over 4 years ago
  • config_sentence_transformers.json
    116 Bytes
    Initial commit. over 4 years ago
  • model.safetensors
    1.11 GB
    xet
    Adding `safetensors` variant of this model over 1 year ago
  • modules.json
    229 Bytes
    Initial commit. over 4 years ago
  • pytorch_model.bin
    1.11 GB
    xet
    Initial commit. over 4 years ago
  • sentence_bert_config.json
    53 Bytes
    Initial commit. over 4 years ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Initial commit. over 4 years ago
  • special_tokens_map.json
    239 Bytes
    Initial commit. over 4 years ago
  • tokenizer.json
    9.08 MB
    Initial commit. over 4 years ago
  • tokenizer_config.json
    356 Bytes
    Initial commit. over 4 years ago