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
0b2f46fa
"docs/source/en/run_scripts.md" did not exist on "8d1f9039d01f79bfef763dd349d9904c13550c9d"
Unverified
Commit
0b2f46fa
authored
Dec 15, 2020
by
Lysandre Debut
Committed by
GitHub
Dec 15, 2020
Browse files
Add large model config (#9140)
parent
2a7e8e16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/test_modeling_t5.py
tests/test_modeling_t5.py
+3
-0
No files found.
tests/test_modeling_t5.py
View file @
0b2f46fa
...
...
@@ -610,6 +610,9 @@ class T5EncoderOnlyModelTester:
self
.
scope
=
None
self
.
is_training
=
is_training
def
get_large_model_config
(
self
):
return
T5Config
.
from_pretrained
(
"t5-base"
)
def
prepare_config_and_inputs
(
self
):
input_ids
=
ids_tensor
([
self
.
batch_size
,
self
.
encoder_seq_length
],
self
.
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