Text Ranking
Safetensors
Transformers
vllm
mistral3
text-classification
reranker
cross-encoder
visual-document-retrieval
multimodal reranking
semantic-search
rag
8-bit precision
compressed-tensors
Instructions to use nvidia/Nemotron-3.5-Rerank-8B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/Nemotron-3.5-Rerank-8B-NVFP4 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSequenceClassification processor = AutoProcessor.from_pretrained("nvidia/Nemotron-3.5-Rerank-8B-NVFP4") model = AutoModelForSequenceClassification.from_pretrained("nvidia/Nemotron-3.5-Rerank-8B-NVFP4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -55,7 +55,14 @@ pipeline_tag: text-ranking
|
|
| 55 |
<div align="center">
|
| 56 |
|
| 57 |
**NVIDIA Nemotron 3.5 Rerank**
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
<a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-BF16">
|
| 60 |
<img alt="Nemotron 3.5 Embed 8B BF16" src="https://img.shields.io/badge/8B-BF16-76B900?style=for-the-badge&logo=nvidia&logoColor=white">
|
| 61 |
</a>
|
|
@@ -88,7 +95,7 @@ The reranking model serves as a key component of a multimodal retrieval system,
|
|
| 88 |
|
| 89 |
|
| 90 |
### Release Date:
|
| 91 |
-
Hugging Face
|
| 92 |
|
| 93 |
|
| 94 |
## Model Architecture:
|
|
@@ -264,7 +271,6 @@ vllm serve "$MODEL_PATH" \
|
|
| 264 |
--dtype bfloat16 \
|
| 265 |
--max-model-len 32768 \
|
| 266 |
--compilation-config '{"compile_mm_encoder":true}' \
|
| 267 |
-
--max-num-seqs 4 \
|
| 268 |
--limit-mm-per-prompt '{"image":1}' \
|
| 269 |
--pooler-config '{"seq_pooling_type":"MEAN","use_activation":false}' \
|
| 270 |
--chat-template reranker_chat_template.jinja \
|
|
@@ -275,9 +281,11 @@ vllm serve "$MODEL_PATH" \
|
|
| 275 |
|
| 276 |
For HTTP serving in a container, use `--host 0.0.0.0` inside the container and publish port 8000 to host loopback, for example with Docker's `-p 127.0.0.1:8000:8000`.
|
| 277 |
|
|
|
|
|
|
|
| 278 |
Keep `VLLM_CACHE_ROOT` on persistent storage to reuse compatible vLLM compilation artifacts across restarts. FlashInfer stores its compiled kernels and autotuning cache separately in `~/.cache/flashinfer` by default. Persist that directory as well, including in container deployments. If you set `FLASHINFER_WORKSPACE_BASE`, the FlashInfer cache is under `$FLASHINFER_WORKSPACE_BASE/.cache/flashinfer`.
|
| 279 |
|
| 280 |
-
The first startup can take several minutes while FlashInfer builds kernels and tunes FP4 GEMMs and vLLM compiles the image encoder. Wait for the server to report that startup is complete before running the client.
|
| 281 |
|
| 282 |
After the server is ready, open another terminal in the same directory and activate the vLLM environment:
|
| 283 |
|
|
@@ -352,7 +360,7 @@ Scores can vary with hardware, batching, and runtime.
|
|
| 352 |
|
| 353 |
With `use_activation=False`, `probs[0]` contains the raw relevance logit, not a probability. Higher scores indicate greater predicted relevance. `add_special_tokens=False` avoids adding tokens beyond those rendered by the checkpoint's template.
|
| 354 |
|
| 355 |
-
Use `/classify` with the structured `query` and `document` messages shown above for multimodal inputs.
|
| 356 |
|
| 357 |
|
| 358 |
## Software Integration:
|
|
@@ -487,4 +495,4 @@ The datasets used to train this model were reviewed before release. Please revie
|
|
| 487 |
| Model Application Field(s): | Document reranking for retrieval. User queries are text. Documents can be text or page images (including pages with charts, tables, and infographics). |
|
| 488 |
| Describe the life critical impact (if present). | Not Applicable |
|
| 489 |
| Use Case Restrictions: | Use of the model is governed by the [OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)](https://openmdw.ai/license/1-1/). Additional Information: The [Ministral-3-8B-Instruct-2512-BF16](https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512-BF16) base model is governed by the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt). |
|
| 490 |
-
| Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to. |
|
|
|
|
| 55 |
<div align="center">
|
| 56 |
|
| 57 |
**NVIDIA Nemotron 3.5 Rerank**
|
| 58 |
+
<a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-1B-BF16">
|
| 59 |
+
<img alt="Nemotron 3.5 Embed 8B BF16" src="https://img.shields.io/badge/1B-BF16-76B900?style=for-the-badge&logo=nvidia&logoColor=white">
|
| 60 |
+
</a>
|
| 61 |
+
|
| 62 |
+
<a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-1B-NVFP4">
|
| 63 |
+
<img alt="Nemotron 3.5 Embed 8B BF16" src="https://img.shields.io/badge/1B-NVFP4-76B900?style=for-the-badge&logo=nvidia&logoColor=white">
|
| 64 |
+
</a>
|
| 65 |
+
|
| 66 |
<a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-BF16">
|
| 67 |
<img alt="Nemotron 3.5 Embed 8B BF16" src="https://img.shields.io/badge/8B-BF16-76B900?style=for-the-badge&logo=nvidia&logoColor=white">
|
| 68 |
</a>
|
|
|
|
| 95 |
|
| 96 |
|
| 97 |
### Release Date:
|
| 98 |
+
Hugging Face on 11/30/2026 via https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-NVFP4
|
| 99 |
|
| 100 |
|
| 101 |
## Model Architecture:
|
|
|
|
| 271 |
--dtype bfloat16 \
|
| 272 |
--max-model-len 32768 \
|
| 273 |
--compilation-config '{"compile_mm_encoder":true}' \
|
|
|
|
| 274 |
--limit-mm-per-prompt '{"image":1}' \
|
| 275 |
--pooler-config '{"seq_pooling_type":"MEAN","use_activation":false}' \
|
| 276 |
--chat-template reranker_chat_template.jinja \
|
|
|
|
| 281 |
|
| 282 |
For HTTP serving in a container, use `--host 0.0.0.0` inside the container and publish port 8000 to host loopback, for example with Docker's `-p 127.0.0.1:8000:8000`.
|
| 283 |
|
| 284 |
+
To increase the image longest-edge limit to 1,540 pixels, add `--mm-processor-kwargs '{"size":{"longest_edge":1540}}'` when starting the server. The example outputs use the default 1,120-pixel limit.
|
| 285 |
+
|
| 286 |
Keep `VLLM_CACHE_ROOT` on persistent storage to reuse compatible vLLM compilation artifacts across restarts. FlashInfer stores its compiled kernels and autotuning cache separately in `~/.cache/flashinfer` by default. Persist that directory as well, including in container deployments. If you set `FLASHINFER_WORKSPACE_BASE`, the FlashInfer cache is under `$FLASHINFER_WORKSPACE_BASE/.cache/flashinfer`.
|
| 287 |
|
| 288 |
+
The first startup and first image request can take several minutes while FlashInfer builds kernels and tunes FP4 GEMMs and vLLM compiles the image encoder. Wait for the server to report that startup is complete before running the client.
|
| 289 |
|
| 290 |
After the server is ready, open another terminal in the same directory and activate the vLLM environment:
|
| 291 |
|
|
|
|
| 360 |
|
| 361 |
With `use_activation=False`, `probs[0]` contains the raw relevance logit, not a probability. Higher scores indicate greater predicted relevance. `add_special_tokens=False` avoids adding tokens beyond those rendered by the checkpoint's template.
|
| 362 |
|
| 363 |
+
Use `/classify` with the structured `query` and `document` messages shown above for multimodal inputs. In vLLM 0.34.0, the `/score` and `/rerank` request-rendering paths can mishandle this checkpoint's image placeholders. Image URLs must be accessible to the server; base64-encoded image data URLs can also be supplied in `image_url.url`.
|
| 364 |
|
| 365 |
|
| 366 |
## Software Integration:
|
|
|
|
| 495 |
| Model Application Field(s): | Document reranking for retrieval. User queries are text. Documents can be text or page images (including pages with charts, tables, and infographics). |
|
| 496 |
| Describe the life critical impact (if present). | Not Applicable |
|
| 497 |
| Use Case Restrictions: | Use of the model is governed by the [OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)](https://openmdw.ai/license/1-1/). Additional Information: The [Ministral-3-8B-Instruct-2512-BF16](https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512-BF16) base model is governed by the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt). |
|
| 498 |
+
| Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to. |
|