qgallouedec HF Staff commited on
Commit
df0cdf1
·
verified ·
1 Parent(s): 4d56448

Set the eos and pad tokens

Browse files

Sets `eos_token` to `<|content_model_end_sampling|>`, the token that ends each assistant turn, and `pad_token` to `<|endoftext|>`, which is never generated. Without a pad token, training libraries like TRL fail at init, and `parse_response` can't strip the end of the turn.

2 files changed +6 -2
Files changed (2)
special_tokens_map.json+3-1
tokenizer_config.json+3-1