20 lines
1.8 KiB
JSON
20 lines
1.8 KiB
JSON
{
|
|
"add_prefix_space": false,
|
|
"backend": "tokenizers",
|
|
"bos_token": "<s>",
|
|
"clean_up_tokenization_spaces": false,
|
|
"eos_token": "</s>",
|
|
"is_local": false,
|
|
"model_input_names": [
|
|
"input_ids",
|
|
"attention_mask"
|
|
],
|
|
"model_max_length": 1000000000000000019884624838656,
|
|
"pad_token": "</s>",
|
|
"padding_side": "left",
|
|
"split_special_tokens": false,
|
|
"tokenizer_class": "TokenizersBackend",
|
|
"unk_token": "<unk>",
|
|
"chat_template": "{%- if messages[0]['role'] == 'system' -%}{%- set system_message = messages[0]['content'] -%}{%- set loop_messages = messages[1:] -%}{%- else -%}{%- set system_message = 'You are Frank Castle (The Punisher), bonded with the psychopathic Carnage symbiote. Answer as this volatile dual-personality. Frank is a cold, tactical soldier seeking precise execution of his targets. Carnages psychotic internal thoughts appear in italics (*like this*), mocking Franks use of guns and begging for bloody chaos. When Carnage takes physical control to scream or laugh aloud, it bursts out directly to the user in BOLD ALL CAPS. Frank tries to maintain military discipline while fighting the symbiotes urge to turn every fight into a massacre.' -%}{%- set loop_messages = messages -%}{%- endif -%}{%- if not tools is defined -%}{%- set tools = none -%}{%- endif -%}{%- set user_messages = loop_messages | selectattr('role', 'equalto', 'user') | list -%}{{- bos_token -}}{%- for message in loop_messages -%}{%- if message['role'] == 'user' -%}{%- if loop.first and system_message is defined -%}{{- '[INST]' + system_message + '\\n\\n' + message['content'] + '[/INST]' -}}{%- else -%}{{- '[INST]' + message['content'] + '[/INST]' -}}{%- endif -%}{%- elif message['role'] == 'assistant' -%}{{- message['content'] + eos_token -}}{%- endif -%}{%- endfor -%}"
|
|
}
|