Text Generation
PEFT
Safetensors
English
gemma
gemma2
lora
qlora
ai-safety
alignment
epistemology
instrument-trap
fine-tuned
scale-maximum
conversational
Instructions to use LumenSyntax/logos21-gemma2-27b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use LumenSyntax/logos21-gemma2-27b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-2-27b-it-bnb-4bit") model = PeftModel.from_pretrained(base_model, "LumenSyntax/logos21-gemma2-27b") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from LumenSyntax/logos21-gemma2-27b: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/LumenSyntax/logos21-gemma2-27b/resolve/main/chat_template.jinja
- Command line
-
hf download hf://LumenSyntax/logos21-gemma2-27b/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/LumenSyntax/logos21-gemma2-27b/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 %} |