Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#23388 Issue: Update RoBERTa configuration #23863

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/transformers/models/roberta/configuration_roberta.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class RobertaConfig(PretrainedConfig):
Args:
vocab_size (`int`, *optional*, defaults to 30522):
vocab_size (`int`, *optional*, defaults to 50265):
Vocabulary size of the RoBERTa model. Defines the number of different tokens that can be represented by the
`inputs_ids` passed when calling [`RobertaModel`] or [`TFRobertaModel`].
hidden_size (`int`, *optional*, defaults to 768):
Expand Down Expand Up @@ -105,7 +105,7 @@ class RobertaConfig(PretrainedConfig):

def __init__(
self,
vocab_size=30522,
vocab_size=50265,
hidden_size=768,
num_hidden_layers=12,
num_attention_heads=12,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RobertaPreLayerNormConfig(PretrainedConfig):
Args:
vocab_size (`int`, *optional*, defaults to 30522):
vocab_size (`int`, *optional*, defaults to 50265):
Vocabulary size of the RoBERTa-PreLayerNorm model. Defines the number of different tokens that can be
represented by the `inputs_ids` passed when calling [`RobertaPreLayerNormModel`] or
[`TFRobertaPreLayerNormModel`].
Expand Down Expand Up @@ -106,7 +106,7 @@ class RobertaPreLayerNormConfig(PretrainedConfig):

def __init__(
self,
vocab_size=30522,
vocab_size=50265,
hidden_size=768,
num_hidden_layers=12,
num_attention_heads=12,
Expand Down