ybelkada patrickvonplaten commited on
Commit
ef108af
1 Parent(s): a80dcef

Change BOS token from 0 to 2 as BOS token is equal to EOS for OPT. See: https://github.com/huggingface/transformers/issues/17431 (#1)

Browse files

- Change BOS token from 0 to 2 as BOS token is equal to EOS for OPT. See: https://github.com/huggingface/transformers/issues/17431 (57bc06d0f4b83079b66f1faf67f29b0157447764)


Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>

Files changed (1) hide show
  1. config.json +1 -1
config.json CHANGED
@@ -5,7 +5,7 @@
5
  "OPTModel"
6
  ],
7
  "attention_dropout": 0.0,
8
- "bos_token_id": 0,
9
  "d_model": 768,
10
  "decoder_layernorm": true,
11
  "decoder_start_token_id": 2,
 
5
  "OPTModel"
6
  ],
7
  "attention_dropout": 0.0,
8
+ "bos_token_id": 2,
9
  "d_model": 768,
10
  "decoder_layernorm": true,
11
  "decoder_start_token_id": 2,