Instructions to use michaelfeil/Qwen3-Reranker-4B-seq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use michaelfeil/Qwen3-Reranker-4B-seq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="michaelfeil/Qwen3-Reranker-4B-seq")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("michaelfeil/Qwen3-Reranker-4B-seq") model = AutoModelForSequenceClassification.from_pretrained("michaelfeil/Qwen3-Reranker-4B-seq", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
#2
by michaelfeil - opened
- config.json +1 -1
config.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"no": 0,
|
| 20 |
"yes": 1
|
| 21 |
},
|
| 22 |
-
"max_position_embeddings":
|
| 23 |
"max_window_layers": 36,
|
| 24 |
"model_type": "qwen3",
|
| 25 |
"num_attention_heads": 32,
|
|
|
|
| 19 |
"no": 0,
|
| 20 |
"yes": 1
|
| 21 |
},
|
| 22 |
+
"max_position_embeddings": 16384,
|
| 23 |
"max_window_layers": 36,
|
| 24 |
"model_type": "qwen3",
|
| 25 |
"num_attention_heads": 32,
|