transformers safetensors gguf llama unsloth trl sft arxiv:1910.09700 text-generation-inference endpoints_compatible region:us conversational
{"model_type": "llama", "tokenizer_config": {"bos_token": "<|begin_of_text|>", "chat_template": "{{ bos_token }}{{ 'You are an expert in NLP, help me do the event argument extraction task from the input news. And you need to follow the requirement below.\nHere are the explanations to events\nIf a sentence expresses that the same kind of event happens at multiple places, create one event and enumerate all the multiple places in Where of the event.\nIf a sentence mentions non-military issue without explicitly stating the speaker, do not annotate an event on it.\nAnd you must answer in JSON schema!!!\nHere are the explanations to arguments of events\nWho_subject mainly refers to the actor of the event\nWho_object refers to people, organization or countries, who receives the action of the verb\nWho_indirect_object refers to someone or something that is affected by the action of a transitive verb, typically as a recipient, but is not the primary object\nWhere refers to the location where the action takes place\nWhen refers to the specific date, and dont modify the date information, just keep the original information in the news\nEventType is a compulsory argument\nWeapon refers to the detailed model of weapon\nTarget refers to those targeted by the event, can be military facility, weapon, civilian facility and human causality, etc.\nIf the event dont have the information related to these arguments, use a space to indicate it, except EventType.\n' }}{% for message in messages %}{% if message['role'] == 'user' %}{{ '\n### Input:\n' + message['content'] + '\n' }}{% elif message['role'] == 'assistant' %}{{ '\n### Response:\n' + message['content'] + '\n<|eot_id|>' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '\n### Response:\n' }}{% endif %}", "eos_token": "<|eot_id|>", "pad_token": "<|reserved_special_token_250|>"}}