Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4d40109c
Unverified
Commit
4d40109c
authored
Aug 24, 2023
by
Susnato Dhar
Committed by
GitHub
Aug 23, 2023
Browse files
Fix typo in `configuration_gpt2.py` (#25676)
Update configuration_gpt2.py
parent
3c2383b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/gpt2/configuration_gpt2.py
src/transformers/models/gpt2/configuration_gpt2.py
+1
-1
No files found.
src/transformers/models/gpt2/configuration_gpt2.py
View file @
4d40109c
...
...
@@ -60,7 +60,7 @@ class GPT2Config(PretrainedConfig):
Number of attention heads for each attention layer in the Transformer encoder.
n_inner (`int`, *optional*, defaults to None):
Dimensionality of the inner feed-forward layers. `None` will set it to 4 times n_embd
activation_function (`str`, *optional*, defaults to `"gelu"`):
activation_function (`str`, *optional*, defaults to `"gelu
_new
"`):
Activation function, to be selected in the list `["relu", "silu", "gelu", "tanh", "gelu_new"]`.
resid_pdrop (`float`, *optional*, defaults to 0.1):
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
...
...
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