Instructions to use switlydev/SysZero-Raw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use switlydev/SysZero-Raw with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("switlydev/SysZero-Raw", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Download chat_template.jinja from switlydev/SysZero-Raw: direct link, hf CLI and curl.
- Browser
- Download file 836 Bytes
-
https://huggingface.co/switlydev/SysZero-Raw/resolve/main/chat_template.jinja
- Command line
-
hf download hf://switlydev/SysZero-Raw/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/switlydev/SysZero-Raw/resolve/main/chat_template.jinja
836 Bytes
| {% if 'role' in messages[0] %}{% for message in messages %}{% if message['role'] == 'user' %}{{'<|im_start|>user | |
| ' + message['content'] + '<|im_end|> | |
| '}}{% elif message['role'] == 'assistant' %}{{'<|im_start|>assistant | |
| ' + message['content'] + '<|im_end|> | |
| ' }}{% else %}{{ '<|im_start|>system | |
| ' + message['content'] + '<|im_end|> | |
| ' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %}{% else %}{% for message in messages %}{% if message['from'] == 'human' %}{{'<|im_start|>user | |
| ' + message['value'] + '<|im_end|> | |
| '}}{% elif message['from'] == 'gpt' %}{{'<|im_start|>assistant | |
| ' + message['value'] + '<|im_end|> | |
| ' }}{% else %}{{ '<|im_start|>system | |
| ' + message['value'] + '<|im_end|> | |
| ' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %}{% endif %} |