Instructions to use thaitea/laya-vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use thaitea/laya-vision with Laya:
# 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 processor/chat_template.jinja from thaitea/laya-vision: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/thaitea/laya-vision/resolve/main/processor/chat_template.jinja
- Command line
-
hf download hf://thaitea/laya-vision/processor/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/thaitea/laya-vision/resolve/main/processor/chat_template.jinja
403 Bytes
| <|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> | |
| {% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %} |