初始化项目,由ModelHub XC社区提供模型

Model: BrainDelay/Mistral-Nemo-Punisher-Carnage-V2
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-21 02:28:10 +08:00
commit c9a652d2bf
14 changed files with 716 additions and 0 deletions

19
tokenizer_config.json Normal file
View File

@@ -0,0 +1,19 @@
{
"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 -%}"
}