Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

nlpai-lab
/
RenderRank-2B

Text Ranking
Transformers
Safetensors
sentence-transformers
English
qwen3_vl
image-text-to-text
multimodal rerank
text rerank
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use nlpai-lab/RenderRank-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use nlpai-lab/RenderRank-2B with Transformers:

    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("nlpai-lab/RenderRank-2B", trust_remote_code=True)
    model = AutoModelForMultimodalLM.from_pretrained("nlpai-lab/RenderRank-2B", trust_remote_code=True, device_map="auto")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    inputs = processor.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=40)
    print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • sentence-transformers

    How to use nlpai-lab/RenderRank-2B with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("nlpai-lab/RenderRank-2B", trust_remote_code=True)
    
    query = "Which planet is known as the Red Planet?"
    passages = [
    	"Venus is often called Earth's twin because of its similar size and proximity.",
    	"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
    	"Jupiter, the largest planet in our solar system, has a prominent red spot.",
    	"Saturn, famous for its rings, is sometimes mistaken for the Red Planet."
    ]
    
    scores = model.predict([(query, passage) for passage in passages])
    print(scores)
  • Notebooks
  • Google Colab
  • Kaggle
RenderRank-2B
4.27 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
hongst's picture
hongst
Update README.md
55d8c52 verified about 15 hours ago
  • 1_LogitScore
    init 1 day ago
  • additional_chat_templates
    init 1 day ago
  • assets
    init 1 day ago
  • .gitattributes
    1.63 kB
    init 1 day ago
  • README.md
    11.7 kB
    Update README.md about 15 hours ago
  • Roboto-Regular.ttf
    306 kB
    xet
    init 1 day ago
  • chat_template.jinja
    5.29 kB
    init 1 day ago
  • config.json
    1.74 kB
    init 1 day ago
  • config_sentence_transformers.json
    329 Bytes
    init 1 day ago
  • generation_config.json
    213 Bytes
    init 1 day ago
  • model.safetensors
    4.26 GB
    xet
    init 1 day ago
  • modeling_renderrank.py
    3.06 kB
    init 1 day ago
  • modules.json
    280 Bytes
    init 1 day ago
  • processor_config.json
    1.26 kB
    init 1 day ago
  • qwen3_vl_reranker.py
    11.2 kB
    init 1 day ago
  • rendering.py
    9.38 kB
    init 1 day ago
  • sentence_bert_config.json
    756 Bytes
    init 1 day ago
  • tokenizer.json
    11.4 MB
    xet
    init 1 day ago
  • tokenizer_config.json
    464 Bytes
    init 1 day ago