Instructions to use AIArchiveInfo/Qwen3-Reranker-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIArchiveInfo/Qwen3-Reranker-4B with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AIArchiveInfo/Qwen3-Reranker-4B") model = AutoModelForCausalLM.from_pretrained("AIArchiveInfo/Qwen3-Reranker-4B", device_map="auto") - sentence-transformers
How to use AIArchiveInfo/Qwen3-Reranker-4B with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("AIArchiveInfo/Qwen3-Reranker-4B") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from AIArchiveInfo/Qwen3-Reranker-4B: direct link, hf CLI and curl.
- Browser
- Download file 11.4 MB
-
https://huggingface.co/AIArchiveInfo/Qwen3-Reranker-4B/resolve/main/tokenizer.json
- Command line
-
hf download hf://AIArchiveInfo/Qwen3-Reranker-4B/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/AIArchiveInfo/Qwen3-Reranker-4B/resolve/main/tokenizer.json
11.4 MB
- Xet hash:
- 6aec39639a0a2d1ca966356b8c2b8426a484f80ff80731f44fa8482040713bdf
- Size of remote file:
- 11.4 MB
- SHA256:
- aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.