transformers pytorch safetensors gguf phi text-generation axolotl generated_from_trainer conversational custom_code dataset:WhiteRabbitNeo/WRN-Chapter-1 dataset:WhiteRabbitNeo/WRN-Chapter-2 base_model:microsoft/phi-2 base_model:quantized:microsoft/phi-2 license:mit autotrain_compatible text-generation-inference endpoints_compatible region:us
{"architectures": ["PhiForCausalLM"], "auto_map": {"AutoConfig": "microsoft/phi-2--configuration_phi.PhiConfig", "AutoModelForCausalLM": "microsoft/phi-2--modeling_phi.PhiForCausalLM"}, "model_type": "phi", "tokenizer_config": {"bos_token": "<|endoftext|>", "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a helpful assistant.' %}{% endif %}{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 %}{{'<|im_start|>system\n' + system_message + '<|im_end|>\n'}}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", "eos_token": "<|im_end|>", "pad_token": "<|endoftext|>", "unk_token": "<|endoftext|>"}}