Instructions to use onnx-community/bge-reranker-v2-m3-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/bge-reranker-v2-m3-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'onnx-community/bge-reranker-v2-m3-ONNX');
bge-reranker-v2-m3 (ONNX)
This is an ONNX version of BAAI/bge-reranker-v2-m3. It was automatically converted and uploaded using this space.
Usage (Transformers.js)
If you haven't already, you can install the Transformers.js JavaScript library from NPM using:
npm i @huggingface/transformers
Example: Reranking text using the BGE Reranker model.
import { pipeline } from '@huggingface/transformers';
const reranker = await pipeline('text-classification', 'onnx-community/bge-reranker-v2-m3-ONNX');
const output = await reranker('I love transformers!');
- Downloads last month
- 34,365
Model tree for onnx-community/bge-reranker-v2-m3-ONNX
Base model
BAAI/bge-reranker-v2-m3