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

sayed0am
/
sn-xlm-roberta-base-snli-mnli-anli-xnli-onnx

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

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

  • Libraries
  • sentence-transformers

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

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

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMultimodalLM
    
    tokenizer = AutoTokenizer.from_pretrained("sayed0am/sn-xlm-roberta-base-snli-mnli-anli-xnli-onnx")
    model = AutoModelForMultimodalLM.from_pretrained("sayed0am/sn-xlm-roberta-base-snli-mnli-anli-xnli-onnx")
  • Notebooks
  • Google Colab
  • Kaggle
sn-xlm-roberta-base-snli-mnli-anli-xnli-onnx
2.52 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
sayed0am's picture
sayed0am
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
5f694e5 verified 7 months ago
  • 1_Pooling
    Onnx Model over 2 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) 7 months ago
  • LICENSE
    22.3 kB
    Onnx Model over 2 years ago
  • README.md
    2.73 kB
    Onnx Model over 2 years ago
  • config.json
    677 Bytes
    Onnx Model over 2 years ago
  • config_sentence_transformers.json
    116 Bytes
    Onnx Model over 2 years ago
  • model.safetensors
    1.11 GB
    xet
    Adding `safetensors` variant of this model (#1) 7 months ago
  • modules.json
    229 Bytes
    Onnx Model over 2 years ago
  • pytorch_model.bin
    1.11 GB
    xet
    Onnx Model over 2 years ago
  • quantized_true.onnx
    279 MB
    xet
    Onnx Model over 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Onnx Model over 2 years ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Onnx Model over 2 years ago
  • special_tokens_map.json
    239 Bytes
    Onnx Model over 2 years ago
  • tokenizer.json
    9.08 MB
    Onnx Model over 2 years ago
  • tokenizer_config.json
    356 Bytes
    Onnx Model over 2 years ago