{ "add_bos_token": false, "add_eos_token": false, "bos_token": "", "eos_token": "", "pad_token": "", "unk_token": null, "clean_up_tokenization_spaces": false, "model_max_length": 16384, "tokenizer_class": "PreTrainedTokenizerFast", "chat_template": "{#-\n Lissa 1.5B - chat template (ChatML variant with a reasoning block).\n\n Canonical sequence, as used for the SFT run:\n\n {system}\n {user}\n [<|think|>{think}<|/think|>]{answer}\n\n Notes:\n\n * is emitted by this template. The shipped tokenizer.json has a ByteLevel\n post-processor, not a TemplateProcessing one, so no BOS is added automatically\n and add_special_tokens has no effect on it.\n\n * is emitted only when the conversation ends on an assistant turn, i.e. when\n the rendered text is a complete training sequence. With add_generation_prompt=True\n it is not emitted, so the model generates the assistant turn itself.\n\n * The <|think|> block is optional and is read from the `reasoning_content` field of\n an assistant message (the `think` field is accepted as an alias). The model is\n reasoning-first: it opens the block on its own, so it does not need to be\n prefilled at generation time.\n\n * , , , and are never emitted. They exist in the\n vocabulary but were removed from the supervised data.\n\n * A non-empty system message is required. The model was supervised with one on every\n example; \"You are a helpful assistant.\" specifically should not be used, it pulls\n the model towards a generic assistant identity.\n-#}\n{{- '' -}}\n{%- for message in messages -%}\n {%- set content = message['content'] if message['content'] is not none else '' -%}\n {%- if message['role'] == 'system' -%}\n {{- '' + content + '' -}}\n {%- elif message['role'] == 'user' -%}\n {{- '' + content + '' -}}\n {%- elif message['role'] == 'assistant' -%}\n {%- set think = message.get('reasoning_content') or message.get('think') -%}\n {{- '' -}}\n {%- if think -%}\n {{- '<|think|>' + think + '<|/think|>' -}}\n {%- endif -%}\n {{- content + '' -}}\n {%- else -%}\n {{- raise_exception('Lissa chat template: unexpected role \"' + message['role'] + '\"') -}}\n {%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{- '' -}}\n{%- elif messages and messages[-1]['role'] == 'assistant' -%}\n {{- '' -}}\n{%- endif -%}\n" }