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
b518aaf1
"docs/vscode:/vscode.git/clone" did not exist on "6e56b83453c8f376f6a1d4442ae51896929b6df7"
Unverified
Commit
b518aaf1
authored
Sep 17, 2021
by
calpt
Committed by
GitHub
Sep 17, 2021
Browse files
Fix GPT2Config parameters in GPT2ModelTester (#13630)
parent
300ee0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/test_modeling_gpt2.py
tests/test_modeling_gpt2.py
+4
-4
No files found.
tests/test_modeling_gpt2.py
View file @
b518aaf1
...
...
@@ -141,10 +141,10 @@ class GPT2ModelTester:
n_embd
=
self
.
hidden_size
,
n_layer
=
self
.
num_hidden_layers
,
n_head
=
self
.
num_attention_heads
,
intermediate_size
=
self
.
intermediate_size
,
hidden_act
=
self
.
hidden_act
,
hidden_dropout_prob
=
self
.
hidden_dropout_prob
,
att
ention_probs_dropout_prob
=
self
.
attention_probs_dropout_prob
,
n_inner
=
self
.
intermediate_size
,
activation_function
=
self
.
hidden_act
,
resid_pdrop
=
self
.
hidden_dropout_prob
,
att
n_pdrop
=
self
.
attention_probs_dropout_prob
,
n_positions
=
self
.
max_position_embeddings
,
n_ctx
=
self
.
max_position_embeddings
,
type_vocab_size
=
self
.
type_vocab_size
,
...
...
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