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 files54 unmodified lines5556575859606126 unmodified lines88899091929394169 unmodified lines2642652662672682692704 unmodified lines27527627727827928028128228368 unmodified lines352353354355356357358128 unmodified lines48748848949054 unmodified lines<div align="center">**NVIDIA Nemotron 3.5 Rerank**<a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-BF16"><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"></a>26 unmodified lines### Release Date:Hugging Face TBD via https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-NVFP4## Model Architecture:169 unmodified lines--dtype bfloat16 \--max-model-len 32768 \--compilation-config '{"compile_mm_encoder":true}' \--max-num-seqs 4 \--limit-mm-per-prompt '{"image":1}' \--pooler-config '{"seq_pooling_type":"MEAN","use_activation":false}' \--chat-template reranker_chat_template.jinja \4 unmodified linesFor 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`.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`.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.After the server is ready, open another terminal in the same directory and activate the vLLM environment:68 unmodified linesWith `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.Use `/classify` with the structured `query` and `document` messages shown above for multimodal inputs. 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`.## Software Integration:128 unmodified lines| 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). || Describe the life critical impact (if present). | Not Applicable || 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). || 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. |54 unmodified lines555657585960616263646566676826 unmodified lines9596979899100101169 unmodified lines2712722732742752764 unmodified lines28128228328428528628728828929029168 unmodified lines360361362363364365366128 unmodified lines49549649749854 unmodified lines<div align="center">**NVIDIA Nemotron 3.5 Rerank**<a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-1B-BF16"><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"></a> <a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-1B-NVFP4"><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"></a> <a href="https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-BF16"><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"></a>26 unmodified lines### Release Date:Hugging Face on 11/30/2026 via https://huggingface.co/nvidia/Nemotron-3.5-Rerank-8B-NVFP4## Model Architecture:169 unmodified lines--dtype bfloat16 \--max-model-len 32768 \--compilation-config '{"compile_mm_encoder":true}' \--limit-mm-per-prompt '{"image":1}' \--pooler-config '{"seq_pooling_type":"MEAN","use_activation":false}' \--chat-template reranker_chat_template.jinja \4 unmodified linesFor 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`.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.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`.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.After the server is ready, open another terminal in the same directory and activate the vLLM environment:68 unmodified linesWith `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.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`.## Software Integration:128 unmodified lines| 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). || Describe the life critical impact (if present). | Not Applicable || 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). || 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. |
README.md+14-6