Instructions to use tabeehive/tabeehive-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tabeehive/tabeehive-ft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TheBloke/Mistral-7B-Instruct-v0.2-GPTQ") model = PeftModel.from_pretrained(base_model, "tabeehive/tabeehive-ft") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from tabeehive/tabeehive-ft: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/tabeehive/tabeehive-ft/resolve/main/chat_template.jinja
- Command line
-
hf download hf://tabeehive/tabeehive-ft/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/tabeehive/tabeehive-ft/resolve/main/chat_template.jinja
470 Bytes
| {{ bos_token }}{% 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'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %} |