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

AleksanderObuchowski
/
medembed-small-onnx

Feature Extraction
Transformers.js
ONNX
sentence-transformers
bert
embeddings
medical
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use AleksanderObuchowski/medembed-small-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers.js

    How to use AleksanderObuchowski/medembed-small-onnx with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('feature-extraction', 'AleksanderObuchowski/medembed-small-onnx');
  • sentence-transformers

    How to use AleksanderObuchowski/medembed-small-onnx with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("AleksanderObuchowski/medembed-small-onnx")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
medembed-small-onnx
335 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
AleksanderObuchowski's picture
AleksanderObuchowski
Reorganize files for transformers.js compatibility (onnx/ subdirectory)
b8b2ba9 verified 10 months ago
  • onnx
    Reorganize files for transformers.js compatibility (onnx/ subdirectory) 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    2.38 kB
    Upload ONNX model files 10 months ago
  • config.json
    661 Bytes
    Upload ONNX model files 10 months ago
  • model.onnx
    133 MB
    xet
    Upload ONNX model files 10 months ago
  • model_quantized.onnx
    33.9 MB
    xet
    Upload ONNX model files 10 months ago
  • ort_config.json
    763 Bytes
    Upload ONNX model files 10 months ago
  • special_tokens_map.json
    695 Bytes
    Upload ONNX model files 10 months ago
  • tokenizer.json
    711 kB
    Upload ONNX model files 10 months ago
  • tokenizer_config.json
    1.27 kB
    Upload ONNX model files 10 months ago
  • vocab.txt
    232 kB
    Upload ONNX model files 10 months ago