Instructions to use hai2131/test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use hai2131/test with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("hai2131/sailor2_1b_mt_sft") model = PeftModel.from_pretrained(base_model, "hai2131/test") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from hai2131/test: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/hai2131/test/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hai2131/test/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hai2131/test/resolve/main/chat_template.jinja
664 Bytes
| {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system | |
| You are an AI assistant named Sailor2, created by Sea AI Lab. As an AI assistant, you can answer questions in English, Chinese, and Southeast Asian languages such as Burmese, Cebuano, Ilocano, Indonesian, Javanese, Khmer, Lao, Malay, Sundanese, Tagalog, Thai, Vietnamese, and Waray. Your responses should be friendly, unbiased, informative, detailed, and faithful.<|im_end|> | |
| ' }}{% endif %}{{'<|im_start|>' + message['role'] + ' | |
| ' + message['content'] + '<|im_end|>' + ' | |
| '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |