config: {"architectures": ["Gemma2ForCausalLM"], "model_type": "gemma2", "tokenizer_config": {"bos_token": "<bos>", "chat_template": "{{ 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 + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}", "eos_token": "<eos>", "pad_token": "<pad>", "unk_token": "<unk>", "use_default_system_prompt": false}}
tags: transformers safetensors gemma2 text-generation conversational arxiv:2009.03300 arxiv:1905.07830 arxiv:1911.11641 arxiv:1904.09728 arxiv:1905.10044 arxiv:1907.10641 arxiv:1811.00937 arxiv:1809.02789 arxiv:1911.01547 arxiv:1705.03551 arxiv:2107.03374 arxiv:2108.07732 arxiv:2110.14168 arxiv:2009.11462 arxiv:2101.11718 arxiv:2110.08193 arxiv:1804.09301 arxiv:2109.07958 arxiv:1804.06876 arxiv:2103.03874 arxiv:2304.06364 arxiv:1903.00161 arxiv:2206.04615 arxiv:2203.09509 arxiv:2403.13793 base_model:google/gemma-2-2b base_model:finetune:google/gemma-2-2b license:gemma autotrain_compatible text-generation-inference endpoints_compatible region:us