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

MongoDB
/
mdbr-leaf-ir-asym

Text Classification
sentence-transformers
Safetensors
Transformers
English
sentence-similarity
feature-extraction
text-embeddings-inference
information-retrieval
knowledge-distillation
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("MongoDB/mdbr-leaf-ir-asym")
    
    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-ir-asym with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="MongoDB/mdbr-leaf-ir-asym")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("MongoDB/mdbr-leaf-ir-asym", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
mdbr-leaf-ir-asym / query_0_Transformer
91.2 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
rvo's picture
rvo
Upload 25 files
3f39f7d verified 8 months ago
  • config.json
    611 Bytes
    Upload 25 files 8 months ago
  • model.safetensors
    90.3 MB
    xet
    Upload 25 files 8 months ago
  • sentence_bert_config.json
    119 Bytes
    Upload 25 files 8 months ago
  • special_tokens_map.json
    695 Bytes
    Upload 25 files 8 months ago
  • tokenizer.json
    712 kB
    Upload 25 files 8 months ago
  • tokenizer_config.json
    1.46 kB
    Upload 25 files 8 months ago
  • vocab.txt
    232 kB
    Upload 25 files 8 months ago