Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Youssefbou62
/
MNLP_M2_document_encoder

Sentence Similarity
sentence-transformers
PyTorch
ONNX
Safetensors
OpenVINO
English
bert
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Youssefbou62/MNLP_M2_document_encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Youssefbou62/MNLP_M2_document_encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Youssefbou62/MNLP_M2_document_encoder")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
MNLP_M2_document_encoder / onnx
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Youssefbou62's picture
Youssefbou62
Upload folder using huggingface_hub
adcfc67 verified 12 months ago
  • config.json
    632 Bytes
    Upload folder using huggingface_hub 12 months ago
  • model.onnx
    1.34 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model_O4.onnx
    668 MB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model_qint8_avx512_vnni.onnx
    337 MB
    xet
    Upload folder using huggingface_hub 12 months ago
  • special_tokens_map.json
    125 Bytes
    Upload folder using huggingface_hub 12 months ago
  • tokenizer.json
    712 kB
    Upload folder using huggingface_hub 12 months ago
  • tokenizer_config.json
    342 Bytes
    Upload folder using huggingface_hub 12 months ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub 12 months ago