Instructions to use huggingworld/Qwen3-Reranker-0.6B-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use huggingworld/Qwen3-Reranker-0.6B-ONNX with Transformers.js:
// npm i @huggingface/transformers import { AutoTokenizer, AutoModelForSequenceClassification } from '@huggingface/transformers'; const tokenizer = await AutoTokenizer.from_pretrained('huggingworld/Qwen3-Reranker-0.6B-ONNX'); const model = await AutoModelForSequenceClassification.from_pretrained('huggingworld/Qwen3-Reranker-0.6B-ONNX'); const query = 'Which planet is known as the Red Planet?'; const documents = [ 'Mars, known for its reddish appearance, is often referred to as the Red Planet.', 'Venus is often called the twin of Earth because of its similar size and proximity.', ]; const inputs = tokenizer(new Array(documents.length).fill(query), { text_pair: documents, padding: true, truncation: true }); const { logits } = await model(inputs); console.log(logits.sigmoid().tolist()); // one relevance score per document
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!