Views
No views yet
bge-reranker-v2-m3 ships no ONNX files, so TEI falls
back to its Candle backend, which silently caps cross-encoder rerank at
batch=4:WARN: Backend does not support a batch size > 4
WARN: forcing `max_batch_requests=4`onnx-community/bge-reranker-v2-m3-ONNX
provides ONNX files but the conversion targets transformers.js (browser)
and bakes in a static batch=8 axis. Better than 4, but a real RAG query
with 30+ candidate documents still gets sliced into 4 sub-batches.optimum-cli's default dynamic batch + sequence axes,
which lets TEI's ORT backend honor --max-client-batch-size=32. A
30-pair rerank now runs as a single batch in ~600-800 ms (CPU) instead
of 4 internal sub-batches summing ~1 s.ERROR: Could not start ORT backend: Dtype float16 is not supported
for `ort`, only float32.1pip install -U "optimum[exporters,onnxruntime]" transformers onnx
2optimum-cli export onnx \
3 --model BAAI/bge-reranker-v2-m3 \
4 --task text-classification \
5 --opset 17 \
6 ./out1command:
2 - --model-id=newtechstudio/bge-reranker-v2-m3-onnx
3 - --max-client-batch-size=32 # honored, no longer capped at 4 or 8
4 - --max-batch-tokens=4096