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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

yashvardhan7
/
bge-m3-onnx

Feature Extraction
Transformers
ONNX
xlm-roberta
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use yashvardhan7/bge-m3-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use yashvardhan7/bge-m3-onnx with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="yashvardhan7/bge-m3-onnx")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("yashvardhan7/bge-m3-onnx")
    model = AutoModel.from_pretrained("yashvardhan7/bge-m3-onnx", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

How to use the bge-m3 model in onnx format? Can you provide a sample code?

#1 opened over 2 years ago by
panjiayi
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs