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

LLMXperts
/
Arabic-Triplet-Matryoshka-V2

Sentence Similarity
sentence-transformers
Safetensors
Transformers.js
Transformers
Arabic
bert
feature-extraction
dataset_size:75000
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
mteb
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use LLMXperts/Arabic-Triplet-Matryoshka-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use LLMXperts/Arabic-Triplet-Matryoshka-V2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("LLMXperts/Arabic-Triplet-Matryoshka-V2")
    
    sentences = [
        "هذا شخص سعيد",
        "هذا كلب سعيد",
        "هذا شخص سعيد جدا",
        "اليوم هو يوم مشمس"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers.js

    How to use LLMXperts/Arabic-Triplet-Matryoshka-V2 with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('sentence-similarity', 'LLMXperts/Arabic-Triplet-Matryoshka-V2');
  • Transformers

    How to use LLMXperts/Arabic-Triplet-Matryoshka-V2 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("LLMXperts/Arabic-Triplet-Matryoshka-V2")
    model = AutoModel.from_pretrained("LLMXperts/Arabic-Triplet-Matryoshka-V2")
  • Notebooks
  • Google Colab
  • Kaggle
Arabic-Triplet-Matryoshka-V2
543 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
LLMXperts's picture
LLMXperts
Update README.md
b1e4355 verified about 1 year ago
  • 1_Pooling
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    1.88 kB
    Update README.md about 1 year ago
  • config.json
    637 Bytes
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • config_sentence_transformers.json
    195 Bytes
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • model.safetensors
    541 MB
    xet
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • modules.json
    229 Bytes
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • special_tokens_map.json
    695 Bytes
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • tokenizer.json
    1.78 MB
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • tokenizer_config.json
    1.83 kB
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago
  • vocab.txt
    761 kB
    Transferred from Omartificial-Intelligence-Space/Arabic-Triplet-Matryoshka-V2 about 1 year ago