Raw text
×Text supplied for tokenization.
Sources
In codeprompts
Contextual evidence
The reference generator loads the checkpoint’s tokenizer with Hugging Face AutoTokenizer and encodes each prompt through its chat template. The tokenizer’s vocabulary and rules ship with the checkpoint; these sources do not include them.
generate.py 117–150 ↗ · deepseek-ai/DeepSeek-V3.2-Exp @ 87e509a2e5a1
Excerpt
tokenizer = AutoTokenizer.from_pretrained(ckpt_path)… lines 118–149 omitted …
prompt_tokens = [tokenizer.apply_chat_template([{"role": "user", "content": prompt}], add_generation_prompt=True) for prompt in prompts]