Skip to content

Commit

Permalink
Replace <fill_type> and <fill_docstring> in configuration_ernie, conf…
Browse files Browse the repository at this point in the history
…iguration_ernie_m.py with type and docstring values
  • Loading branch information
vignesh-raghunathan committed Oct 20, 2023
1 parent 87b9831 commit afe11b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/transformers/models/ernie/configuration_ernie.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ class ErnieConfig(PretrainedConfig):
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
layer_norm_eps (`float`, *optional*, defaults to 1e-12):
The epsilon used by the layer normalization layers.
pad_token_id (`<fill_type>`, *optional*, defaults to 0): <fill_docstring>
pad_token_id (`int`, *optional*, defaults to 0):
Padding token id.
position_embedding_type (`str`, *optional*, defaults to `"absolute"`):
Type of position embedding. Choose one of `"absolute"`, `"relative_key"`, `"relative_key_query"`. For
positional embeddings use `"absolute"`. For more information on `"relative_key"`, please refer to
Expand Down
10 changes: 6 additions & 4 deletions src/transformers/models/ernie_m/configuration_ernie_m.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ class ErnieMConfig(PretrainedConfig):
The maximum value of the dimensionality of position encoding, which dictates the maximum supported length
of an input sequence.
initializer_range (`float`, *optional*, defaults to 0.02):
The standard deviation of the normal initializer for initializing all weight matrices.
The index of padding token in the token vocabulary.
pad_token_id (`int`, *optional*, defaults to 1): <fill_docstring>
The standard deviation of the normal initializer for initializing all weight matrices. The index of padding
token in the token vocabulary.
pad_token_id (`int`, *optional*, defaults to 1):
Padding token id.
layer_norm_eps (`float`, *optional*, defaults to 1e-05):
The epsilon used by the layer normalization layers.
classifier_dropout (`float`, *optional*):
The dropout ratio for the classification head.
is_decoder (`<fill_type>`, *optional*, defaults to `False`): <fill_docstring>
is_decoder (`bool`, *optional*, defaults to `False`):
Whether the model is used as decoder or not (in which case it's used as an encoder).
act_dropout (`float`, *optional*, defaults to 0.0):
This dropout probability is used in `ErnieMEncoderLayer` after activation.
Expand Down

0 comments on commit afe11b1

Please sign in to comment.