Text Ranking
Transformers
Safetensors
English
qwen3
text-generation
reranker
retrieval
rag
legal
international-humanitarian-law
ihl
Instructions to use EPFLiGHT/Qwen3-Reranker-4B-IHL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EPFLiGHT/Qwen3-Reranker-4B-IHL with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EPFLiGHT/Qwen3-Reranker-4B-IHL") model = AutoModelForCausalLM.from_pretrained("EPFLiGHT/Qwen3-Reranker-4B-IHL", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from EPFLiGHT/Qwen3-Reranker-4B-IHL: direct link, hf CLI and curl.
- Browser
- Download file 214 Bytes
-
https://huggingface.co/EPFLiGHT/Qwen3-Reranker-4B-IHL/resolve/main/generation_config.json
- Command line
-
hf download hf://EPFLiGHT/Qwen3-Reranker-4B-IHL/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/EPFLiGHT/Qwen3-Reranker-4B-IHL/resolve/main/generation_config.json
214 Bytes
| { | |
| "bos_token_id": 151643, | |
| "do_sample": true, | |
| "eos_token_id": [ | |
| 151645, | |
| 151643 | |
| ], | |
| "pad_token_id": 151643, | |
| "temperature": 0.6, | |
| "top_k": 20, | |
| "top_p": 0.95, | |
| "transformers_version": "4.57.6" | |
| } | |