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

  • Log In
  • Sign Up

MongoDB
/
mdbr-leaf-mt

Feature Extraction
sentence-transformers
ONNX
Safetensors
Transformers
Transformers.js
English
bert
sentence-similarity
text-embeddings-inference
information-retrieval
knowledge-distillation
Model card Files Files and versions
xet
Community
2

Instructions to use MongoDB/mdbr-leaf-mt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use MongoDB/mdbr-leaf-mt with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("MongoDB/mdbr-leaf-mt")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use MongoDB/mdbr-leaf-mt with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="MongoDB/mdbr-leaf-mt")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("MongoDB/mdbr-leaf-mt")
    model = AutoModel.from_pretrained("MongoDB/mdbr-leaf-mt")
  • Transformers.js

    How to use MongoDB/mdbr-leaf-mt with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('feature-extraction', 'MongoDB/mdbr-leaf-mt');
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
mdbr-leaf-mt / onnx
246 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
rvo's picture
rvo
Upload folder using huggingface_hub (#2)
b96de4f verified 7 months ago
  • model.onnx
    59.3 kB
    xet
    Upload folder using huggingface_hub (#2) 7 months ago
  • model.onnx_data
    91.8 MB
    xet
    Upload 11 files 8 months ago
  • model_fp16.onnx
    99.3 kB
    xet
    Upload folder using huggingface_hub (#2) 7 months ago
  • model_fp16.onnx_data
    45.9 MB
    xet
    Upload 11 files 8 months ago
  • model_q4.onnx
    72.4 kB
    xet
    Upload folder using huggingface_hub (#2) 7 months ago
  • model_q4.onnx_data
    54.7 MB
    xet
    Upload 11 files 8 months ago
  • model_q4f16.onnx
    112 kB
    xet
    Upload folder using huggingface_hub (#2) 7 months ago
  • model_q4f16.onnx_data
    30 MB
    xet
    Upload 11 files 8 months ago
  • model_quantized.onnx
    220 kB
    xet
    Upload folder using huggingface_hub (#2) 7 months ago
  • model_quantized.onnx_data
    23 MB
    xet
    Upload 11 files 8 months ago