Instructions to use rayonlabs/texttest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rayonlabs/texttest with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("samoline/b7447218-27e6-491c-b3ab-ea03a5b93541") model = PeftModel.from_pretrained(base_model, "rayonlabs/texttest") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from rayonlabs/texttest: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/rayonlabs/texttest/resolve/main/chat_template.jinja
- Command line
-
hf download hf://rayonlabs/texttest/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/rayonlabs/texttest/resolve/main/chat_template.jinja
485 Bytes
| {% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|> | |
| '+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|> | |
| ' }}{% endif %} | |