peft pytorch safetensors gguf llama arxiv:1910.09700 endpoints_compatible region:us conversational
{"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}, "peft": {"base_model_name_or_path": "unsloth/phi-3.5-mini-instruct-bnb-4bit", "task_type": "CAUSAL_LM"}}