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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Abdalrahmankamel
/
matryoshka-arabert

Sentence Similarity
sentence-transformers
Safetensors
Arabic
matryoshka-arabert
arabic
embeddings
matryoshka
triplet-loss
lora
custom_code
Model card Files Files and versions
xet
Community

Instructions to use Abdalrahmankamel/matryoshka-arabert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Abdalrahmankamel/matryoshka-arabert with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Abdalrahmankamel/matryoshka-arabert", trust_remote_code=True)
    
    sentences = [
        "الطفل يلعب في الحديقة",
        "ولد صغير يلهو في البستان",
        "السيارة تسير في الشارع",
        "الأطفال يمرحون في الخارج"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
matryoshka-arabert
553 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 28 commits
Abdalrahmankamel's picture
Abdalrahmankamel
Update README.md
bf639ff verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    8.16 kB
    Update README.md about 1 year ago
  • adapter_config.json
    830 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • adapter_model.safetensors
    3.55 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • config.json
    280 Bytes
    Update config.json about 1 year ago
  • matryoshka_wrapper.pt

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    546 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • modeling_matryoshka.py
    5.01 kB
    Update modeling_matryoshka.py about 1 year ago
  • special_tokens_map.json
    695 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    1.78 MB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    1.86 kB
    Upload folder using huggingface_hub about 1 year ago
  • vocab.txt
    761 kB
    Upload folder using huggingface_hub about 1 year ago