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
a3698365
Unverified
Commit
a3698365
authored
Feb 27, 2023
by
Julian Weber
Committed by
GitHub
Feb 27, 2023
Browse files
Fix type in gpt2 config docstring (#21782)
Fix docstring gpt2 config
parent
3c0ce608
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 @
a3698365
...
...
@@ -65,7 +65,7 @@ class GPT2Config(PretrainedConfig):
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.
embd_pdrop (`
in
t`, *optional*, defaults to 0.1):
embd_pdrop (`
floa
t`, *optional*, defaults to 0.1):
The dropout ratio for the embeddings.
attn_pdrop (`float`, *optional*, defaults to 0.1):
The dropout ratio for the attention.
...
...
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