vLLM

Use literal BOS/EOS tokens in the chat template

#8
Mistral org

This repo has no tokenizer_config.json, so bos_token and eos_token are undefined when chat_template.jinja is rendered with Hugging Face tokenizer settings (Transformers apply_chat_template, TRL): prompts lose their BOS and EOS tokens. This regenerates the template with mistral-common's generator (3cde25c) from this repo's tekken.json with use_special_token_variables=False, keeping the default system prompt, so BOS and EOS are literal strings. Where bos_token and eos_token were set, the rendered text is identical.

juliendenize changed pull request status to merged

Sign up or log in to comment