Instructions to use brownyeyez/InternVL3_5-Rerank with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brownyeyez/InternVL3_5-Rerank with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="brownyeyez/InternVL3_5-Rerank", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("brownyeyez/InternVL3_5-Rerank", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from brownyeyez/InternVL3_5-Rerank: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/brownyeyez/InternVL3_5-Rerank/resolve/main/chat_template.jinja
- Command line
-
hf download hf://brownyeyez/InternVL3_5-Rerank/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/brownyeyez/InternVL3_5-Rerank/resolve/main/chat_template.jinja
475 Bytes
| {% for message in messages %}{{'<|im_start|>' + message['role'] + ' | |
| '}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<image> | |
| ' }}{% elif content['type'] == 'video' %}{{ '<video> | |
| ' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|> | |
| '}}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant | |
| ' }}{% endif %} |