Instructions to use uracoder/my-chatbot-merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use uracoder/my-chatbot-merged with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("<base-model-id>") model.load_adapter("uracoder/my-chatbot-merged", set_active=True) - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from uracoder/my-chatbot-merged: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/uracoder/my-chatbot-merged/resolve/main/chat_template.jinja
- Command line
-
hf download hf://uracoder/my-chatbot-merged/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/uracoder/my-chatbot-merged/resolve/main/chat_template.jinja
591 Bytes
| {{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + ' | |
| ' + message['content'] | trim + '<end_of_turn> | |
| ' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model | |
| '}}{% endif %} |