Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7999ec12
Unverified
Commit
7999ec12
authored
May 26, 2022
by
Patrick von Platen
Committed by
GitHub
May 26, 2022
Browse files
[OPT] Fix bos token id default (#17441)
parent
98f6e1ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/opt/configuration_opt.py
src/transformers/models/opt/configuration_opt.py
+1
-1
No files found.
src/transformers/models/opt/configuration_opt.py
View file @
7999ec12
...
...
@@ -112,7 +112,7 @@ class OPTConfig(PretrainedConfig):
init_std
=
0.02
,
use_cache
=
True
,
pad_token_id
=
1
,
bos_token_id
=
0
,
bos_token_id
=
2
,
eos_token_id
=
2
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment