初始化项目,由ModelHub XC社区提供模型
Model: opencerebral/Boris-1.3-75M-Instruct Source: Original Platform
This commit is contained in:
15
tokenizer_config.json
Normal file
15
tokenizer_config.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"add_prefix_space": false,
|
||||
"backend": "tokenizers",
|
||||
"bos_token": "<|endoftext|>",
|
||||
"eos_token": "<|endoftext|>",
|
||||
"errors": "replace",
|
||||
"is_local": false,
|
||||
"local_files_only": false,
|
||||
"model_max_length": 1000000000000000019884624838656,
|
||||
"pad_token": "<|padding|>",
|
||||
"tokenizer_class": "GPTNeoXTokenizer",
|
||||
"trim_offsets": true,
|
||||
"unk_token": "<|endoftext|>",
|
||||
"chat_template": "{%- set ns = namespace(sys='') -%}{%- for message in messages -%}{%- if message['role'] == 'system' -%}{%- set ns.sys = (message['content'] | trim) -%}{%- elif message['role'] == 'user' -%}{%- set instr = (message['content'] | trim) -%}{%- if ns.sys -%}{%- set instr = ns.sys + '\n\n' + instr -%}{%- set ns.sys = '' -%}{%- endif -%}{{- 'Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n' + instr + '\n\n### Response:\n' -}}{%- elif message['role'] == 'assistant' -%}{{- ' ' + (message['content'] | trim) + '<|endoftext|>' -}}{%- endif -%}{%- endfor -%}"
|
||||
}
|
||||
Reference in New Issue
Block a user