fxmarty commited on
Commit
f8f6411
1 Parent(s): 0bf85d2

Update special_tokens_map.json

Browse files

Following https://github.com/huggingface/transformers/pull/23909 it appears that this filed is relied on for special tokens. Not sure how it works internally, but I am not getting a `2` token at the beginning of a sentence with transformers>=4.34 instead of the rightful `1` before.

This update fixes the issue. Other models may be affected.

Files changed (1) hide show
  1. special_tokens_map.json +1 -1
special_tokens_map.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "bos_token": "</s>",
3
  "eos_token": "</s>",
4
  "pad_token": "[PAD]",
5
  "unk_token": "</s>"
 
1
  {
2
+ "bos_token": "<s>",
3
  "eos_token": "</s>",
4
  "pad_token": "[PAD]",
5
  "unk_token": "</s>"