Felladrin commited on
Commit
9d0cf2b
1 Parent(s): 4b5d362

Set `add_bos_token` to `false` to prevent auto-adding `<|bos|>` in prompts from GGUF files

Browse files

When converting to GGUF, if we have this set to `true`, it will automatically add a `<|bos|>` in front of the prompt, which negatively affects the generation. So I recommend setting it to `false` here.

PS: I've set it to `false` locally before converting [M4-ai/TinyMistral-248M-v2-Instruct-GGUF](https://huggingface.co/M4-ai/TinyMistral-248M-v2-Instruct-GGUF).

Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "add_bos_token": true,
3
  "add_eos_token": false,
4
  "added_tokens_decoder": {
5
  "0": {
 
1
  {
2
+ "add_bos_token": false,
3
  "add_eos_token": false,
4
  "added_tokens_decoder": {
5
  "0": {