Transformers
Safetensors
ColPali
Generated from Trainer
https://ieeexplore.ieee.org/document/11157156
Instructions to use ingenio/IndoColSmol-256M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ingenio/IndoColSmol-256M with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ingenio/IndoColSmol-256M", device_map="auto") - ColPali
How to use ingenio/IndoColSmol-256M with ColPali:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download chat_template.json from ingenio/IndoColSmol-256M: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/ingenio/IndoColSmol-256M/resolve/main/chat_template.json
- Command line
-
hf download hf://ingenio/IndoColSmol-256M/chat_template.json
-
curl -L -o chat_template.json https://huggingface.co/ingenio/IndoColSmol-256M/resolve/main/chat_template.json
430 Bytes
| { | |
| "chat_template": "<|im_start|>{% for message in messages %}{{message['role'] | capitalize}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}" | |
| } | |