Instructions to use 522H0134-NguyenNhatHuy/Qwen-1.5-1.8B-Chat-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use 522H0134-NguyenNhatHuy/Qwen-1.5-1.8B-Chat-SFT with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen1.5-1.8B-Chat") model = PeftModel.from_pretrained(base_model, "522H0134-NguyenNhatHuy/Qwen-1.5-1.8B-Chat-SFT") - Notebooks
- Google Colab
- Kaggle
| {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system | |
| You are a helpful assistant.<|im_end|> | |
| ' }}{% endif %}{{'<|im_start|>' + message['role'] + ' | |
| ' + message['content'] + '<|im_end|>' + ' | |
| '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |