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
Remove the unused Transformers shim
Remove the unused Transformers model.py shim and its AutoModelForSequenceClassification entry in config.json → auto_map. Native vLLM 0.34.0 resolves Mistral3ForSequenceClassification without executing this custom code.
Keep the safetensors index and the complete Sentence Transformers bundle unchanged. vLLM consumes part of that bundle for its MEAN pooling, disabled activation, and 32,768-token default context limit. Preserving the bundle together makes the checkpoint layout easier to understand than selectively deleting its files.
The final diff contains only:
- Delete
model.py(1,641 bytes). - Remove its now-unused
auto_mapentry fromconfig.json.
All weights, Sentence Transformers files, tokenizer/processor files, model architecture, and safetensors index match the original checkpoint.
Validation:
- Traced vLLM 0.34.0 native model resolution and classification loading with
trust_remote_code=False. - An earlier, more aggressive cleanup candidate was compared with the original checkpoint on NVIDIA GB10 using the official vLLM 0.34.0 ARM container. Both loaded the native
FlashInferCutlassNvFp4LinearKerneland produced exactly identical raw scores for four text-only, image-only, and mixed inputs (maximum absolute difference 0.0). - This final revision restores all Sentence Transformers files and the index from the original checkpoint. It has not had a separate GPU rerun.
git diff --checkpasses; the final diff is limited to the shim and its configuration reference.
Relevant implementation: vLLM native model resolution, classification adapter, and pooling metadata readers.