Instructions to use HongKi08/HAI_Project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HongKi08/HAI_Project with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("HongKi08/HAI_Project", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from HongKi08/HAI_Project: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/HongKi08/HAI_Project/resolve/main/chat_template.jinja
- Command line
-
hf download hf://HongKi08/HAI_Project/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/HongKi08/HAI_Project/resolve/main/chat_template.jinja
339 Bytes
| {% for message in messages %}{% if loop.first and message['role'] != 'system' %}{{ '[|system|][|endofturn|] | |
| ' }}{% endif %}{{ '[|' + message['role'] + '|]' + message['content'] }}{% if message['role'] == 'user' %}{{ ' | |
| ' }}{% else %}{{ '[|endofturn|] | |
| ' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '[|assistant|]' }}{% endif %} |