Checkpoint tokenizer
×The vocabulary, merge rules and chat template shipped with the checkpoint.
Unverified: the token-to-ID mapping. The atlas pins tokenizer.json by its checksum and keeps no copy (docs/reviews/deepseek-v2/README.md).
Explanation
A fast Llama tokenizer loads the vocabulary and merge rules from the checkpoint’s tokenizer.json; tokenizer_config.json names it (33).
Sources
In codeLlamaTokenizerFast
Contextual evidence
The checkpoint’s tokenizer is a fast Llama tokenizer (LlamaTokenizerFast) read from the repository’s tokenizer.json.
tokenizer_config.json 33 ↗ · deepseek-ai/DeepSeek-V2 @ 4461458f186c
Excerpt
"tokenizer_class": "LlamaTokenizerFast",The chat template, kept in tokenizer_config.json, writes the beginning-of-sentence token, then each user turn after “User: ” and each answer after “Assistant: ”, ending each answer with <|end▁of▁sentence|>.
tokenizer_config.json 34 ↗ · deepseek-ai/DeepSeek-V2 @ 4461458f186c
Excerpt
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ 'User: ' + message['content'] + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ 'Assistant: ' + message['content'] + eos_token }}{% elif message['role'] == 'system' %}{{ message['content'] + '\n\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}"