transformers pytorch gguf llama text-generation text-generation-inference unsloth conversational en license:apache-2.0 autotrain_compatible endpoints_compatible region:us
{"architectures": ["LlamaForCausalLM"], "model_type": "llama", "tokenizer_config": {"bos_token": "<s>", "chat_template": "{% if 'role' in messages[0] %}{% for message in messages %}{% if message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% else %}{{'<|' + message['role'] + '|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}{% else %}{% for message in messages %}{% if message['from'] == 'human' %}{{'<|user|>\n' + message['value'] + '<|end|>\n'}}{% elif message['from'] == 'gpt' %}{{'<|assistant|>\n' + message['value'] + '<|end|>\n'}}{% else %}{{'<|' + message['from'] + '|>\n' + message['value'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% endif %}{% endif %}", "eos_token": "<|endoftext|>", "pad_token": "<|placeholder6|>", "unk_token": "<unk>", "use_default_system_prompt": false}}