Download tokenizer_config.json from 1lock/tm-11a: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/1lock/tm-11a/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://1lock/tm-11a/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/1lock/tm-11a/resolve/main/tokenizer_config.json
672 Bytes
| { | |
| "bos_token": "<|bos|>", | |
| "eos_token": "<|assistant_end|>", | |
| "pad_token": "<|assistant_end|>", | |
| "clean_up_tokenization_spaces": false, | |
| "model_max_length": 2048, | |
| "add_bos_token": true, | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "chat_template": "{{ bos_token }}{% set sys = namespace(t='') %}{% for m in messages %}{% if m['role'] == 'system' %}{% set sys.t = m['content'] + '\n\n' %}{% elif m['role'] == 'user' %}<|user_start|>{{ sys.t }}{{ m['content'] }}<|user_end|>{% set sys.t = '' %}{% elif m['role'] == 'assistant' %}<|assistant_start|>{{ m['content'] }}<|assistant_end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|assistant_start|>{% endif %}" | |
| } |