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

yco
/
bilingual-embedding-base-onnx

Sentence Similarity
sentence-transformers
ONNX
Transformers
bilingual
feature-extraction
sentence-embedding
mteb
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community
1

Instructions to use yco/bilingual-embedding-base-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use yco/bilingual-embedding-base-onnx with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("yco/bilingual-embedding-base-onnx", trust_remote_code=True)
    
    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]
  • Transformers

    How to use yco/bilingual-embedding-base-onnx with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("yco/bilingual-embedding-base-onnx", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
bilingual-embedding-base-onnx
2.8 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
yco's picture
yco
Update README.md
ede7830 verified about 1 year ago
  • onnx
    Upload folder using huggingface_hub about 1 year ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub about 1 year ago
  • README.md
    48.1 kB
    Update README.md about 1 year ago
  • config.json
    1.48 kB
    Upload folder using huggingface_hub about 1 year ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    964 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    17.1 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    1.37 kB
    Upload folder using huggingface_hub about 1 year ago